Просмотр исходного кода

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

jimmylee 2 недель назад
Родитель
Сommit
56702bb0e5
1 измененных файлов с 3 добавлено и 0 удалено
  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,
       }),