mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 10:39:47 +00:00
More changes
This commit is contained in:
parent
727da036a5
commit
15b1a48040
@ -122,7 +122,12 @@ public partial class ProviderDialog : ComponentBase, ISecretId
|
|||||||
Id = this.DataId,
|
Id = this.DataId,
|
||||||
InstanceName = this.DataInstanceName,
|
InstanceName = this.DataInstanceName,
|
||||||
UsedLLMProvider = this.DataLLMProvider,
|
UsedLLMProvider = this.DataLLMProvider,
|
||||||
Model = this.DataLLMProvider is LLMProviders.FIREWORKS ? new Model(this.dataManuallyModel, null) : this.DataModel,
|
Model = this.DataLLMProvider switch
|
||||||
|
{
|
||||||
|
LLMProviders.FIREWORKS => new Model(this.dataManuallyModel, null),
|
||||||
|
LLMProviders.HUGGINGFACE => new Model(this.dataManuallyModel, null),
|
||||||
|
_ => this.DataModel
|
||||||
|
},
|
||||||
IsSelfHosted = this.DataLLMProvider is LLMProviders.SELF_HOSTED,
|
IsSelfHosted = this.DataLLMProvider is LLMProviders.SELF_HOSTED,
|
||||||
Hostname = cleanedHostname.EndsWith('/') ? cleanedHostname[..^1] : cleanedHostname,
|
Hostname = cleanedHostname.EndsWith('/') ? cleanedHostname[..^1] : cleanedHostname,
|
||||||
Host = this.DataHost,
|
Host = this.DataHost,
|
||||||
|
@ -9,7 +9,7 @@ using AIStudio.Settings;
|
|||||||
|
|
||||||
namespace AIStudio.Provider.HuggingFace;
|
namespace AIStudio.Provider.HuggingFace;
|
||||||
|
|
||||||
public sealed class ProviderHuggingFace(ILogger logger) : BaseProvider("https://router.huggingface.co/cerebras/v1/", logger)
|
public sealed class ProviderHuggingFace(ILogger logger) : BaseProvider($"https://router.huggingface.co/nebius/v1/", logger)
|
||||||
{
|
{
|
||||||
#region Implementation of IProvider
|
#region Implementation of IProvider
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user