2025-05-04 14:59:30 +02:00
|
|
|
using AIStudio.Tools.PluginSystem;
|
|
|
|
|
|
2024-09-11 23:08:02 +02:00
|
|
|
namespace AIStudio.Tools;
|
|
|
|
|
|
|
|
|
|
public static class ConfidenceSchemesExtensions
|
|
|
|
|
{
|
2025-05-04 14:59:30 +02:00
|
|
|
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(ConfidenceSchemesExtensions).Namespace, nameof(ConfidenceSchemesExtensions));
|
|
|
|
|
|
2026-11-04 10:46:18 +01:00
|
|
|
extension(ConfidenceSchemes scheme)
|
2024-09-11 23:08:02 +02:00
|
|
|
{
|
2026-11-04 13:00:56 +01:00
|
|
|
public string ListDescription => scheme switch
|
2026-11-04 10:46:18 +01: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 23:08:02 +02:00
|
|
|
|
2026-11-04 10:46:18 +01:00
|
|
|
ConfidenceSchemes.CUSTOM => TB("Configure your own confidence scheme"),
|
2024-09-11 23:08:02 +02:00
|
|
|
|
2026-11-04 10:46:18 +01:00
|
|
|
_ => TB("Unknown confidence scheme"),
|
|
|
|
|
};
|
|
|
|
|
}
|
2024-09-11 23:08:02 +02:00
|
|
|
}
|