Browse Source

feat:调整为正式环境配置

zhangwl 1 month ago
parent
commit
930bbe2a25
3 changed files with 11 additions and 10 deletions
  1. 2 1
      chat-ai-ui-main/.env
  2. 1 1
      chat-ai-ui-main/README.md
  3. 8 8
      chat-ai-ui-main/src/components/ChatInput.vue

+ 2 - 1
chat-ai-ui-main/.env

@@ -1 +1,2 @@
-VITE_API_URL=http://localhost:8000
+#VITE_API_URL=http://localhost:8000
+VITE_API_URL=http://aisearch.zhongsou.com/main

+ 1 - 1
chat-ai-ui-main/README.md

@@ -10,7 +10,7 @@
 1. 克隆仓库
 1. 克隆仓库
 2. 运行 `npm install`
 2. 运行 `npm install`
 3. 在根目录创建 `.env` 文件并添加以下环境变量:
 3. 在根目录创建 `.env` 文件并添加以下环境变量:
-
+4. 打包运行 `npm run build`
 ```
 ```
 VITE_API_URL=http://localhost:8000
 VITE_API_URL=http://localhost:8000
 ```
 ```

+ 8 - 8
chat-ai-ui-main/src/components/ChatInput.vue

@@ -2,18 +2,18 @@
 import { ref } from 'vue';
 import { ref } from 'vue';
 
 
 const message = ref('');
 const message = ref('');
-const model =  ref("qwen-turbo-2025-04-28");
-const temperature = ref(0.7);
-const maxTokens = ref(2000);
+// const model =  ref("qwen-turbo-2025-04-28");
+// const temperature = ref(0.7);
+// const maxTokens = ref(2000);
 const stream = ref(true);
 const stream = ref(true);
 const emit = defineEmits(['send']);
 const emit = defineEmits(['send']);
 
 
 // 可用的模型选项
 // 可用的模型选项
-const models = [
-  { value: "qwen-turbo-2025-04-28", label: "Qwen Turbo" },
-  { value: "qwen-plus-2025-07-14", label: "Qwen Plus" },
-  { value: "qwen-flash", label: "Qwen Flash" }
-];
+// const models = [
+//   { value: "qwen-turbo-2025-04-28", label: "Qwen Turbo" },
+//   { value: "qwen-plus-2025-07-14", label: "Qwen Plus" },
+//   { value: "qwen-flash", label: "Qwen Flash" }
+// ];
 
 
 /**
 /**
  * 发送消息函数
  * 发送消息函数