Skip to content

Commit 046aa62

Browse files
committed
docs: add web search fix to v4.1.21 changelog
1 parent bf54939 commit 046aa62

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,13 @@ response = client.chat.completions.create(
443443
- **[核心增强] Linux 版本检测与 HTTP 客户端鲁棒性**:
444444
- **版本解析**: 增强了 Linux 平台的版本号提取逻辑 (`extract_semver`),能从复杂的命令行输出中准确识别版本,提升了自动更新和环境检测的准确性。
445445
- **客户端降级**: 为 HTTP 客户端构建过程增加了自动降级机制。当代理配置导致构建失败时,系统会自动回退到无代理模式或默认配置,防止因网络配置错误导致应用完全不可用。
446+
- **[核心修复] Cherry Studio 联网搜索空响应修复 (/v1/responses)**:
447+
- **SSE 事件补全**: 重写了 `create_codex_sse_stream`,补全了 OpenAI Responses API 规范要求的完整 SSE 事件生命周期(`response.output_item.added``content_part.added/done``output_item.done``response.completed`),解决了 Cherry Studio 因事件缺失导致无法组装响应内容的问题。
448+
- **联网搜索注入修复**: 过滤了 Cherry Studio 发送的 `builtin_web_search` 工具声明,防止其与 `inject_google_search_tool` 冲突,确保 Google Search 工具被正确注入。
449+
- **搜索引文回显**: 为 Codex 流式响应添加了 `groundingMetadata` 解析,支持在联网搜索结果中回显搜索查询和来源引文。
450+
- **[优化] Claude 协议联网与思考稳定性 (PR #2007)**:
451+
- **移除联网降级**: 移除了 Claude 协议中针对联网搜索的激进模型降级逻辑,避免不必要的模型回退。
452+
- **移除思考历史降级**: 移除了 `should_disable_thinking_due_to_history` 检查,不再因历史消息格式问题永久禁用思考模式,改为依赖 `thinking_recovery` 机制自动修复。
446453
- **UI 优化 (Fix #2008)**: 改进了冷却时间的显示颜色 (使用蓝色),提高了在小字体下的可读性。
447454
* **v4.1.20 (2026-02-16)**:
448455
* **[✨ 新春祝福] 祝大家马年一马当先,万事如意!Code 运昌隆,上线无 Bug!🧧**

README_EN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,13 @@ print(response.choices[0].message.content)
295295
- **[Core Enhancement] Linux Version Detection & HTTP Client Robustness**:
296296
- **Version Parsing**: Enhanced Linux version extraction logic (`extract_semver`) to accurately identify semantic versions from complex command outputs, improving auto-update and environment detection accuracy.
297297
- **Client Fallback**: Added automatic fallback mechanisms for HTTP client construction. If proxy configuration fails, the system automatically reverts to no-proxy mode or default settings, preventing total application failure due to network misconfiguration.
298+
- **[Core Fix] Cherry Studio Web Search Empty Response (/v1/responses)**:
299+
- **SSE Event Completion**: Rewrote `create_codex_sse_stream` to emit the complete SSE event lifecycle required by the OpenAI Responses API specification (`response.output_item.added`, `content_part.added/done`, `output_item.done`, `response.completed`), resolving the issue where Cherry Studio failed to assemble response content due to missing events.
300+
- **Web Search Injection Fix**: Filtered out `builtin_web_search` tool declarations sent by Cherry Studio to prevent conflicts with `inject_google_search_tool`, ensuring the Google Search tool is correctly injected.
301+
- **Search Citation Echo**: Added `groundingMetadata` parsing to the Codex streaming response, enabling search query and source citation echo in web search results.
302+
- **[Optimization] Claude Protocol Web Search & Thinking Stability (PR #2007)**:
303+
- **Remove Web Search Downgrade**: Removed the aggressive model fallback logic for web search in the Claude protocol mapper, preventing unnecessary model downgrades.
304+
- **Remove Thinking History Downgrade**: Removed the `should_disable_thinking_due_to_history` check that could permanently disable thinking mode due to imperfect message history, now relying on `thinking_recovery` mechanism for automatic repair.
298305
- **UI Improvement (Fix #2008)**: Enhanced the readability of cooldown times by changing the text color to blue.
299306
* **v4.1.20 (2026-02-16)**:
300307
* Fixed `400 INVALID_ARGUMENT` error in Claude Proxy during tool calls.

0 commit comments

Comments
 (0)