mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:39:46 +00:00
Trim trailing slash from DataHostname in ProviderDialog
This commit is contained in:
parent
865b79727e
commit
f6f207cffb
@ -102,7 +102,7 @@ public partial class ProviderDialog : ComponentBase
|
|||||||
UsedProvider = this.DataProvider,
|
UsedProvider = this.DataProvider,
|
||||||
Model = this.DataModel,
|
Model = this.DataModel,
|
||||||
IsSelfHosted = this.DataProvider is Providers.SELF_HOSTED,
|
IsSelfHosted = this.DataProvider is Providers.SELF_HOSTED,
|
||||||
Hostname = this.DataHostname,
|
Hostname = this.DataHostname.EndsWith('/') ? this.DataHostname[..^1] : this.DataHostname,
|
||||||
Host = this.DataHost,
|
Host = this.DataHost,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -312,7 +312,7 @@ public partial class ProviderDialog : ComponentBase
|
|||||||
var provider = currentProviderSettings.CreateProvider();
|
var provider = currentProviderSettings.CreateProvider();
|
||||||
if(provider is NoProvider)
|
if(provider is NoProvider)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
var models = await provider.GetTextModels(this.JsRuntime, this.SettingsManager, this.dataAPIKey);
|
var models = await provider.GetTextModels(this.JsRuntime, this.SettingsManager, this.dataAPIKey);
|
||||||
|
|
||||||
// Order descending by ID means that the newest models probably come first:
|
// Order descending by ID means that the newest models probably come first:
|
||||||
|
Loading…
Reference in New Issue
Block a user