Exclude embedding models for self-hosted providers

This commit is contained in:
Thorsten Sommer 2024-12-03 14:40:34 +01:00
parent 66232dad1a
commit eae33e5271
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 3 additions and 2 deletions

View File

@ -188,7 +188,7 @@ public sealed class ProviderSelfHosted(ILogger logger, Host host, string hostnam
return [];
var lmStudioModelResponse = await lmStudioResponse.Content.ReadFromJsonAsync<ModelsResponse>(token);
return lmStudioModelResponse.Data.Select(n => new Provider.Model(n.Id, null));
return lmStudioModelResponse.Data.Where(n => !n.Id.Contains("embed")).Select(n => new Provider.Model(n.Id, null));
}
return [];

View File

@ -1,2 +1,3 @@
# v0.9.22, build 197 (2024-1x-xx xx:xx UTC)
- Added the possibility to configure preview feature visibility in the app settings. This is useful for users who want to test new features before they are officially released.
- Improved self-hosted LLM provider configuration by filtering embedding models.