mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:59:48 +00:00
Improved coding assistant language handling
This commit is contained in:
parent
a1eb975021
commit
82ba07165e
@ -101,9 +101,13 @@ public partial class AssistantCoding : AssistantBaseCore
|
||||
foreach (var codingContext in this.codingContexts)
|
||||
{
|
||||
sbContext.AppendLine($"ID: {codingContext.Id}");
|
||||
sbContext.AppendLine($"Language: {codingContext.Language.Name()}");
|
||||
sbContext.AppendLine($"Other Language: {codingContext.OtherLanguage}");
|
||||
sbContext.AppendLine($"Content:");
|
||||
|
||||
if(codingContext.Language is not CommonCodingLanguages.OTHER)
|
||||
sbContext.AppendLine($"Language: {codingContext.Language.Name()}");
|
||||
else
|
||||
sbContext.AppendLine($"Language: {codingContext.OtherLanguage}");
|
||||
|
||||
sbContext.AppendLine("Content:");
|
||||
sbContext.AppendLine("```");
|
||||
sbContext.AppendLine(codingContext.Code);
|
||||
sbContext.AppendLine("```");
|
||||
|
2
app/MindWork AI Studio/wwwroot/changelog/v0.8.10.md
Normal file
2
app/MindWork AI Studio/wwwroot/changelog/v0.8.10.md
Normal file
@ -0,0 +1,2 @@
|
||||
# v0.8.10, build 172
|
||||
- Improved the coding assistant's language handling when creating the corresponding prompt
|
Loading…
Reference in New Issue
Block a user