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:
Sabrina-devopsandThorsten Sommer authored and GitHub committed 2026-11-28 20:27:23 +01:00
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