Conversation
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.
解决的问题与行为变化
开启 Prism 后,账号原先接管所有 Responses 模型,音频等不支持的模型也进入适配器返回 422;Codex 的可选推理参数会使普通文本请求被拒绝。适配器错误已经写出 JSON 后,网关仍可能追加 SSE;这些失败还会清零账号自动并发升档进度。
本 PR 修复四项:
gpt-6.1-sol、gpt-5.6-sol、gpt-5.6-terra、gpt-6-luna。按账号映射后的名称匹配,未选模型保留原生 / Excel 路由;全部取消表示不走 Prism。同步调整 WS 调度、连接绑定、ticket 和账号测试。include=["reasoning.encrypted_content"]和reasoning.summary=auto,不会编造加密推理。保留已有函数、自定义工具和结果回传协议。response.failed。关联记录与来源
Refs #256、#280,基于已合并的 #278 工具桥接继续修复。#280 的自然流量未记录请求正文,不能将所有 422 都归为同一种原因;本 PR 覆盖已复现的可选推理参数 / 工具兼容失败,并补充已知错误码与 Go / 适配器升级顺序。没有引入其他仓库提交。
复现与验收
基线:
production的bc83ff9c367883e5b7d0140e6bb42e2e7cc5239c。回归测试使用虚构 OAuth 账号和本地 mock 适配器 / 上游。仍未覆盖真实账号的线上工具执行、模型权益和持续并发。本次不声称线上验收完成。
实际验证
backend:go test ./internal/service ./internal/handler -run 'Prism|AutoConfig|OpenAITurn|OpenAICodexTicket'python -m unittest discover -s prism-adapter -p 'test_*.py'vue-tsc --noEmit、全目录 ESLintgit diff --checkgo test ./internal/servicerec.Flushed时序断言、收益浮点精确相等断言;收益失败已在未修改的生产基线连续复现 3 次,图片时序失败原因尚未证实截图对应提交
d1f355aa0b3a0bbee086a3712a51b97eb12247a0;入口为账号管理 → 编辑 OpenAI OAuth 账号。实际组件 + 模拟 API,不是生产截图。仅选择 6.1 Sol 并保存 · 移动端深色
兼容性与运行影响
extra.openai_prism_browser_models,无数据库迁移。Prism 所选模型失败不自动更换模型或协议;不增加重放。prism-adapter/,安装其固定版本 wheel;旧适配器仍会返回tools_disabled/ 422。PRISM_ADAPTER_CLIENT_TOOLS_ENABLED=false保留显式关闭能力。未安装依赖时新适配器停止启动。usage仍未知,不以零 token 入账。本次没有生产部署、数据库操作或并发性能承诺。文档与用户可见变化
更新适配器 README、账号编辑中英文说明、并发进度提示及截图说明。
Agent 使用声明
提交前自查