xonecas.io
53129
Pa

PAT / commit a315e75

fix: don't log keys or secrets

xonecas2025-12-17 a315e75ef94b8cbaab8684dce23fdbd1cb03d789 parent d5eba93

1 file changed

src/lib/ollama/websearch.ts+1−1
@@ -40,7 +40,7 @@ export async function queryWebSearch(query: string): Promise<string> {
4040 const cx = process.env.GOOGLE_CUSTOM_SEARCH_ENGINE_ID;
4141
4242 if (!apiKey || !cx) {
43- debug(`[WebSearch] Missing API credentials - API_KEY: ${!!apiKey}, CX: ${!!cx}`);
43+ debug(`[WebSearch] Missing API credentials`);
4444 return `Error: Google Custom Search API credentials not configured. Please set GOOGLE_CUSTOM_SEARCH_API_KEY and GOOGLE_CUSTOM_SEARCH_ENGINE_ID environment variables.`;
4545 }