From 1098bf51f4a5c5d612e9e881044afba5d55a7efd Mon Sep 17 00:00:00 2001 From: chrarnoldus <12196001+chrarnoldus@users.noreply.github.com> Date: Thu, 25 Jun 2026 11:11:38 +0000 Subject: [PATCH] fix(ai-gateway): reduce provider sync log spam Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com> --- .../src/lib/ai-gateway/providers/openrouter/sync-providers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/lib/ai-gateway/providers/openrouter/sync-providers.ts b/apps/web/src/lib/ai-gateway/providers/openrouter/sync-providers.ts index 2c063ede2c..ada27abcf3 100644 --- a/apps/web/src/lib/ai-gateway/providers/openrouter/sync-providers.ts +++ b/apps/web/src/lib/ai-gateway/providers/openrouter/sync-providers.ts @@ -62,7 +62,6 @@ async function fetchGatewayModels(gateway: Provider) { await Promise.all( models.data.map(model => limit(async () => { - console.debug(`[fetchGatewayModels] ${gateway.id}/${model.id}`); const endpointsResponse = await fetch(`${gateway.apiUrl}/models/${model.id}/endpoints`, { method: 'GET', headers, @@ -85,6 +84,7 @@ async function fetchGatewayModels(gateway: Provider) { if (count < 100) { throw new Error(`Suspicious: total number of ${gateway.id} models is ${count} < 100`); } + console.debug(`[fetchGatewayModels] fetched ${count} models from ${gateway.id}`); return result; }