mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 06:24:35 +00:00
Added whole documents to the Translation, Grammar & Spelling, and Rewrite & Improve assistants (#1179)
Co-authored-by: Thorsten Sommer <SommerEngineering@users.noreply.github.com>
This commit is contained in:
1 parent
f7666861f1
commit
918572c158
150 files changed
+12850
-302
No files matched your search
@@ -71,6 +71,22 @@ public static class CommonLanguageExtensions
|
||||
_ => $"Use the language {language.Name} ({language}) for your output.",
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// Names the chosen language in a prompt, e.g., the language whose rules a check of spelling and grammar
|
||||
/// applies; null when the user chose none, so that the prompt names the language of the text instead.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The name of a common language comes in the language of the user interface, so its code follows it.
|
||||
/// </remarks>
|
||||
/// <param name="customLanguage">The language the user entered for OTHER.</param>
|
||||
public string? PromptLanguageName(string customLanguage) => language switch
|
||||
{
|
||||
CommonLanguages.AS_IS => null,
|
||||
CommonLanguages.OTHER => string.IsNullOrWhiteSpace(customLanguage) ? null : customLanguage,
|
||||
|
||||
_ => $"{language.Name} ({language})",
|
||||
};
|
||||
|
||||
public string NameSelecting
|
||||
{
|
||||
get
|
||||
|
||||
Reference in new issue
Block a user