@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)) { } @if (this.DataLLMProvider.IsHostnameNeeded()) { } @if (this.DataLLMProvider.IsHostNeeded()) { @foreach (Host host in Enum.GetValues(typeof(Host))) { @if (host.IsChatSupported()) { @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.IsLLMModelSelectionHidden) { @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 } } } @if (!string.IsNullOrWhiteSpace(this.dataLoadingModelsIssue)) { @this.dataLoadingModelsIssue } } else { @T("This host uses the model configured at the provider level. No model selection is available.") } @* ReSharper disable once CSharpWarnings::CS8974 *@ @(this.showExpertSettings ? T("Hide Expert Settings") : T("Show Expert Settings")) @T("Please be careful: wrong expert settings can break model usage, disable supported features, or make unsupported features appear available.") @T("Override Model Capabilities") @T("Stored default model capabilities may not reflect its full range. Override them here if needed.") @foreach (var capability in SWITCH_CAPABILITY_OVERRIDES) { @this.GetCapabilityOverrideLabel(capability) @this.GetCapabilityEffectiveLabel(capability) @T("Reset") } @foreach (var mode in REASONING_OVERRIDE_MODES) { @this.GetReasoningOverrideModeLabel(mode) } @string.Format(T("The current model uses the {0}."), this.GetCurrentModelApiLabel()) @T("Cancel") @if(this.IsEditing) { @T("Update") } else { @T("Add") }