AI产品精选

用开源模型跑 Claude Code,但无法同时用 Anthropic 模型

I can run Claude Code with open weight models: $ …

精选理由

如果你在用 Claude Code 做开发,又想尝试开源模型,这个痛点值得关注——目前无法同时使用两种模型,但社区可能有解决方案。

AI 摘要

开发者 Santiago 发现可以用 Ollama 启动 Claude Code 并指定开源模型(如 Gemma 4:26B),但这样会失去使用 Anthropic 官方模型的能力。他询问是否有办法在 Claude Code 中同时使用 Anthropic 模型和开源模型。这反映了开发者对模型灵活性的需求,以及当前工具在模型切换上的限制。

AI 翻译 · 中文

开发者 Santiago 发现可以用 Ollama 启动 Claude Code 并指定开源模型(如 Gemma 4:26B),但这样会失去使用 Anthropic 官方模型的能力。他询问是否有办法在 Claude Code 中同时使用 Anthropic 模型和开源模型。这反映了开发者对模型灵活性的需求,以及当前工具在模型切换上的限制。

Ate-a-PiI can run Claude Code with open weight models: $ ollama launch claude --model gemma4:26b But this no longer lets me use Anthropic models. Is there a way I can use Claude Code with Anthropic models *and* open-weight model