The AI now knows your Username and ID so that it can distinguish between users

This commit is contained in:
2026-02-27 21:47:19 +00:00
parent 267d26e952
commit 350301c63d

View File

@@ -103,7 +103,7 @@ public class Program
var history = GetOrCreateHistory(channelId); var history = GetOrCreateHistory(channelId);
history.Add(new ChatMessage { role = "user", content = prompt }); history.Add(new ChatMessage { role = "user", content = $"User: {member.Name} (ID: {member.Id}) | {prompt}" });
TrimHistory(history); TrimHistory(history);
var payload = new var payload = new
@@ -133,7 +133,7 @@ public class Program
history.Add(new ChatMessage { role = "assistant", content = output }); history.Add(new ChatMessage { role = "assistant", content = output });
output = "{ping} {output}"; output = $"{ping} {output}";
output = Truncate(output); output = Truncate(output);