The before_provider_request hook used model.startsWith("claude") to gate
native web search injection. This matched claude-* models served by any
provider (GitHub Copilot, AWS Bedrock, etc.), incorrectly injecting
Anthropic-only web_search_20250305 tool definitions into non-Anthropic
API requests.
The fix checks the isAnthropicProvider flag (set by model_select via the
provider field) instead of sniffing the model name.
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| app-smoke.test.ts | ||
| artifact-manager.test.ts | ||
| blob-store.test.ts | ||
| llm-context-tavily.test.ts | ||
| native-search.test.ts | ||
| provider.test.ts | ||
| search-provider-command.test.ts | ||
| search-tavily.test.ts | ||
| tavily-helpers.test.ts | ||
| tool-bootstrap.test.ts | ||
| ttsr-manager.test.ts | ||
| ttsr-rule-loader.test.ts | ||