Explorar el Código

feat(speaking): pass grade and sentences to createSession

jimmylee hace 2 semanas
padre
commit
4caa6bdb9d

+ 2 - 0
src/views/Editor/EnglishSpeaking/preview/TopicDiscussionPreview.vue

@@ -212,9 +212,11 @@ async function startDialogue() {
     const api = createDialogueApi(props.mode)
     const info = await api.createSession({
       topic: speakingStore.config.topic || props.topic,
+      grade: speakingStore.config.grade,
       totalRounds: speakingStore.config.practice.rounds ?? props.totalRounds,
       roleId: mockRole.id,
       vocabulary: speakingStore.config.learningGoals.vocabulary,
+      sentences: speakingStore.config.learningGoals.sentences,
     })
     preparedSession.value = {
       sessionId: info.sessionId,