LlamaFinetuneGGUF commited on
Commit
1d64a15
·
unverified ·
2 Parent(s): b6df84b ba1b554

fix: lm studio fix

Browse files

LM Studio was unable to receive messages sending message.

Files changed (1) hide show
  1. 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';