Improved coding assistant language handling

This commit is contained in:
Thorsten Sommer 2024-08-18 15:30:19 +02:00
parent a1eb975021
commit 82ba07165e
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 9 additions and 3 deletions

View File

@ -101,9 +101,13 @@ public partial class AssistantCoding : AssistantBaseCore
foreach (var codingContext in this.codingContexts)
{
sbContext.AppendLine($"ID: {codingContext.Id}");
if(codingContext.Language is not CommonCodingLanguages.OTHER)
sbContext.AppendLine($"Language: {codingContext.Language.Name()}");
sbContext.AppendLine($"Other Language: {codingContext.OtherLanguage}");
sbContext.AppendLine($"Content:");
else
sbContext.AppendLine($"Language: {codingContext.OtherLanguage}");
sbContext.AppendLine("Content:");
sbContext.AppendLine("```");
sbContext.AppendLine(codingContext.Code);
sbContext.AppendLine("```");

View File

@ -0,0 +1,2 @@
# v0.8.10, build 172
- Improved the coding assistant's language handling when creating the corresponding prompt