Upload 2 files
Browse files- Dockerfile +2 -1
- constant.ts +1 -1
Dockerfile
CHANGED
@@ -10,9 +10,10 @@ 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 |
|
14 |
WORKDIR /app
|
15 |
-
RUN yarn install && yarn run build
|
16 |
|
17 |
WORKDIR /app/web
|
18 |
RUN yarn install && yarn run build
|
|
|
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
|
16 |
+
RUN yarn install && yarn add axios && yarn run build
|
17 |
|
18 |
WORKDIR /app/web
|
19 |
RUN yarn install && yarn run build
|
constant.ts
CHANGED
@@ -29,7 +29,7 @@ async function fetchOpenAIModels(): Promise<string[]> {
|
|
29 |
}
|
30 |
|
31 |
// 修改 Models 数组,将 'openai' 平台的模型设置为动态获取
|
32 |
-
export
|
33 |
{
|
34 |
platform: 'aliyun',
|
35 |
type: '',
|
|
|
29 |
}
|
30 |
|
31 |
// 修改 Models 数组,将 'openai' 平台的模型设置为动态获取
|
32 |
+
export let Models: IModelInfo[] = [
|
33 |
{
|
34 |
platform: 'aliyun',
|
35 |
type: '',
|