gitdeem commited on
Commit
7a2dc96
1 Parent(s): 5d8f340

Upload 3 files

Browse files
Files changed (3) hide show
  1. Dockerfile +1 -1
  2. app.ts +2 -2
  3. constant.ts +6 -6
Dockerfile CHANGED
@@ -9,7 +9,7 @@ COPY ./logo.png /app/web/src/assets/logo.png
9
  COPY ./logo.png /app/web/src/public/favicon.ico
10
  COPY ./home.vue /app/web/src/pages/home.vue
11
  COPY ./toolbar.vue /app/web/src/components/toolbar.vue
12
- COPY ./constant.ts /app/backend/constant.ts
13
  COPY ./app.ts /app/backend/app.ts
14
 
15
  WORKDIR /app
 
9
  COPY ./logo.png /app/web/src/public/favicon.ico
10
  COPY ./home.vue /app/web/src/pages/home.vue
11
  COPY ./toolbar.vue /app/web/src/components/toolbar.vue
12
+ COPY ./constant.ts /app/backend/utils/constant.ts
13
  COPY ./app.ts /app/backend/app.ts
14
 
15
  WORKDIR /app
app.ts CHANGED
@@ -4,9 +4,9 @@ import cors from '@koa/cors';
4
  import { bodyParser } from '@koa/bodyparser';
5
  import serve from 'koa-static';
6
  import path from 'path';
7
- import { whiteListMiddleware } from './middlewares';
8
  import history from 'koa2-connect-history-api-fallback';
9
- import { chatStreamController, localChatStreamController, localModelsController, modelsController, searchController, sogouSearchController } from './controllers';
10
  import { initializeModels } from './constant'; // 请确保路径正确
11
 
12
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
 
4
  import { bodyParser } from '@koa/bodyparser';
5
  import serve from 'koa-static';
6
  import path from 'path';
7
+ import { whiteListMiddleware } from './middleware';
8
  import history from 'koa2-connect-history-api-fallback';
9
+ import { chatStreamController, localChatStreamController, localModelsController, modelsController, searchController, sogouSearchController } from './controller';
10
  import { initializeModels } from './constant'; // 请确保路径正确
11
 
12
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
constant.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IModelInfo } from './interface';
2
  import axios from 'axios';
3
 
4
  // Search engine related. You don't really need to change this.
@@ -33,12 +33,12 @@ export let Models: IModelInfo[] = [
33
  {
34
  platform: 'aliyun',
35
  type: '',
36
- models: ['qwen-max', 'qwen-max-1201', 'qwen-turbo', 'qwen-plus']
37
  },
38
  {
39
  platform: 'openai',
40
  type: 'openai',
41
- //models: ['gpt-3.5-turbo', 'gpt-4-0125-preview', 'gpt-4-turbo-preview', 'gpt-4o']
42
  models: [] // 初始为空数组,稍后动态填充
43
  },
44
  {
@@ -49,12 +49,12 @@ export let Models: IModelInfo[] = [
49
  {
50
  platform: 'google',
51
  type: 'gemini',
52
- models: ['gemini-pro', 'gemini-1.5-pro-latest']
53
  },
54
  {
55
  platform: 'yi',
56
  type: 'openai',
57
- models: ['yi-34b-chat-0205', 'yi-34b-chat-200k']
58
  },
59
  {
60
  platform: 'moonshot',
@@ -74,7 +74,7 @@ export let Models: IModelInfo[] = [
74
  {
75
  platform: 'chatglm',
76
  type: 'openai',
77
- models: ['glm-4', 'glm-4v', 'glm-3-turbo']
78
  },
79
  {
80
  platform: 'tencent',
 
1
+ import { IModelInfo } from '../interface';
2
  import axios from 'axios';
3
 
4
  // Search engine related. You don't really need to change this.
 
33
  {
34
  platform: 'aliyun',
35
  type: '',
36
+ models: ['qwen-max', 'qwen-max-0428', 'qwen-turbo', 'qwen-plus']
37
  },
38
  {
39
  platform: 'openai',
40
  type: 'openai',
41
+ //models: ['gpt-4o', 'gpt-4o-mini', 'chatgpt-4o-latest', 'gpt-3.5-turbo', 'gpt-4-preview', 'gpt-4-turbo', 'gpt-4']
42
  models: [] // 初始为空数组,稍后动态填充
43
  },
44
  {
 
49
  {
50
  platform: 'google',
51
  type: 'gemini',
52
+ models: ['gemini-1.0-pro', 'gemini-1.5-pro', 'gemini-1.5-flash']
53
  },
54
  {
55
  platform: 'yi',
56
  type: 'openai',
57
+ models: ['yi-large', 'yi-large-turbo', 'yi-medium', 'yi-spark']
58
  },
59
  {
60
  platform: 'moonshot',
 
74
  {
75
  platform: 'chatglm',
76
  type: 'openai',
77
+ models: ['glm-4', 'glm-4-plus', 'glm-4-air', 'glm-4-airx', 'glm-4-flash']
78
  },
79
  {
80
  platform: 'tencent',