mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-24 09:05:50 +00:00
fix: review — Brave API key + webFetchHttpTimeoutMs 联动 + Tavily URL 推导
- braveAdapter: 读取 settings.braveApiKey (优先于环境变量) - webFetch utils: getFetchTimeoutMs() 统一读取 settings.webFetchHttpTimeoutMs,HTTP/Tavily 两条路径均生效 - tavilyAdapter: 自定义端点自动追加 /search 路径(与 fetchContentWithTavily 一致) Co-Authored-By: deepseek-v4-pro <deepseek-ai@claude-code-best.win>
This commit is contained in:
@@ -43,7 +43,11 @@ export class TavilySearchAdapter implements WebSearchAdapter {
|
||||
const settings = getSettings_DEPRECATED() as Record<string, unknown> & {
|
||||
tavilyEndpointUrl?: string
|
||||
}
|
||||
const searchUrl = settings.tavilyEndpointUrl || DEFAULT_TAVILY_SEARCH_URL
|
||||
const baseUrl = settings.tavilyEndpointUrl || DEFAULT_TAVILY_SEARCH_URL
|
||||
// Ensure the URL ends with /search (same pattern as fetchContentWithTavily for /extract)
|
||||
const searchUrl = baseUrl.endsWith('/search')
|
||||
? baseUrl
|
||||
: `${baseUrl.replace(/\/$/, '')}/search`
|
||||
|
||||
try {
|
||||
const response = await axios.post<{
|
||||
|
||||
Reference in New Issue
Block a user