mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-05 12:22:35 +00:00
feat: add Ollama provider support
Add support for Ollama as a provider in CCS, enabling users to use local Ollama models (qwen3-coder, gpt-oss:20b, gpt-oss:120b) and Ollama Cloud models (glm-4.7:cloud, qwen3-coder:480b). Changes: - Add base-ollama.settings.json for local Ollama (localhost:11434) - Add base-ollama-cloud.settings.json for ollama.com cloud API - Add 'ollama' and 'ollama-cloud' presets to provider-presets.ts - Update help documentation in api-command.ts and help-command.ts Usage: ccs api create --preset ollama # Local Ollama ccs api create --preset ollama-cloud # Ollama Cloud Ref: https://github.com/kaitranntt/ccs/issues/353 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -43,6 +43,17 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
|
||||
apiKeyHint: 'Get your API key at openrouter.ai/keys',
|
||||
category: 'recommended',
|
||||
},
|
||||
{
|
||||
id: 'ollama',
|
||||
name: 'Ollama (Local)',
|
||||
description: 'Local open-source models via Ollama (32K+ context recommended)',
|
||||
baseUrl: 'http://localhost:11434',
|
||||
defaultProfileName: 'ollama',
|
||||
defaultModel: 'qwen3-coder',
|
||||
apiKeyPlaceholder: 'ollama',
|
||||
apiKeyHint: 'Install Ollama from ollama.com - no API key needed for local',
|
||||
category: 'recommended',
|
||||
},
|
||||
// Alternative providers
|
||||
{
|
||||
id: 'glm',
|
||||
@@ -131,6 +142,17 @@ export const PROVIDER_PRESETS: ProviderPreset[] = [
|
||||
apiKeyHint: 'Get your API key from Alibaba Cloud Model Studio',
|
||||
category: 'alternative',
|
||||
},
|
||||
{
|
||||
id: 'ollama-cloud',
|
||||
name: 'Ollama Cloud',
|
||||
description: 'Ollama.com cloud models (glm-4.7:cloud, qwen3-coder:480b)',
|
||||
baseUrl: 'https://ollama.com',
|
||||
defaultProfileName: 'ollama-cloud',
|
||||
defaultModel: 'glm-4.7:cloud',
|
||||
apiKeyPlaceholder: 'YOUR_OLLAMA_CLOUD_API_KEY',
|
||||
apiKeyHint: 'Get your API key at ollama.com',
|
||||
category: 'alternative',
|
||||
},
|
||||
];
|
||||
|
||||
/** Get preset by ID */
|
||||
|
||||
Reference in New Issue
Block a user