mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-22 16:25:51 +00:00
fix: 修复第三方 Anthropic base URL 应使用 ExaSearchAdapter 而非 BingSearchAdapter
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -43,9 +43,11 @@ export function createAdapter(): WebSearchAdapter {
|
|||||||
const adapterKey =
|
const adapterKey =
|
||||||
envAdapter === 'api' || envAdapter === 'bing' || envAdapter === 'brave' || envAdapter === 'exa'
|
envAdapter === 'api' || envAdapter === 'bing' || envAdapter === 'brave' || envAdapter === 'exa'
|
||||||
? envAdapter
|
? envAdapter
|
||||||
: isFirstPartyAnthropicBaseUrl()
|
: isThirdPartyProvider()
|
||||||
? 'api'
|
? 'bing'
|
||||||
: 'exa'
|
: isFirstPartyAnthropicBaseUrl()
|
||||||
|
? 'api'
|
||||||
|
: 'exa'
|
||||||
|
|
||||||
if (cachedAdapter && cachedAdapterKey === adapterKey) return cachedAdapter
|
if (cachedAdapter && cachedAdapterKey === adapterKey) return cachedAdapter
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user