LlamaFinetuneGGUF commited on
Commit
ba1b554
·
1 Parent(s): 5f34051

fix: LM Studio sending messgae

Browse files

LM Studio was not able to send a message now it is.

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';