diff --git a/app/api/dashboard/ai/risk-flags/route.ts b/app/api/dashboard/ai/risk-flags/route.ts index 88d4c77..a9547d8 100644 --- a/app/api/dashboard/ai/risk-flags/route.ts +++ b/app/api/dashboard/ai/risk-flags/route.ts @@ -151,7 +151,8 @@ ${JSON.stringify(aggregates, null, 2)} `, }], }) - } catch { + } catch (err) { + console.error('DeepSeek risk-flags error:', err) return NextResponse.json({ error: 'AI service unavailable' }, { status: 503 }) }