Skip to content

Commit 6acf254

Browse files
author
aden.chen
committed
logging function call response for azure openAI provider
1 parent 9e93f8e commit 6acf254

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Plugins/BotSharp.Plugin.AzureOpenAI/Providers/Chat/ChatCompletionProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public async Task<RoleDialogModel> GetChatCompletions(Agent agent, List<RoleDial
6161

6262
if (reason == ChatFinishReason.FunctionCall || reason == ChatFinishReason.ToolCalls)
6363
{
64+
_logger.LogInformation($"Action: {nameof(GetChatCompletions)}, Reason: {reason}, Agent: {agent.Name}, ToolCalls: {string.Join(",", value.ToolCalls.Select(x => x.FunctionName))}");
65+
6466
var toolCall = value.ToolCalls.FirstOrDefault();
6567
responseMessage = new RoleDialogModel(AgentRole.Function, text)
6668
{

0 commit comments

Comments
 (0)