Merge branch 'main' into fix/ui-enhancements

This commit is contained in:
Anirban Kar 2024-12-14 00:27:10 +05:30 committed by GitHub
commit 461cf27fc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

3
.gitignore vendored
View File

@ -37,3 +37,6 @@ modelfiles
# docs ignore # docs ignore
site site
# commit file ignore
app/commit.json

View File

@ -1 +1 @@
{ "commit": "56944de6337f5283f96f197e11432fee32c085b9" } { "commit": "1d64a15ed0110fc62091b1dca90139de9fb9fdb4" }

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