Update ChatGptService.cs

This commit is contained in:
Madpeter 2024-08-30 06:32:40 +01:00
parent 4f9b067ef8
commit 1009526b79

View file

@ -268,15 +268,15 @@ namespace SecondBotEvents.Services
{ {
if (avatarchat == true) if (avatarchat == true)
{ {
history.Add(new KeyValuePair<string, string>("system", "You are " + GetClient().Self.FirstName + ", "+myConfig.GetChatPrompt()+" you are talking to " + name + ".")); history.Add(new KeyValuePair<string, string>("system", "You are " + GetClient().Self.FirstName + ", "+myConfig.GetChatPrompt()+", you are talking to " + name + "."));
} }
else if (groupchat == true) else if (groupchat == true)
{ {
history.Add(new KeyValuePair<string, string>("system", "You are " + GetClient().Self.FirstName + ", "+myConfig.GetChatPrompt()+" you are talking to a group of people.")); history.Add(new KeyValuePair<string, string>("system", "You are " + GetClient().Self.FirstName + ", "+myConfig.GetChatPrompt()+", you are talking to a group of people."));
} }
else else
{ {
history.Add(new KeyValuePair<string, string>("system", "You are " + GetClient().Self.FirstName + ", "+myConfig.GetChatPrompt()+" you are talking to people in a public place.")); history.Add(new KeyValuePair<string, string>("system", "You are " + GetClient().Self.FirstName + ", "+myConfig.GetChatPrompt()+", you are talking to people in a public place."));
} }
} }
history.Add(new KeyValuePair<string, string>("user", "" + name + " says " + message)); history.Add(new KeyValuePair<string, string>("user", "" + name + " says " + message));