AI-Studio/app/MindWork AI Studio/Components/Pages/TextSummarizer/CommonLanguagePrompts.cs
2024-07-14 21:46:17 +02:00

14 lines
465 B
C#

using AIStudio.Tools;
namespace AIStudio.Components.Pages.TextSummarizer;
public static class CommonLanguagePrompts
{
public static string Prompt(this CommonLanguages language, string customLanguage) => language switch
{
CommonLanguages.AS_IS => "Do not change the language of the text.",
CommonLanguages.OTHER => $"Output you summary in {customLanguage}.",
_ => $"Output your summary in {language.Name()} ({language}).",
};
}