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)
@@ -33,6 +33,7 @@ export const PROVIDER_ENV_MAP: Record<string, { api_key_env: string; base_url_en
huggingface: { api_key_env: 'HF_TOKEN', base_url_env: '' },
arcee: { api_key_env: 'ARCEE_API_KEY', base_url_env: '' },
stepfun: { api_key_env: 'STEPFUN_API_KEY', base_url_env: '' },
'ollama-cloud': { api_key_env: 'OLLAMA_API_KEY', base_url_env: '' },
nous: { api_key_env: '', base_url_env: '' },
'openai-codex': { api_key_env: '', base_url_env: '' },
copilot: { api_key_env: '', base_url_env: '' },
+12 -5
View File
@@ -327,18 +327,18 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
builtin: true,
base_url: 'https://opencode.ai/zen/go/v1',
models: [
'kimi-k2.6',
'kimi-k2.5',
'glm-5.1',
'glm-5',
'kimi-k2.5',
'kimi-k2.6',
'deepseek-v4-pro',
'deepseek-v4-flash',
'mimo-v2.5-pro',
'mimo-v2.5',
'mimo-v2-pro',
'mimo-v2-omni',
'minimax-m2.7',
'minimax-m2.5',
'qwen3.6-plus',
'qwen3.5-plus',
'qwen3.5-plus'
],
},
{
@@ -409,6 +409,13 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
base_url: 'https://api.stepfun.ai/step_plan/v1',
models: ['step-3.5-flash', 'step-3.5-flash-2603'],
},
{
label: 'Ollama Cloud',
value: 'ollama-cloud',
builtin: true,
base_url: 'https://ollama.com/v1',
models: [],
},
{
label: 'OpenRouter',
value: 'openrouter',