251392463
251392463
下次升级得非常谨慎才行,不能无脑升。
> hi,Grok 并不需要单独一个供应商类型。绝大多数上游(例如您说的 cpa/sub2api)有提供兼容接口,故本项目不计划单独增加。 未来我们会在重构版本中对更多 SDK 进行逐一适配,并提供集成转换器功能的网关,敬请期待。 感谢回复,不过我在测试sub2api的openai 兼容协议的时候,偶发还是会报错,感觉协议转换没有写好,所以想试试原生的接口;
这个问题很奇怪,如果说是openai的问题,不使用sub2api,直接有原生的Sign in with ChatGPT 是正常的,没有提示502的错误
隔壁的cpa也有大量的用户在反馈,估计是openai在做风控了。 另外,调整response_header_timeout: 10效果不错。
这个问题你让AI分析一下就行了。 实测是OK。
### 参考实现:CLIProxyAPI(CPA) 确认 CPA 已经修复过 Codex Desktop `automation_update` 的同类 Schema 兼容问题: - Issue: [router-for-me/CLIProxyAPI#4343](https://github.com/router-for-me/CLIProxyAPI/issues/4343) - Fix commit: [`b6ce0be`](https://github.com/router-for-me/CLIProxyAPI/commit/b6ce0beecd31dff389d3190f7db6d7a1d4ce0e7e) - First release containing the fix: [`v7.2.79`](https://github.com/router-for-me/CLIProxyAPI/releases/tag/v7.2.79) - Earlier namespaced-tool fix: [router-for-me/CLIProxyAPI#4157](https://github.com/router-for-me/CLIProxyAPI/pull/4157)...
### OpenAI Codex 官方上游 Issues OpenAI 官方 `openai/codex` 仓库已有相同或同根因的问题报告: - [openai/codex#36441](https://github.com/openai/codex/issues/36441)(Open)是本 Issue 的精确对应:Codex Desktop 经 CC Switch 使用自定义 provider 时,`codex_app__automation_update` 的参数 Schema 出现 `type: null`,请求被上游以 HTTP 400 拒绝。 - [openai/codex#30132](https://github.com/openai/codex/issues/30132)(Closed...
### 三组 cURL 对照:Schema 校验与主动工具调用 以下三组请求使用同一 endpoint、模型和工具名,只改变参数根 Schema 与 tool_choice。API key 已替换为环境变量。 ~~~bash export SUB2API_BASE_URL="https://your-sub2api.example.com" export SUB2API_API_KEY="" ~~~ #### 1. 无效 Schema,不调用工具 即使 tool_choice 为 none,上游仍会先校验工具 Schema。 ~~~bash curl -sS...