mirror of
				https://github.com/MindWorkAI/AI-Studio.git
				synced 2025-11-04 07:00:20 +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)
 | 
					            foreach (var codingContext in this.codingContexts)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                sbContext.AppendLine($"ID: {codingContext.Id}");
 | 
					                sbContext.AppendLine($"ID: {codingContext.Id}");
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
 | 
					                if(codingContext.Language is not CommonCodingLanguages.OTHER)
 | 
				
			||||||
                    sbContext.AppendLine($"Language: {codingContext.Language.Name()}");
 | 
					                    sbContext.AppendLine($"Language: {codingContext.Language.Name()}");
 | 
				
			||||||
                sbContext.AppendLine($"Other Language: {codingContext.OtherLanguage}");
 | 
					                else
 | 
				
			||||||
                sbContext.AppendLine($"Content:");
 | 
					                    sbContext.AppendLine($"Language: {codingContext.OtherLanguage}");
 | 
				
			||||||
 | 
					                
 | 
				
			||||||
 | 
					                sbContext.AppendLine("Content:");
 | 
				
			||||||
                sbContext.AppendLine("```");
 | 
					                sbContext.AppendLine("```");
 | 
				
			||||||
                sbContext.AppendLine(codingContext.Code);
 | 
					                sbContext.AppendLine(codingContext.Code);
 | 
				
			||||||
                sbContext.AppendLine("```");
 | 
					                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