Resolved warnings

This commit is contained in:
tsommer committed 2025-04-25 17:55:18 +02:00
1 parent 3528535b3f
commit bb7eead608
9 files changed
+9 -137

No files matched your search

@@ -66,7 +66,6 @@ public partial class AssistantI18N : AssistantBaseCore<SettingsDialogI18N>
private string searchString = string.Empty;
private Guid selectedLanguagePluginId;
private ILanguagePlugin? selectedLanguagePlugin;
private bool isTranslationNeeded;
private Dictionary<string, string> addedKeys = [];
private Dictionary<string, string> removedKeys = [];
@@ -160,7 +159,6 @@ public partial class AssistantI18N : AssistantBaseCore<SettingsDialogI18N>
this.addedKeys = newI18NContent.ExceptBy(currentI18NContent.Keys, n => n.Key).ToDictionary();
this.removedKeys = currentI18NContent.ExceptBy(newI18NContent.Keys, n => n.Key).ToDictionary();
this.localizationPossible = true;
this.isTranslationNeeded = this.selectedTargetLanguage is not CommonLanguages.EN_US;
break;
}
@@ -14,6 +14,7 @@ public abstract class MSGComponentBase : ComponentBase, IDisposable, IMessageBus
protected MessageBus MessageBus { get; init; } = null!;
[Inject]
// ReSharper disable once UnusedAutoPropertyAccessor.Local
private ILogger<MSGComponentBase> Logger { get; init; } = null!;
private ILanguagePlugin Lang { get; set; } = PluginFactory.BaseLanguage;
@@ -68,11 +68,12 @@
<MudSelectItem Value="@inferenceProvider">
@inferenceProvider.ToName()
</MudSelectItem>
}
}
</MudSelect>
@* ReSharper disable Asp.Entity *@
<MudJustifiedText Class="mb-3"> Please double-check if your model name matches the curl specifications provided by the inference provider. If it doesn't, you might get a <b>Not Found</b> error when trying to use the model. Here's a <MudLink Href="https://huggingface.co/meta-llama/Llama-3.1-8B-Instruct?inference_api=true&inference_provider=novita&language=sh" Target="_blank">curl example</MudLink>.</MudJustifiedText>
}
@* ReSharper restore Asp.Entity *@
}
<MudField FullWidth="true" Label="Model selection" Variant="Variant.Outlined" Class="mb-3">
<MudStack Row="@true" AlignItems="AlignItems.Center" StretchItems="StretchItems.End">
@@ -1,5 +1,4 @@
@using AIStudio.Settings
@using AIStudio.Settings.DataModel
@inherits SettingsDialogBase
<MudDialog>
<TitleContent>
@@ -1,5 +1,3 @@
using Microsoft.AspNetCore.Components;
namespace AIStudio.Dialogs.Settings;
public partial class SettingsDialogI18N : SettingsDialogBase
@@ -1,7 +1,5 @@
using AIStudio.Components;
using Microsoft.AspNetCore.Components;
namespace AIStudio.Pages;
public partial class Supporters : MSGComponentBase;
@@ -18,7 +18,10 @@ public enum Components
JOB_POSTING_ASSISTANT,
BIAS_DAY_ASSISTANT,
ERI_ASSISTANT,
// ReSharper disable InconsistentNaming
I18N_ASSISTANT,
// ReSharper restore InconsistentNaming
CHAT,
APP_SETTINGS,