fix: log DeepSeek error in risk-flags catch block

This commit is contained in:
2026-07-25 22:08:18 +08:00
parent 9c67014bb9
commit 6a2551546d
+2 -1
View File
@@ -151,7 +151,8 @@ ${JSON.stringify(aggregates, null, 2)}
</zone_data>`, </zone_data>`,
}], }],
}) })
} catch { } catch (err) {
console.error('DeepSeek risk-flags error:', err)
return NextResponse.json({ error: 'AI service unavailable' }, { status: 503 }) return NextResponse.json({ error: 'AI service unavailable' }, { status: 503 })
} }