mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-03 03:54:24 +00:00
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
61 lines
1.8 KiB
C#
61 lines
1.8 KiB
C#
using AIStudio.Provider;
|
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
public sealed class DataTranslation
|
|
{
|
|
/// <summary>
|
|
/// The live translation interval for debouncing in milliseconds.
|
|
/// </summary>
|
|
public int DebounceIntervalMilliseconds { get; set; } = 1_500;
|
|
|
|
/// <summary>
|
|
/// Whether the translator asks on start to translate a document or a text, or starts with one of them right away.
|
|
/// </summary>
|
|
public AssistantStartMode StartMode { get; set; } = AssistantStartMode.ASK_EVERY_TIME;
|
|
|
|
/// <summary>
|
|
/// Do we want to preselect any translator options?
|
|
/// </summary>
|
|
public bool PreselectOptions { get; set; }
|
|
|
|
/// <summary>
|
|
/// Preselect the live translation?
|
|
/// </summary>
|
|
public bool PreselectLiveTranslation { get; set; }
|
|
|
|
/// <summary>
|
|
/// Hide the web content reader?
|
|
/// </summary>
|
|
public bool HideWebContentReader { get; set; }
|
|
|
|
/// <summary>
|
|
/// Preselect the web content reader?
|
|
/// </summary>
|
|
public bool PreselectWebContentReader { get; set; }
|
|
|
|
/// <summary>
|
|
/// Preselect the text content cleaner?
|
|
/// </summary>
|
|
public bool PreselectContentCleaner { get; set; }
|
|
|
|
/// <summary>
|
|
/// Preselect the target language?
|
|
/// </summary>
|
|
public CommonLanguages PreselectedTargetLanguage { get; set; } = CommonLanguages.EN_US;
|
|
|
|
/// <summary>
|
|
/// Preselect any other language?
|
|
/// </summary>
|
|
public string PreselectOtherLanguage { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// The minimum confidence level required for a provider to be considered.
|
|
/// </summary>
|
|
public ConfidenceLevel MinimumProviderConfidence { get; set; } = ConfidenceLevel.NONE;
|
|
|
|
/// <summary>
|
|
/// The preselected translator provider.
|
|
/// </summary>
|
|
public string PreselectedProvider { get; set; } = string.Empty;
|
|
} |