From eabc88e9bd0a11f56d015e9c1a3ff1a4a638c299 Mon Sep 17 00:00:00 2001 From: reibs Date: Mon, 9 Dec 2024 19:38:03 -0800 Subject: [PATCH] fixed autogen logging --- agentops/partners/autogen_logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agentops/partners/autogen_logger.py b/agentops/partners/autogen_logger.py index 9520801f..4b6088a9 100644 --- a/agentops/partners/autogen_logger.py +++ b/agentops/partners/autogen_logger.py @@ -61,7 +61,7 @@ def log_chat_completion( # Note: Autogen tokens are not included in the request and function call tokens are not counted in the completion llm_event = LLMEvent( prompt=request["messages"], - completion=completion.message, + completion=completion.message.to_dict(), model=response.model, cost=cost, returns=completion.message.to_json(),