sunsheng 3 сар өмнө
parent
commit
04ed0ec9c5

+ 2 - 1
app/client/platforms/deepSeek.ts

@@ -22,7 +22,8 @@ export class DeepSeekApi implements LLMApi {
   constructor() {
   constructor() {
     // this.baseURL = 'http://192.168.3.209:18078';
     // this.baseURL = 'http://192.168.3.209:18078';
     this.baseURL = '/deepseek-api';
     this.baseURL = '/deepseek-api';
-    this.apiPath = this.baseURL + '/vllm/ai/chat';
+    // this.apiPath = this.baseURL + '/vllm/ai/chat';//线上地址
+  this.apiPath = this.baseURL + '/vllm/chat'; // 测试地址 
   }
   }
 
 
   async chat(options: ChatOptions) {
   async chat(options: ChatOptions) {

+ 1 - 0
app/components/home.tsx

@@ -366,6 +366,7 @@ export function Home() {
   }
   }
 
 
   const toUninLogin = async (originUrl:string, fullUrl:string) => {
   const toUninLogin = async (originUrl:string, fullUrl:string) => {
+    return
     //测试环境
     //测试环境
     //const loginUrl = 'https://esctest.sribs.com.cn/esc-sso/oauth2.0/authorize?client_id=e97f94cf93761f4d69e8&response_type=code';
     //const loginUrl = 'https://esctest.sribs.com.cn/esc-sso/oauth2.0/authorize?client_id=e97f94cf93761f4d69e8&response_type=code';
     //生产环境
     //生产环境

+ 2 - 2
next.config.mjs

@@ -92,8 +92,8 @@ if (mode !== "export") {
       },
       },
       {
       {
         source: "/bigmodel-api/:path*",
         source: "/bigmodel-api/:path*",
-        destination: "http://192.168.3.3:8091/:path*",
-        // destination: "http://192.168.3.123:8091/:path*",
+        // destination: "http://192.168.3.3:8091/:path*",
+        destination: "http://192.168.3.123:8091/:path*",
       },
       },
       {
       {
         source: "/deepseek-api/:path*",
         source: "/deepseek-api/:path*",