2025-05-04 12:59:30 +00:00
|
|
|
using AIStudio.Tools.PluginSystem;
|
|
|
|
|
2024-09-11 21:08:02 +00:00
|
|
|
namespace AIStudio.Tools;
|
|
|
|
|
|
|
|
public static class ConfidenceSchemesExtensions
|
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ConfidenceSchemesExtensions).Namespace, nameof(ConfidenceSchemesExtensions));
|
|
|
|
|
2024-09-11 21:08:02 +00:00
|
|
|
public static string GetListDescription(this ConfidenceSchemes scheme) => scheme switch
|
|
|
|
{
|
2025-05-04 12:59:30 +00:00
|
|
|
ConfidenceSchemes.TRUST_ALL => TB("Trust all LLM providers"),
|
|
|
|
ConfidenceSchemes.TRUST_USA_EUROPE => TB("Trust LLM providers from the USA and Europe"),
|
|
|
|
ConfidenceSchemes.TRUST_USA => TB("Trust LLM providers from the USA"),
|
|
|
|
ConfidenceSchemes.TRUST_EUROPE => TB("Trust LLM providers from Europe"),
|
|
|
|
ConfidenceSchemes.TRUST_ASIA => TB("Trust LLM providers from Asia"),
|
|
|
|
ConfidenceSchemes.LOCAL_TRUST_ONLY => TB("Trust only local LLM providers"),
|
2024-09-11 21:08:02 +00:00
|
|
|
|
2025-05-04 12:59:30 +00:00
|
|
|
ConfidenceSchemes.CUSTOM => TB("Configure your own confidence scheme"),
|
2024-09-11 21:08:02 +00:00
|
|
|
|
2025-05-04 12:59:30 +00:00
|
|
|
_ => TB("Unknown confidence scheme"),
|
2024-09-11 21:08:02 +00:00
|
|
|
};
|
|
|
|
}
|