fix: lm studio fix
Browse filesLM Studio was unable to receive messages sending message.
- app/utils/constants.ts +0 -3
app/utils/constants.ts
CHANGED
|
@@ -462,9 +462,6 @@ async function getOpenRouterModels(): Promise<ModelInfo[]> {
|
|
| 462 |
}
|
| 463 |
|
| 464 |
async function getLMStudioModels(_apiKeys?: Record<string, string>, settings?: IProviderSetting): Promise<ModelInfo[]> {
|
| 465 |
-
if (typeof window === 'undefined') {
|
| 466 |
-
return [];
|
| 467 |
-
}
|
| 468 |
|
| 469 |
try {
|
| 470 |
const baseUrl = settings?.baseUrl || import.meta.env.LMSTUDIO_API_BASE_URL || 'http://localhost:1234';
|
|
|
|
| 462 |
}
|
| 463 |
|
| 464 |
async function getLMStudioModels(_apiKeys?: Record<string, string>, settings?: IProviderSetting): Promise<ModelInfo[]> {
|
|
|
|
|
|
|
|
|
|
| 465 |
|
| 466 |
try {
|
| 467 |
const baseUrl = settings?.baseUrl || import.meta.env.LMSTUDIO_API_BASE_URL || 'http://localhost:1234';
|