From 62303c2156099c07f09980ddb4a5258606626cac Mon Sep 17 00:00:00 2001 From: Mark Sze Date: Fri, 20 Dec 2024 20:26:54 +0000 Subject: [PATCH] tool id must be string --- autogen/oai/gemini.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogen/oai/gemini.py b/autogen/oai/gemini.py index 02fa5df54..1ac13c271 100644 --- a/autogen/oai/gemini.py +++ b/autogen/oai/gemini.py @@ -272,7 +272,7 @@ def create(self, params: dict) -> ChatCompletion: if fn_call not in prev_function_calls: autogen_tool_calls.append( ChatCompletionMessageToolCall( - id=random_id, + id=str(random_id), function={ "name": fn_call.name, "arguments": (