Skip to content

Commit ae72c50

Browse files
Fixed the embedding dialog to store the selected embedding model (#261)
1 parent 48874d6 commit ae72c50

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

app/MindWork AI Studio/Dialogs/EmbeddingProviderDialog.razor.cs

+12-1
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,24 @@ public EmbeddingProviderDialog()
112112
private EmbeddingProvider CreateEmbeddingProviderSettings()
113113
{
114114
var cleanedHostname = this.DataHostname.Trim();
115+
Model model = default;
116+
if(this.DataLLMProvider is LLMProviders.SELF_HOSTED)
117+
{
118+
if (this.DataHost is Host.OLLAMA)
119+
model = new Model(this.dataManuallyModel, null);
120+
else if (this.DataHost is Host.LM_STUDIO)
121+
model = this.DataModel;
122+
}
123+
else
124+
model = this.DataModel;
125+
115126
return new()
116127
{
117128
Num = this.DataNum,
118129
Id = this.DataId,
119130
Name = this.DataName,
120131
UsedLLMProvider = this.DataLLMProvider,
121-
Model = this.DataLLMProvider is LLMProviders.SELF_HOSTED ? new Model(this.dataManuallyModel, null) : this.DataModel,
132+
Model = model,
122133
IsSelfHosted = this.DataLLMProvider is LLMProviders.SELF_HOSTED,
123134
Hostname = cleanedHostname.EndsWith('/') ? cleanedHostname[..^1] : cleanedHostname,
124135
Host = this.DataHost,
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# v0.9.26, build 201 (2025-01-xx xx:xx UTC)
22
- Added the ability to configure local and remote (ERI) data sources in the settings as a preview feature behind the RAG feature flag.
33
- Fixed the ERI server assistant to ask for confirmation before deleting a ERI server preset.
4-
- Fixed a bug in the ERI server assistant that allowed an empty directory as a base directory for the code generation.
4+
- Fixed a bug in the ERI server assistant that allowed an empty directory as a base directory for the code generation.
5+
- Fixed the embedding dialog to store the selected embedding model when using LM Studio as host.

0 commit comments

Comments
 (0)