Spaces:
Sleeping
Sleeping
Bot commited on
Commit ·
a0f7b65
1
Parent(s): 4c9a680
Inject openai compatible config as fallback
Browse files- src/lib/ai/models.ts +2 -1
src/lib/ai/models.ts
CHANGED
|
@@ -12,6 +12,7 @@ import {
|
|
| 12 |
createOpenAICompatibleModels,
|
| 13 |
openaiCompatibleModelsSafeParse,
|
| 14 |
} from "./create-openai-compatiable";
|
|
|
|
| 15 |
import { ChatModel } from "app-types/chat";
|
| 16 |
import {
|
| 17 |
DEFAULT_FILE_PART_MIME_TYPES,
|
|
@@ -152,7 +153,7 @@ registerFileSupport(
|
|
| 152 |
);
|
| 153 |
|
| 154 |
const openaiCompatibleProviders = openaiCompatibleModelsSafeParse(
|
| 155 |
-
process.env.OPENAI_COMPATIBLE_DATA,
|
| 156 |
);
|
| 157 |
|
| 158 |
const {
|
|
|
|
| 12 |
createOpenAICompatibleModels,
|
| 13 |
openaiCompatibleModelsSafeParse,
|
| 14 |
} from "./create-openai-compatiable";
|
| 15 |
+
import openaiCompatibleConfig from "../../../openai-compatible.config";
|
| 16 |
import { ChatModel } from "app-types/chat";
|
| 17 |
import {
|
| 18 |
DEFAULT_FILE_PART_MIME_TYPES,
|
|
|
|
| 153 |
);
|
| 154 |
|
| 155 |
const openaiCompatibleProviders = openaiCompatibleModelsSafeParse(
|
| 156 |
+
process.env.OPENAI_COMPATIBLE_DATA || openaiCompatibleConfig,
|
| 157 |
);
|
| 158 |
|
| 159 |
const {
|