Send message always in assistant role

This commit is contained in:
Haiping 2023-12-12 09:06:39 -06:00 committed by GitHub
parent 61c1f9623b
commit ddf617fc30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -99,9 +99,9 @@ public partial class ConversationService
var agent = await agentService.GetAgent(response.CurrentAgentId);
var agentName = agent.Name;
var text = response.Role == AgentRole.Function ?
$"Sending [{agentName}] {response.FunctionName}: {response.Content}" :
$"Sending [{agentName}] {response.Role}: {response.Content}";
// Send message always in assistant role
response.Role = AgentRole.Assistant;
var text = $"Sending [{agentName}] {response.Role}: {response.Content}";
#if DEBUG
Console.WriteLine(text, Color.Yellow);
#else