Skip to content

Commit 1d64a15

Browse files
fix: lm studio fix
LM Studio was unable to receive messages sending message.
2 parents b6df84b + ba1b554 commit 1d64a15

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

app/utils/constants.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -462,9 +462,6 @@ async function getOpenRouterModels(): Promise<ModelInfo[]> {
462462
}
463463

464464
async function getLMStudioModels(_apiKeys?: Record<string, string>, settings?: IProviderSetting): Promise<ModelInfo[]> {
465-
if (typeof window === 'undefined') {
466-
return [];
467-
}
468465

469466
try {
470467
const baseUrl = settings?.baseUrl || import.meta.env.LMSTUDIO_API_BASE_URL || 'http://localhost:1234';

0 commit comments

Comments
 (0)