选择 Opus 5 后,内置 WebSearch 与 Bedrock 通道不兼容导致 HTTP 400
- Dominant language
- TypeScript
- Stars
- 2.7k
- Forks
- 395
- Avg merge
- 21h 48m
- Merged PRs (30d)
- 776
Description
**提交人**: 匿名
**客户端版本**: 0.1.81
---
## 问题现象
用户在 Cindy 中选择 Opus 5 后,对话请求返回 HTTP 400。用户表示未主动开启联网搜索。
错误摘要:LiteLLM 返回 BadRequestError,内部为 BedrockException,提示工具类型 `web_search_20250305` 不受当前模型支持。
## 已知情况
- 故障发生时用户选择的模型显示为 Opus 5;实际上游模型 ID 和故障时的 Harness 尚未核实。系统自动附加的环境是提交时快照,可能与故障时不同。
- 本地检查发现,当前工程的 Claude Code 本地设置及用户设置中已有允许 `WebSearch` 的规则;尚未确定这些规则的来源,也未确认此次失败请求中该工具具体由哪一层加入。
- 目前证据能够确认请求中的搜索工具与实际 Bedrock 接入组合不兼容,尚不能归因到 Cindy 客户端或上游服务端。
## 临时处理与复测状态
已在当前工程的本地设置中移除 `WebSearch` 的允许项,并加入明确的禁止项;JSON 配置检查通过。尚未重启 Cindy 并复测,因此暂不能确认该处理是否能消除报错。
## 期望行为
选择可用模型后,普通对话应能正常进行。对于当前接入通道不支持的内置工具,应自动禁用或提供兼容处理,避免因搜索工具不受支持而让整条请求失败。
---
## 提交时的任务环境
仅代表提交时快照,不一定是故障环境。OS 来自提交客户端本机,不含 SSH 远端主机;Harness / 模型来自当前任务。与运行环境无关的反馈可忽略本段。
**OS**: win32 x64 (10.0.26100)
**Harness**: Codex
**Model ID**: ` gpt-6-astra `
**界面语言**: zh-CN
Contributor guide
Research direction
Start by reproducing the HTTP 400 with Opus 5 through the Bedrock channel, then trace where the WebSearch tool is added, including the Cindy local and user settings. Confirm whether removing or disabling WebSearch prevents the failure; done means ordinary model requests succeed and unsupported tools no longer cause the request to fail.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript
- Domain
- api, backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100