Separate settings per generation step; explain Practice and Exam on shares
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 29s
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 29s
- Settings -> AI: Planning, Writing, Python check and Second review each get their own model, reasoning effort, temperature and output limit, shown under Content generation. Unset choices follow Content generation, then the default model. - Shared quizzes say what Practice and Exam mean under the mode toggle. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
2454ab6e95
commit
10be5c39da
9 changed files with 128 additions and 36 deletions
|
|
@ -274,7 +274,7 @@ export async function verifyQuizDraft(
|
|||
req: QuizRequestFacts,
|
||||
opts: { modelId?: string | null; signal?: AbortSignal; onStep?: (label: string) => void } = {},
|
||||
): Promise<QuizCheck> {
|
||||
const resolved = resolveModel(app, 'generate', opts.modelId);
|
||||
const resolved = resolveModel(app, 'check', opts.modelId);
|
||||
if (!resolved.model.capabilities.tools) {
|
||||
return { draft, notes: ['The Python answer check was skipped: the generation model cannot use tools.'], review: null, pythonRuns: 0, failed: [], applied: [], refused: [], removed: 0, rewritten: 0, incomplete: true };
|
||||
}
|
||||
|
|
@ -306,7 +306,7 @@ export async function verifyQuizDraft(
|
|||
else messages.push({ role: 'user', content: [nudge] });
|
||||
}
|
||||
const res = await runChat(app, {
|
||||
task: 'generate',
|
||||
task: 'check',
|
||||
purpose: 'quiz check',
|
||||
modelId: opts.modelId,
|
||||
system,
|
||||
|
|
@ -474,7 +474,7 @@ export async function proofreadQuiz(
|
|||
opts: { modelId?: string | null; signal?: AbortSignal } = {},
|
||||
): Promise<{ draft: QuizDraft; flagged: number; fixes: QuizFix[]; applied: string[]; refused: string[]; rewritten: number; removed: number; incomplete: boolean }> {
|
||||
const none = { draft, flagged: 0, fixes: [], applied: [], refused: [], rewritten: 0, removed: 0 };
|
||||
const resolved = resolveModel(app, 'generate', opts.modelId);
|
||||
const resolved = resolveModel(app, 'review', opts.modelId);
|
||||
if (!resolved.model.capabilities.tools) return { ...none, incomplete: true };
|
||||
const data = quizForPython(draft);
|
||||
const listing = data.questions
|
||||
|
|
@ -484,7 +484,7 @@ export async function proofreadQuiz(
|
|||
const prompt = `${hints.length ? `Wording that looks like a leftover or a change of mind (confirm and fix each):\n${hints.map((h) => `- ${h}`).join('\n')}\n\n` : ''}THE QUIZ (${data.question_count} questions):\n\n${listing}`;
|
||||
try {
|
||||
const res = await runChat(app, {
|
||||
task: 'generate',
|
||||
task: 'review',
|
||||
purpose: 'quiz second review',
|
||||
modelId: opts.modelId,
|
||||
system: PROOFREAD_SYSTEM,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue