@using AIStudio.Provider @using AIStudio.Provider.HuggingFace @using AIStudio.Provider.SelfHosted @inherits MSGComponentBase @* ReSharper disable once CSharpWarnings::CS8974 *@ @foreach (LLMProviders provider in Enum.GetValues(typeof(LLMProviders))) { @provider.ToName() } @T("Create account") @if (this.DataLLMProvider.IsAPIKeyNeeded(this.DataHost)) { @* ReSharper disable once CSharpWarnings::CS8974 *@ } @if (this.DataLLMProvider.IsHostnameNeeded()) { } @if (this.DataLLMProvider.IsHostNeeded()) { @foreach (Host host in Enum.GetValues(typeof(Host))) { @host.Name() } } @if (this.DataLLMProvider.IsHFInstanceProviderNeeded()) { @foreach (HFInferenceProvider inferenceProvider in Enum.GetValues(typeof(HFInferenceProvider))) { @inferenceProvider.ToName() } @* ReSharper disable Asp.Entity *@ Please double-check if your model name matches the curl specifications provided by the inference provider. If it doesn't, you might get a Not Found error when trying to use the model. Here's a curl example. @* ReSharper restore Asp.Entity *@ } @if (this.DataLLMProvider.IsLLMModelProvidedManually()) { @T("Show available models") } else { @T("Load models") @if(this.availableModels.Count is 0) { @T("No models loaded or available.") } else { @foreach (var model in this.availableModels) { @model } } } @* ReSharper disable once CSharpWarnings::CS8974 *@ @T("Cancel") @if(this.IsEditing) { @T("Update") } else { @T("Add") }