瀏覽代碼

feat(speaking): pass grade and sentences to createSession

jimmylee 1 月之前
父節點
當前提交
4caa6bdb9d
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/views/Editor/EnglishSpeaking/preview/TopicDiscussionPreview.vue

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

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