mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-02-05 14:49:06 +00:00
Fixed a bug regarding hostnames of self-hosted providers (#208)
This commit is contained in:
parent
d82427ba56
commit
d2a2d658e6
@ -99,17 +99,21 @@ public partial class ProviderDialog : ComponentBase
|
||||
private readonly List<Model> availableModels = new();
|
||||
private readonly Encryption encryption = Program.ENCRYPTION;
|
||||
|
||||
private Settings.Provider CreateProviderSettings() => new()
|
||||
private Settings.Provider CreateProviderSettings()
|
||||
{
|
||||
Num = this.DataNum,
|
||||
Id = this.DataId,
|
||||
InstanceName = this.DataInstanceName,
|
||||
UsedLLMProvider = this.DataLLMProvider,
|
||||
Model = this.DataLLMProvider is LLMProviders.FIREWORKS ? new Model(this.dataManuallyModel, null) : this.DataModel,
|
||||
IsSelfHosted = this.DataLLMProvider is LLMProviders.SELF_HOSTED,
|
||||
Hostname = this.DataHostname.EndsWith('/') ? this.DataHostname[..^1] : this.DataHostname,
|
||||
Host = this.DataHost,
|
||||
};
|
||||
var cleanedHostname = this.DataHostname.Trim();
|
||||
return new()
|
||||
{
|
||||
Num = this.DataNum,
|
||||
Id = this.DataId,
|
||||
InstanceName = this.DataInstanceName,
|
||||
UsedLLMProvider = this.DataLLMProvider,
|
||||
Model = this.DataLLMProvider is LLMProviders.FIREWORKS ? new Model(this.dataManuallyModel, null) : this.DataModel,
|
||||
IsSelfHosted = this.DataLLMProvider is LLMProviders.SELF_HOSTED,
|
||||
Hostname = cleanedHostname.EndsWith('/') ? cleanedHostname[..^1] : cleanedHostname,
|
||||
Host = this.DataHost,
|
||||
};
|
||||
}
|
||||
|
||||
#region Overrides of ComponentBase
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
# v0.9.19, build 194 (2024-11-xx xx:xx UTC)
|
||||
- Added provider's metadata: which providers offer embeddings for RAG? This is in preparation for integrating your data and files.
|
||||
- Fixed a bug regarding hostnames of self-hosted providers, where it was possible to enter spaces at the end.
|
||||
- Upgraded .NET to v8.0.11.
|
||||
- Upgraded HtmlAgilityPack to v1.11.71.
|
||||
- Upgraded MudBlazor to v7.15.0.
|
Loading…
Reference in New Issue
Block a user