fix: update ollama api

This commit is contained in:
Gabe
2025-09-03 14:02:55 +08:00
parent 6dd6b73c2f
commit b631703aa6
2 changed files with 16 additions and 4 deletions

View File

@@ -379,7 +379,7 @@ const defaultOpenaiApi = {
};
const defaultOllamaApi = {
...defaultApi,
url: "http://localhost:11434/api/generate",
url: "http://localhost:11434/v1/chat/completions",
model: "llama3.1",
};
export const DEFAULT_TRANS_APIS = {