From 64831f5b3a16cf54338cea425e578b90be7728fc Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Fri, 28 Feb 2025 15:35:46 -0600 Subject: [PATCH] minor change --- .../BotSharp.Core/Conversations/Services/TokenStatistics.cs | 2 +- .../BotSharp.Logger/Hooks/GlobalStatsConversationHook.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Conversations/Services/TokenStatistics.cs b/src/Infrastructure/BotSharp.Core/Conversations/Services/TokenStatistics.cs index 388c814c..0698c0cb 100644 --- a/src/Infrastructure/BotSharp.Core/Conversations/Services/TokenStatistics.cs +++ b/src/Infrastructure/BotSharp.Core/Conversations/Services/TokenStatistics.cs @@ -78,7 +78,7 @@ public class TokenStatistics : ITokenStatistics new StatsKeyValuePair("completion_cost_total", deltaCompletionCost) ] }; - globalStats.UpdateStats($"global-llm-cost-{metric}-{dim}-{agentId}", body); + globalStats.UpdateStats($"global-{metric}-{dim}-{agentId}", body); } public void PrintStatistics() diff --git a/src/Infrastructure/BotSharp.Logger/Hooks/GlobalStatsConversationHook.cs b/src/Infrastructure/BotSharp.Logger/Hooks/GlobalStatsConversationHook.cs index 66b0e8ef..8ff9be86 100644 --- a/src/Infrastructure/BotSharp.Logger/Hooks/GlobalStatsConversationHook.cs +++ b/src/Infrastructure/BotSharp.Logger/Hooks/GlobalStatsConversationHook.cs @@ -39,6 +39,6 @@ public class GlobalStatsConversationHook : IContentGeneratingHook new StatsKeyValuePair("agent_call_count", 1) ] }; - globalStats.UpdateStats($"global-agent-call-{metric}-{dim}-{agentId}", body); + globalStats.UpdateStats($"global-{metric}-{dim}-{agentId}", body); } }