feat: update loading message duration and add caching information; increase timeout for theme session generation
This commit is contained in:
@@ -45,7 +45,7 @@ export default function ThemeSessionView({
|
|||||||
<Card className="w-full text-center py-16">
|
<Card className="w-full text-center py-16">
|
||||||
<Loader size={48} className="mx-auto text-teal animate-spin mb-4" />
|
<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="font-medium text-lg">Preparing this week's theme session…</p>
|
||||||
<p className="text-fg-muted text-sm mt-2">This may take 15–30 seconds the first time.</p>
|
<p className="text-fg-muted text-sm mt-2">This may take 30–90 seconds the first time — the result is cached.</p>
|
||||||
</Card>
|
</Card>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -52,6 +52,7 @@ export async function getOrGenerateThemeSession(curriculumVersionId, weekContent
|
|||||||
tools: [EMIT_THEME_SESSION_TOOL],
|
tools: [EMIT_THEME_SESSION_TOOL],
|
||||||
toolChoice: { type: 'tool', name: EMIT_THEME_SESSION_TOOL.name },
|
toolChoice: { type: 'tool', name: EMIT_THEME_SESSION_TOOL.name },
|
||||||
maxTokens: 8192,
|
maxTokens: 8192,
|
||||||
|
timeoutMs: 180_000,
|
||||||
});
|
});
|
||||||
|
|
||||||
const emitted = result.toolUses[0]?.input;
|
const emitted = result.toolUses[0]?.input;
|
||||||
|
|||||||
Reference in New Issue
Block a user