fix: lm studio fix

LM Studio was unable to receive messages sending message.
This commit is contained in:
Dustin Loring 2024-12-13 13:53:43 -05:00 committed by GitHub
commit 1d64a15ed0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -462,9 +462,6 @@ async function getOpenRouterModels(): Promise<ModelInfo[]> {
} }
async function getLMStudioModels(_apiKeys?: Record<string, string>, settings?: IProviderSetting): Promise<ModelInfo[]> { async function getLMStudioModels(_apiKeys?: Record<string, string>, settings?: IProviderSetting): Promise<ModelInfo[]> {
if (typeof window === 'undefined') {
return [];
}
try { try {
const baseUrl = settings?.baseUrl || import.meta.env.LMSTUDIO_API_BASE_URL || 'http://localhost:1234'; const baseUrl = settings?.baseUrl || import.meta.env.LMSTUDIO_API_BASE_URL || 'http://localhost:1234';