Repository navigation
fix: 自动同步 Codex 客户端版本,避免新模型版本校验失败 - #14
Merged
Merged
Conversation
- 修改内容 从官方 npm 获取最新稳定版本,缓存 6 小时,网络失败回退并限制重试频率 - 修改内容 统一转发、模型同步和模型测试的 Codex 版本标识,启动时后台预加载 - 修改内容 覆盖缓存、并发、失败回退及网关集成测试,并更新中英文说明 🤖 Generated with [Codex](https://openai.com/codex/) Co-Authored-By: GPT 5.5 xhigh (1M context) <noreply@openai.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Codex 转发之前固定声明
0.144.0,调用gpt-6-astra时上游返回 HTTP 400,提示需要更新 Codex。现在从官方 npm 的@openai/codex/latest自动获取稳定版本,统一用于version、user-agent和模型查询的client_version。应用启动时后台预加载,版本缓存持久化并在 6 小时后按需刷新;查询超时为 3 秒,失败时保留缓存或回退到内置版本,5 分钟后重试。无需依赖本机 Codex 的安装版本。
验证:
0.159.2,与官方 npm 最新稳定版本一致。