AI-Studio/app/MindWork AI Studio/Components/Pages/TextSummarizer/CommonLanguagePrompts.cs

14 lines
465 B
C#
Raw Normal View History

2024-07-14 19:46:17 +00:00
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}).",
};
}