Browse Source

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

jimmylee 2 tuần trước cách đây
mục cha
commit
56702bb0e5
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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,
       }),