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