makecindy / makecindy/cindy

桌面版联网搜索强制注入 web_search 工具,第三方 Chat Completions 模型每次请求都报错

Open
#2,477 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.7k
Forks
395
Avg merge
21h 48m
Merged PRs (30d)
776

Description

**客户端版本**: 0.1.44
**反馈类型**: bug

---

## 现象
使用第三方 OpenAI 兼容模型(走 Chat Completions 桥接,例如 Kimi-K3 经第三方中转)时,每次发送消息都会报错:

```json
{"error":{"type":"invalid_request_error","code":"unsupported_feature","message":"Responses feature is not supported by the Chat Completions bridge: tools[27].web_search"}}
```

## 复现步骤
1. 配置一个第三方 OpenAI 兼容模型(Chat Completions 桥接);
2. 新建或继续任意会话并发送消息;
3. 请求被拒绝,返回上述错误。

## 复现频率
总是(每条消息都会触发)。

## 实际行为
客户端无视模型通道,强制在每个请求中注入 OpenAI Responses 专属的 `web_search` 工具,Chat Completions 桥接端拒绝该工具导致请求失败。尝试改用 Responses 通道时,第三方模型又报 `Model ... does not support apiType: responses`,两条路都不通。

## 期望行为
1. 提供「联网搜索」的配置开关(设置页或会话级);
2. 对不支持 web_search 的模型/通道(如 Chat Completions 桥接的第三方模型)自动跳过工具注入,或按模型能力判断。

## 已尝试的解决办法
- 在设置中查找联网搜索开关:未找到,本地配置中也没有对应字段;
- 切换到 Responses 通道:第三方模型不支持 `responses` 协议。
---
**OS**: win32 x64 (10.0.26200)
**界面语言**: zh-CN

Contributor guide

Open the contributing guide

Research direction

Start by tracing desktop message requests to where the web_search tool is injected and where the model's apiType or capabilities are selected. Compare the Chat Completions bridge path with the Responses path described in the report. Done means unsupported models no longer receive web_search, with the reported third-party model able to send messages successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.