This commit is contained in:
team3
2026-06-15 18:51:50 +02:00
parent b592944497
commit c00580c261
5 changed files with 29 additions and 12 deletions

View File

@@ -93,12 +93,13 @@ export async function chatBaustein({ topic, baustein, section, messages, provide
export async function pruefeBaustein({
topic, baustein, section, provider,
aktion = 'frage', frage = '', letzte_bewertung = '', score_vor_frage = 0, tier2 = false, messages = [],
aktion = 'frage', frage = '', letzte_bewertung = '', score_vor_frage = 0, streak = 0,
tier2 = false, tier3 = false, messages = [],
}) {
const res = await fetch(`${BASE}/bausteine/pruefung`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ topic, baustein, section, aktion, frage, letzte_bewertung, score_vor_frage, tier2, messages, provider }),
body: JSON.stringify({ topic, baustein, section, aktion, frage, letzte_bewertung, score_vor_frage, streak, tier2, tier3, messages, provider }),
})
return jsonOrThrow(res)
}