fix: LM Studio sending messgae

LM Studio was not able to send a message now it is.
This commit is contained in:
Dustin Loring 2024-12-13 11:03:55 -05:00
parent 5f34051510
commit ba1b5543db

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