Rename 'result' to 'text' in foreach loop for clarity

The variable name `result` in the `foreach` loop has been changed to `text` for better clarity and consistency. This change affects the loop that appends chunks to the `prompt` variable.
This commit is contained in:
Marco Minerva
2024-11-06 17:27:47 +01:00
parent 29b8ebe283
commit 6c423fb306
@@ -49,9 +49,9 @@ public class ChatService(IMemoryCache cache, IChatCompletionService chatCompleti
"""); """);
// TODO: Ensure that chunks are not too long, according to the model max token. // TODO: Ensure that chunks are not too long, according to the model max token.
foreach (var result in chunks) foreach (var text in chunks)
{ {
prompt.Append(result); prompt.Append(text);
prompt.AppendLine("---"); prompt.AppendLine("---");
} }