Sfoglia il codice sorgente

fix(student page): 调整接口请求和对话模型配置

1.  将固定接口路径改为动态拼接api变量
2.  注释掉登录过期提示弹框
3.  将对话模型从open-gpt-4.1改为qwen3.5-flash
4.  清空对话时使用代理数据中的模型类型
lsc 1 giorno fa
parent
commit
d53a13598b

+ 2 - 2
src/views/Student/components/DialoguePanel.vue

@@ -284,7 +284,7 @@ const sendMessage = () => {
     message: userInput,
     userId: props.userid,
     // model: node.properties.item.modelType,
-    model: 'open-gpt-4.1',
+    model: 'qwen3.5-flash',
     file_ids: [],
     sound_url: '',
     temperature: 0.2,
@@ -437,7 +437,7 @@ const clearChatHistory = async () => {
 
   try {
     const params = {
-      model: 'open-gpt-4.1',
+      model: agentData.value.modelType,
       thread_id: agentData.value.thread_id,
       groupid: `${props.courseid?.slice(0, 31)}${props.userid?.slice(0, 5)}`,
       userid: props.userid,

+ 2 - 2
src/views/Student/index.vue

@@ -3913,11 +3913,11 @@ const addOp3 = async (userTime: any, loadTime: any, object: any, status: any) =>
 
   try {
     if (!userJson.value || !userJson.value.accountNumber) {
-      const res = await axios.get('https://pbl.cocorobo.cn/api/pbl/selectUser', {
+      const res = await axios.get('https://pbl.cocorobo.cn/api/pbl/' + api, {
         params: { userid: props.userid }
       })
       if (res == 201 || res.length == 0) {
-        message.error('登录已过期,请重新登录')
+        // message.error('登录已过期,请重新登录')
         return
       }
       userJson.value = res[0][0]