- translator/index.js: replace require() with static side-effect imports (ESM-safe), lazy-init registry maps to survive circular import order - openai-responses->openai: map max_output_tokens -> max_tokens (avoid leaking field upstream) - gemini/antigravity -> openai: derive deterministic tool_call id from name so functionCall/functionResponse pair correctly (fixes provider tool-pairing 400s) - add offline unit tests (finish-reason, usage, session-manager, ollama malformed args, const guard) - add real-creds integration tests (provider-cases + all-formats matrix: 6 inbound formats x 4 scenarios) Includes co-located provider registry refactor (pricing/capabilities/media providers) and sessionManager updates. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
932 B
JavaScript
36 lines
932 B
JavaScript
export default {
|
|
id: "ollama",
|
|
priority: 30,
|
|
hasFree: true,
|
|
alias: "ollama",
|
|
display: {
|
|
name: "Ollama Cloud",
|
|
icon: "cloud",
|
|
color: "#ffffffff",
|
|
textIcon: "OL",
|
|
website: "https://ollama.com",
|
|
notice: {
|
|
text: "Free tier: light usage, 1 cloud model at a time (limits reset every 5h & 7d). Pro $20/mo · Max $100/mo.",
|
|
apiKeyUrl: "https://ollama.com/settings/keys",
|
|
},
|
|
},
|
|
category: "freeTier",
|
|
transport: {
|
|
baseUrl: "https://ollama.com/api/chat",
|
|
validateUrl: "https://ollama.com/api/tags",
|
|
format: "ollama",
|
|
},
|
|
models: [
|
|
{ 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" },
|
|
],
|
|
serviceKinds: ["llm"],
|
|
features: {
|
|
usage: true,
|
|
},
|
|
};
|