Explorar el Código

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

jimmylee hace 2 semanas
padre
commit
56702bb0e5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/views/Editor/EnglishSpeaking/services/llmService.ts

+ 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,
       }),