From a8e37179aa457419877f34a1b5e30c349fa0a04d Mon Sep 17 00:00:00 2001 From: Kate Yeh Date: Sun, 28 Apr 2024 18:47:31 -0700 Subject: [PATCH] put in float --- agentops/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentops/client.py b/agentops/client.py index 9af94c7c..55520487 100644 --- a/agentops/client.py +++ b/agentops/client.py @@ -268,7 +268,7 @@ def end_session(self, if token_cost == 'unknown': print('🖇 AgentOps: Could not determine cost of run.') else: - print('🖇 AgentOps: This run cost ${}'.format('{:.2f}'.format(token_cost) if token_cost == 0 else '{:.6f}'.format(token_cost))) + print('🖇 AgentOps: This run cost ${}'.format('{:.2f}'.format(token_cost) if token_cost == 0 else '{:.6f}'.format(float(token_cost)))) self._session = None self._worker = None