This commit is contained in:
team3
2026-06-14 14:55:44 +02:00
parent 2b89e21cd3
commit 143e6d6f7c
7 changed files with 108 additions and 41 deletions

View File

@@ -93,12 +93,12 @@ export async function chatBaustein({ topic, baustein, section, messages, provide
export async function pruefeBaustein({
topic, baustein, section, provider,
aktion = 'frage', frage = '', letzte_bewertung = '', frage_schon_gut = false, messages = [],
aktion = 'frage', frage = '', letzte_bewertung = '', score_vor_frage = 0, tier2 = 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, frage_schon_gut, messages, provider }),
body: JSON.stringify({ topic, baustein, section, aktion, frage, letzte_bewertung, score_vor_frage, tier2, messages, provider }),
})
return jsonOrThrow(res)
}