feat(v2/registry): register ollama-cloud as a first-class provider
Ollama Cloud now appears in Providers() alongside local Ollama, with its own EnvKey (OLLAMA_API_KEY) and a curated cloud-model list for picker UIs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -135,6 +135,22 @@ var providerRegistry = []ProviderInfo{
|
|||||||
},
|
},
|
||||||
New: func(_ string, opts ...ClientOption) *Client { return Ollama(opts...) },
|
New: func(_ string, opts ...ClientOption) *Client { return Ollama(opts...) },
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
Name: "ollama-cloud",
|
||||||
|
DisplayName: "Ollama Cloud",
|
||||||
|
EnvKey: "OLLAMA_API_KEY",
|
||||||
|
DefaultURL: ollama.DefaultCloudBaseURL,
|
||||||
|
Models: []string{
|
||||||
|
"ministral-3:14b",
|
||||||
|
"kimi-k2.5", "kimi-k2.6",
|
||||||
|
"qwen3.5:122b",
|
||||||
|
"gemma4:31b",
|
||||||
|
"deepseek-v4-flash", "deepseek-v4-pro",
|
||||||
|
"glm-5.1",
|
||||||
|
"gemini-3-flash-preview",
|
||||||
|
},
|
||||||
|
New: OllamaCloud,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
// Providers returns a copy of the registered provider list so callers cannot
|
// Providers returns a copy of the registered provider list so callers cannot
|
||||||
|
|||||||
Reference in New Issue
Block a user