The AI now knows your Username and ID so that it can distinguish between users
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user