feat: update loading message duration and add caching information; increase timeout for theme session generation
All checks were successful
On Push to Main / test (push) Successful in 43s
On Push to Main / publish (push) Successful in 1m25s
On Push to Main / deploy-dev (push) Successful in 1m56s

This commit is contained in:
RaymondVerhoef
2026-05-28 12:03:55 +02:00
parent d38c75beb1
commit 8160242be5
2 changed files with 2 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ export default function ThemeSessionView({
<Card className="w-full text-center py-16">
<Loader size={48} className="mx-auto text-teal animate-spin mb-4" />
<p className="font-medium text-lg">Preparing this week's theme session…</p>
<p className="text-fg-muted text-sm mt-2">This may take 1530 seconds the first time.</p>
<p className="text-fg-muted text-sm mt-2">This may take 3090 seconds the first time — the result is cached.</p>
</Card>
);
}

View File

@@ -52,6 +52,7 @@ export async function getOrGenerateThemeSession(curriculumVersionId, weekContent
tools: [EMIT_THEME_SESSION_TOOL],
toolChoice: { type: 'tool', name: EMIT_THEME_SESSION_TOOL.name },
maxTokens: 8192,
timeoutMs: 180_000,
});
const emitted = result.toolUses[0]?.input;