mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 21:59:48 +00:00
Exclude embedding models for self-hosted providers
This commit is contained in:
parent
66232dad1a
commit
eae33e5271
@ -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 [];
|
||||
|
@ -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.
|
Loading…
Reference in New Issue
Block a user