Skip to content

Commit

Permalink
tool id must be string
Browse files Browse the repository at this point in the history
  • Loading branch information
marklysze committed Dec 20, 2024
1 parent c40a5bc commit 62303c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogen/oai/gemini.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": (
Expand Down

0 comments on commit 62303c2

Please sign in to comment.