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

View File

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