Bläddra i källkod

更换ai接口model

SanHQin 8 månader sedan
förälder
incheckning
f4bd117597

+ 1 - 0
src/components/pages/classroomObservation/components/analysisItem.vue

@@ -256,6 +256,7 @@ export default {
 					session_name: uuidv4(),
 					userId: this.userId,
 					file_ids: this.fileId?[this.fileId]:'',
+					model: "gpt-4o-2024-08-06",
 				};
 
 				// 👇

+ 1 - 0
src/components/pages/classroomObservation/components/baseMessage.vue

@@ -659,6 +659,7 @@ ${this.data.editorBarData?this.data.editorBarData.content:""}
 					uid: _uuid,
 					mind_map_question: "",
 					stream: false,
+					model: "gpt-4o-2024-08-06",
 				};
 				this.ajax
 					.post("https://gpt4.cocorobo.cn/chat", params)

+ 3 - 1
src/components/pages/classroomObservation/components/chatArea.vue

@@ -1198,6 +1198,7 @@ export default {
             session_name: `${this.tid}-classroomObservation`,
             uid: _uid,
             file_ids: this.fileId ? [this.fileId] : [],
+						model: "gpt-4o-2024-08-06",
           };
           this.ajax
             .post("https://gpt4.cocorobo.cn/ai_agent_park_chat_new", params)
@@ -1238,7 +1239,7 @@ export default {
         // })
         _historyMessage.push({ role: "user", content: _text });
         let params = JSON.stringify({
-          model: "gpt-3.5-turbo",
+          model: "gpt-4o-2024-08-06",
           temperature: 0,
           max_tokens: 4096,
           top_p: 1,
@@ -1617,6 +1618,7 @@ ${JSON.stringify(_list)}
           session_name: _uuid,
           // uid: _uuid,
           file_ids: [],
+					model: "gpt-4o-2024-08-06",
         };
 
         this.ajax