feat(ollama): Enhance Ollama support by adding new models, updating API format handling, and integrating translation functionality.

This commit is contained in:
decolua
2026-03-12 15:24:10 +07:00
parent 32e3980a13
commit 83d94daa82
9 changed files with 352 additions and 11 deletions

View File

@@ -424,10 +424,6 @@ export const PROVIDERS = {
baseUrl: "https://api.hyperbolic.xyz/v1/chat/completions",
format: "openai"
},
ollama: {
baseUrl: "https://ollama.com/api/chat",
format: "openai"
},
deepgram: {
baseUrl: "https://api.deepgram.com/v1/listen",
format: "openai"
@@ -443,7 +439,11 @@ export const PROVIDERS = {
chutes: {
baseUrl: "https://llm.chutes.ai/v1/chat/completions",
format: "openai"
}
},
ollama: {
baseUrl: "https://ollama.com/api/chat",
format: "ollama"
},
};
// Claude system prompt

View File

@@ -303,6 +303,11 @@ export const PROVIDER_MODELS = {
],
ollama: [
{ id: "gpt-oss:120b", name: "GPT OSS 120B" },
{ id: "kimi-k2.5", name: "Kimi K2.5" },
{ id: "glm-5", name: "GLM 5" },
{ id: "minimax-m2.5", name: "MiniMax M2.5" },
{ id: "glm-4.7-flash", name: "GLM 4.7 Flash" },
{ id: "qwen3.5", name: "Qwen3.5" },
],
};