DeepSeek-Reasonix
DeepSeek-Reasonix copied to clipboard
feat(deepseek): add server-side web search controls
Summary
- Add DeepSeek Responses API support for the provider-executed web_search tool and tolerate its streaming lifecycle events.
- Expose server-side web search as a provider-level capability for official DeepSeek Responses and Anthropic integrations, enabled for new curated presets while preserving the disabled default for existing and custom configurations.
- Replace editable image-input controls on official text-only DeepSeek models with read-only capability labels, and add cost, privacy, protocol, and applicable-model guidance.
- Persist the capability through the Desktop bridge and configuration layer, with English, Simplified Chinese, and Traditional Chinese copy plus focused regression coverage.
Issues
None.
Verification
- go test ./...
- go test ./internal/provider/responses ./internal/config
- go test ./... -run TestProviderViewFromEntryIncludesWebSearch|TestSaveProviderPersistsWebSearchWithoutChangingLegacyDefault -count=1 (from desktop/)
- npm run typecheck
- npx tsx src/tests/provider-editor-model-picker.test.tsx
- npm run build
- Browser verification in the Desktop mock: curated Responses preset defaults on, capability hierarchy is separated from model selection, and the 768 px layout has no horizontal overflow.
Documentation impact
Documentation-impact: none - the provider-specific behavior is explained inline in Desktop settings, and the existing documentation does not enumerate these preset capabilities.
Cache impact
Cache-impact: low - enabling the capability adds a deterministic web_search entry before function tools; disabled and legacy configurations keep their existing request shape. Cache-guard: TestWebSearchToolPrecedesFunctionTools plus go test ./internal/provider/responses ./internal/config System-prompt-review: SivanCola reviewed - no system prompt, memory prefix, output style, or skill index behavior changes; config.go only persists and documents the provider web_search capability.