로그: 'webSearch via <설정값>'을 'webSearch:'로 — Claude 검색이 답해도 'via ollama'로 찍혀 헷갈림

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
kimandClaude Opus 5.5 committed 2026-10-21 11:32:03 +09:00
1 parent c6333f2acd
commit b5284ba171
1 file changed
+3 -1
+3 -1
View File
@@ -1349,7 +1349,9 @@ async function webSearch(query: string): Promise<string> {
const provider = searchCfg.preferred_provider || 'google';
// 설정값은 `vault:...` 참조일 수 있다 — 풀지 않고 넘기면 Tavily가 참조 문자열을 키로 받아 401을 낸다.
const tavilyKey = getConfig().resolveSecret(searchCfg.tavily_api_key) || '';
console.log(`[v2] webSearch via ${provider}: ${query.slice(0, 80)}`);
// 실제로 쓴 엔진은 다음 줄(claude_search: / web_search DUAL: 등)이 알려 준다. 예전 "via ${provider}"는 설정값일 뿐이라
// Claude 검색이 답한 경우에도 "via ollama"로 찍혀 헷갈렸다(2026-10-21).
console.log(`[v2] webSearch: ${query.slice(0, 80)}`);
// 1순위: Claude 자체 웹 검색(꺼짐·키 없음·월 한도 초과·오류면 null → 아래 기존 라우팅으로)
try {