Procházet zdrojové kódy

feat(speaking): send grade/vocabulary/sentences to backend /session

jimmylee před 2 týdny
rodič
revize
56702bb0e5

+ 3 - 0
src/views/Editor/EnglishSpeaking/services/llmService.ts

@@ -159,6 +159,9 @@ export class RealDialogueAPI implements DialogueAPI {
       credentials: 'include',
       body: JSON.stringify({
         topic: config.topic,
+        grade: config.grade,
+        vocabulary: config.vocabulary ?? [],
+        sentences: config.sentences ?? [],
         totalRounds: config.totalRounds,
         roleId: config.roleId,
       }),