diff --git a/memento-note/app/api/ai/suggest-charts/route.ts b/memento-note/app/api/ai/suggest-charts/route.ts index b501331..e855858 100644 --- a/memento-note/app/api/ai/suggest-charts/route.ts +++ b/memento-note/app/api/ai/suggest-charts/route.ts @@ -46,7 +46,7 @@ export async function POST(req: Request) { // 1.5 Quota check try { const sysConfigEarly = await getSystemConfig() - const { usedByok: willUseByok } = await willUseByokForLane('suggest-charts', sysConfigEarly, userId) + const { usedByok: willUseByok } = await willUseByokForLane('chat', sysConfigEarly, userId) console.log('[suggest-charts] BYOK:', willUseByok) if (!willUseByok) { await checkEntitlementOrThrow(userId, 'suggest_charts') @@ -95,7 +95,7 @@ export async function POST(req: Request) { let sysConfig, provider, model try { sysConfig = await getSystemConfig() - const result = await resolveAiRouteWithTiming('suggest-charts', sysConfig) + const result = await resolveAiRouteWithTiming('chat', sysConfig) provider = result.provider model = result.model console.log('[suggest-charts] AI model:', model)