Upload app.ts
Browse files
app.ts
CHANGED
|
@@ -7,7 +7,7 @@ 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
|
| 13 |
// @ts-ignore
|
|
|
|
| 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 './utils/constant'; // 请确保路径正确
|
| 11 |
|
| 12 |
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
| 13 |
// @ts-ignore
|