mirror of
https://github.com/tiennm99/ccs.git
synced 2026-08-10 06:21:30 +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:
@@ -426,7 +426,7 @@ async function showHelp(): Promise<void> {
|
||||
console.log('');
|
||||
console.log(subheader('Options'));
|
||||
console.log(
|
||||
` ${color('--preset <id>', 'command')} Use provider preset (openrouter, glm, glmt, kimi, foundry, mm, deepseek, qwen)`
|
||||
` ${color('--preset <id>', 'command')} Use provider preset (openrouter, ollama, glm, glmt, kimi, foundry, mm, deepseek, qwen)`
|
||||
);
|
||||
console.log(` ${color('--base-url <url>', 'command')} API base URL (create)`);
|
||||
console.log(` ${color('--api-key <key>', 'command')} API key (create)`);
|
||||
@@ -438,6 +438,12 @@ async function showHelp(): Promise<void> {
|
||||
console.log(
|
||||
` ${color('openrouter', 'command')} OpenRouter - 349+ models (Claude, GPT, Gemini, Llama)`
|
||||
);
|
||||
console.log(
|
||||
` ${color('ollama', 'command')} Ollama - Local open-source models (no API key)`
|
||||
);
|
||||
console.log(
|
||||
` ${color('ollama-cloud', 'command')} Ollama Cloud - glm-4.7:cloud, qwen3-coder:480b`
|
||||
);
|
||||
console.log(` ${color('glm', 'command')} GLM - Claude via Z.AI`);
|
||||
console.log(` ${color('glmt', 'command')} GLMT - GLM with Thinking mode`);
|
||||
console.log(` ${color('kimi', 'command')} Kimi - Moonshot AI reasoning model`);
|
||||
|
||||
Reference in New Issue
Block a user