在既有Codex项目中,通过cc Switch切换中转转后,执行命令提示401错误
Self Checks / 自检
I have searched for existing issues, including closed ones. 我已搜索过已有的 Issue,包括已关闭的。
CC Switch Version / 版本号
3.20.1
Operating System / 操作系统
Windows
Related App / 涉及应用
Codex
Steps to Reproduce / 重现步骤
在codex的项目文件夹中,cc Switch切换中转后,配合和key,提示401 key的问题。错误提示:unexpected status 401 Unauthorized: Incorrect API key provided: sk-70633*******************************************************6e5c. You can find your API key at https://platform.openai.com/account/api-keys., url: https://api.openai.com/v1/responses, cf-ray: a329a8fbf87ff017-SJC, request id: req_2ea4a7730e1d4839b768571841dc2d4c, auth error: 401, auth error code: invalid_api_key
有些项目文件夹,cc Switch切换中转后,同样的配置和key,可以正常运行。
在ChatGPT work中,同样的配置和key,也是正常运行。
Expected Behavior / 期望行为
应该是一个bug,期待修复。
Actual Behavior / 实际行为
错误提示:unexpected status 401 Unauthorized: Incorrect API key provided: sk-70635*******************************************************6e5c. You can find your API key at https://platform.openai.com/account/api-keys., url: https://api.openai.com/v1/responses, cf-ray: a329a8fbf87ff017-SJC, request id: req_2ea4a7730e1d4839b768571841dc2d4c, auth error: 401, auth error code: invalid_api_key
Additional Context / 补充信息
No response
Source: farion1231/cc-switch