feat: add Ollama Cloud provider preset (#700)

Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-05-14 09:43:14 +08:00
committed by GitHub
parent 9170e11715
commit 7c87ba51da
3 changed files with 14 additions and 6 deletions
@@ -250,7 +250,7 @@ export async function getAvailable(ctx: any) {
}
if (Object.keys(modelMeta).length === 0) modelMeta = undefined
}
} else if (providerKey === 'openrouter' || providerKey === 'cliproxyapi') {
} else if (providerKey === 'openrouter' || providerKey === 'cliproxyapi' || providerKey === 'ollama-cloud') {
// OpenRouter and local CLIProxyAPI expose dynamic OpenAI-compatible /models catalogs.
if (envMapping.api_key_env) {
const apiKey = envGetValue(envMapping.api_key_env)