mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 19:19:47 +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 class WritingStylesExtensions
|
||||||
{
|
{
|
||||||
public static string Name(this WritingStyles style)
|
public static string Name(this WritingStyles style) => style switch
|
||||||
{
|
|
||||||
return style switch
|
|
||||||
{
|
{
|
||||||
WritingStyles.EVERYDAY => "Everyday (personal texts, social media)",
|
WritingStyles.EVERYDAY => "Everyday (personal texts, social media)",
|
||||||
WritingStyles.BUSINESS => "Business (business emails, reports, presentations)",
|
WritingStyles.BUSINESS => "Business (business emails, reports, presentations)",
|
||||||
@ -18,11 +16,8 @@ public static class WritingStylesExtensions
|
|||||||
|
|
||||||
_ => "Not specified",
|
_ => "Not specified",
|
||||||
};
|
};
|
||||||
}
|
|
||||||
|
|
||||||
public static string Prompt(this WritingStyles style)
|
public static string Prompt(this WritingStyles style) => style switch
|
||||||
{
|
|
||||||
return style switch
|
|
||||||
{
|
{
|
||||||
WritingStyles.EVERYDAY => "Use a everyday style like for personal texts, social media, and informal communication.",
|
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.",
|
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.",
|
_ => "Keep the style of the text as it is.",
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user