mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:59:48 +00:00
Migrated to modern syntax
This commit is contained in:
parent
d1526509ef
commit
6ddb90a849
@ -2,9 +2,7 @@ namespace AIStudio.Assistants.RewriteImprove;
|
||||
|
||||
public static class WritingStylesExtensions
|
||||
{
|
||||
public static string Name(this WritingStyles style)
|
||||
{
|
||||
return style switch
|
||||
public static string Name(this WritingStyles style) => style switch
|
||||
{
|
||||
WritingStyles.EVERYDAY => "Everyday (personal texts, social media)",
|
||||
WritingStyles.BUSINESS => "Business (business emails, reports, presentations)",
|
||||
@ -18,11 +16,8 @@ public static class WritingStylesExtensions
|
||||
|
||||
_ => "Not specified",
|
||||
};
|
||||
}
|
||||
|
||||
public static string Prompt(this WritingStyles style)
|
||||
{
|
||||
return style switch
|
||||
public static string Prompt(this WritingStyles style) => style switch
|
||||
{
|
||||
WritingStyles.EVERYDAY => "Use a everyday style like for personal texts, social media, and informal communication.",
|
||||
WritingStyles.BUSINESS => "Use a business style like for business emails, reports, and presentations. Most important is clarity and professionalism.",
|
||||
@ -36,5 +31,4 @@ public static class WritingStylesExtensions
|
||||
|
||||
_ => "Keep the style of the text as it is.",
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user