fix: enable native web search for DeepSeek models in auto mode#270
fix: enable native web search for DeepSeek models in auto mode#270bxclib2 wants to merge 1 commit intoNanmiCoder:mainfrom
Conversation
Add a thirdPartyNativeSearchModelPatterns list for Anthropic-compatible providers that support web_search_20250305 but whose model IDs don't contain "claude". DeepSeek models (deepseek-*) are the first entry. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
PR quality triageChanged areas: area:cli-core CLI core policy: Blocked by policy until a maintainer applies CLI core files:
Expected checks:
Test coverage signals:
Risk notes:
Hard merge gates still come from GitHub Actions, not AI review. Dosu handoff: Dosu can be used as the AI reviewer for risk explanation, missing-test prompts, and maintainer Q&A. If it does not comment automatically from the PR template, ask: @dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact. |
|
Here's the review of PR #270 across the five requested dimensions: Changed-Area Risk: Low–Medium This PR modifies a single file —
The logic change is small but subtly alters the behavior: previously, the function was Missing Tests: Yes — this needs test coverage The existing test file
Docs Impact: None This is an internal provider-resolution change. Web search mode documentation (if any) describes user-facing settings ( Desktop Startup Risk: None Web search provider resolution happens at runtime during message processing, not during app initialization. The desktop app's Tauri/React startup path [5] [6] is completely unaffected. CLI Core Impact: Low The file is flagged as Summary: Small, well-scoped change with correct fallback semantics. Main gap is missing unit tests for the new pattern-matching path. I'd recommend adding those before merge to validate both the happy path (DeepSeek → native) and the failure path (DeepSeek marked unsupported → falls back to Tavily/Brave). To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Add a thirdPartyNativeSearchModelPatterns list for Anthropic-compatible providers that support web_search_20250305 but whose model IDs don't contain "claude". DeepSeek models (deepseek-*) are the first entry.
Summary
Verification
Risk
allow-cli-core-change.@dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact.