Skip to content

OpenAI Chat Completions model not working, Claude Code

Quick fix

Retry after upgrading to 4.0. If the issue persists, provide the provider API format, local routing status, and relevant logs.

Error output
这个如何调整为chat模型呢?感觉是流式模式,cc中配置的好像不起作用
English translation

How can I adjust this to use a chat model? It seems to be in streaming mode, and the configuration in cc appears not to take effect.

This report is from cc-switch v3.19.1 and includes only a screenshot, with no specific error or logs sufficient to confirm the cause. The maintainer said that 4.0 rewrote local routing and Claude Code configuration writing, and fixed several format conversion issues, including OpenAI Chat Completions. The available information therefore cannot determine whether the issue is in the configuration or protocol conversion.

If the issue still reproduces after upgrading to 4.0, the maintainer recommends providing the cc-switch version, the API format selected for the provider, whether local routing is enabled, and logs from the relevant time.

  1. Retry after upgrading to 4.0; the latest download URL provided by the maintainer is https://github.com/farion1231/cc-switch/releases/latest.

  2. If it still does not work, submit the cc-switch version, the API format selected for the provider, whether local routing is enabled, and logs from the relevant time in ~/.cc-switch/logs/cc-switch.log.

ToolClaude Code
Version3.19.1(报告版本;维护者建议在 4.0 上复测)
PlatformsWindows
How do I switch this to a chat model?
The report does not provide a specific error or enough information to confirm the cause. The maintainer recommends upgrading to 4.0 and retrying; if the issue persists, provide the provider API format, local routing status, and relevant logs.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.