瀏覽代碼

修改ai链接

yangg 6 月之前
父節點
當前提交
0aef7198ee

+ 2 - 2
.env.development

@@ -2,8 +2,8 @@
 ENV = 'development'
 ENV = 'development'
 port = 8080
 port = 8080
 # base api
 # base api
-VUE_APP_BASE_AI_API='http://192.168.66.163:8082'
-VUE_APP_BASE_API = 'http://192.168.66.163:8084'
+VUE_APP_BASE_AI_API='https://ylaiapi.raycos.com.cn'
+VUE_APP_BASE_API = 'http://183.195.216.54:8084'
 #192.168.66.187
 #192.168.66.187
 #朱:192.168.66.163
 #朱:192.168.66.163
 #测试服务器:121.36.251.245
 #测试服务器:121.36.251.245

文件差異過大導致無法顯示
+ 0 - 0
dist/index.html


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/chunk-03ae2181.0c3c86c9.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.c3e74364.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-03ae2181.90be8164.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/chunk-3496c1f0.f574722c.js


+ 3 - 3
src/views/login/aiIndex.vue

@@ -238,7 +238,7 @@ export default {
           formData.append("file", file);
           formData.append("file", file);
 
 
           const response = await axios.post(
           const response = await axios.post(
-            `${"http://192.168.66.187:8082"}/upload/file`,//process.env.VUE_APP_BASE_API
+            `${process.env.VUE_APP_BASE_AI_API}/upload/file`,//process.env.VUE_APP_BASE_API
             formData,
             formData,
             {
             {
               headers: {
               headers: {
@@ -410,7 +410,7 @@ export default {
         }
         }
       }
       }
       const chatId = this.getUuid();
       const chatId = this.getUuid();
-      const wsUrl = `${"http://192.168.66.187:8082"}/api/chat/chatgpt`; //process.env.VUE_APP_BASE_AI_API/chatbot/multimodal
+      const wsUrl = `${process.env.VUE_APP_BASE_AI_API}/chatbot/multimodal`; //process.env.VUE_APP_BASE_AI_API /chatbot/multimodal /api/chat/chatgpt
       let message = this.userInput.trim();
       let message = this.userInput.trim();
 
 
       const imageUrls = this.uploadFiles
       const imageUrls = this.uploadFiles
@@ -518,7 +518,7 @@ export default {
         console.log("Sending to backend:", JSON.stringify(idObject));
         console.log("Sending to backend:", JSON.stringify(idObject));
 
 
         const response = await axios.post(
         const response = await axios.post(
-          `${"http://192.168.66.187:8082"}/milvus/getMinioURl`,
+          `${process.env.VUE_APP_BASE_AI_API}/milvus/getMinioURl`,
           idObject,
           idObject,
           {
           {
             headers: {
             headers: {

部分文件因文件數量過多而無法顯示