Skip to content

Model test always returns 404: Codex

Quick fix

Update to the latest version and test again. If it still returns 404, record the version, provider, API address, and request path from the logs for…

Error output
为啥curl可以正常返回,但是ccswitch测试模型却一直404,然后里面的模型列表也是可以正常显示出来的,奇怪了
English translation

Why does curl return normally, but the cc-switch model test keeps getting 404, even though the model list inside it also displays normally? Strange.

This issue was reported with CC Switch 3.14.1. The maintainer explained that the model test and connectivity check implementations were rewritten several times afterward, with further changes in 4.0, so the 404 seen in the older version may no longer occur in newer versions. The issue does not include the provider, API address, or request path from the logs, so it is not possible to determine whether the cause was the test request path or a difference in the provider endpoint.

  1. Update to the latest version and test the model again.

  2. If it still returns 404, provide the CC Switch version, provider, API address (you may redact the key), application type, and request path from the logs in the issue.

ToolCodex
Version3.14.1(报告版本;维护者称后续实现已调整)
PlatformsmacOS

This page is distilled from 1 real issues

Why does the CC Switch model test return 404 when curl works?
The issue did not establish the specific cause. The maintainer recommends testing again with the latest version; if the problem persists, provide the provider, API address, and request path from the logs for further investigation.
If the model list displays normally, should the model test request also succeed?
The issue did not confirm whether the two use the same request path or mechanism. The maintainer recommends providing the test request path from the logs to investigate differences between the test path and the provider endpoint.

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.