Repository navigation
feat: BPS 账号直连搜索、自动搜索与流式续轮 - #858
Merged
Merged
Conversation
12 tasks done
ranxi2001
changed the base branch from
feat/bps-tool-choice-20261115
to
production
November 14, 2026 20:11
12 of 14 tasks
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.
解决的问题与行为变化
BPS 此前无法在本通道执行联网搜索,只能回退原生通道或明确省略工具。现在账号显式开启后,使用同一 BPS 授权和代理调用 ChatGPT alpha 搜索,再把结果回传 BPS 续轮;普通文字与推理摘要保持流式,工具整批验证后执行,各轮模型用量累计到最终响应。
同时提供可选自动搜索、缓存搜索限制兼容、来源与引用、连续多次搜索和取消处理。没有固定四次搜索上限;保留总时限、单次超时、并发及大小限制。搜索失败不重放、不改账号状态。域名过滤和定位未获确认,因此明确拒绝对应约束。
关联记录与来源
production@999d599f411040de435a012765bff031f72c5df1;head:feat/bps-account-search-20261115@6e484999208c7d30359a0bd6acd36801cab7b86b。feat: BPS 支持必选工具与指定函数、自定义工具 #856 与 fix: BPS 保护当前密文任务并取消固定压缩阈值 #857 已合并。84aca0133285700017bb4d22f4a90f78929f322daa5243c841bf6bece34447a7。按可读说明和静态调用/类型证据重新实现,无第三方业务源码或二进制进入仓库。管理员新功能提示
NewFeatureBadge展示位置:不适用,无 UI 改动。web_search_test.go、openai_excel_bps_search_test.go,最终 head CI 已通过。复现与验收
openai_excel_bps_web_search=true;默认关闭,旧账号行为不变。自动补充工具另需openai_excel_bps_web_search_auto=true。协议、调度或传输改动补充
/v1/responsesOAuth BPS:模型生成仍走 BPS responses,搜索为 POSThttps://chatgpt.com/backend-api/codex/alpha/search。不依赖 Claude 搜索路由插件。{"type":"web_search"};强制搜索使用tool_choice={"type":"web_search"}。客户端指定函数不会被自动搜索替代。external_web_access=false:可选搜索明确停用并保留其他任务;强制搜索失败,不改为联网。位置、非空 filters、image-only、未知选项拒绝。实际验证
兼容性与运行影响
文档与用户可见变化
新增 BPS WEB_SEARCH.md,说明开关、请求限制、流式/计费/取消及权限边界。本 PR 无页面,不适用截图;后续管理界面 PR 提供对应开关与新功能提示。尚未发布或部署。
Agent 使用声明
提交前自查
当前验证提交:
6e484999208c7d30359a0bd6acd36801cab7b86b;production 与已验证依赖树一致,整合无冲突且合并树等于当前 head 树。最终 head CI 已通过。最终验证:
6e484999208c7d30359a0bd6acd36801cab7b86b的 28 项实际运行检查通过,11 项条件跳过。完整后端检查、BPS race 回归、lint。首轮两个 errcheck 类型断言已修复。最终审查已核对:整批工具验证、账号/授权/代理固定、取消关闭、已产生用量、目录隔离、搜索失败分类、缓存模式与指定工具语义。production 整合树等于已验证 head 树,无未解决审查意见。真实搜索和生产尚未验证。