Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nsosio committed Jun 10, 2024
1 parent da4ca42 commit fc5263d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion prem_utils/connectors/anthropic.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from collections.abc import Sequence
from uuid import uuid4

from anthropic import (
Anthropic,
Expand Down Expand Up @@ -91,7 +92,12 @@ def _get_content(self, response, tools=False):
"content": "",
"role": "assistant",
"tool_calls": [
{"function_arguments": tool_message.input, "name": tool_message.name, "type": "function"}
{
"function_arguments": tool_message.input,
"name": tool_message.name,
"type": "function",
"id": str(uuid4()),
}
for tool_message in tool_messages
],
}
Expand Down

0 comments on commit fc5263d

Please sign in to comment.