Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add template for multi_tool_use #299

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix inference code
  • Loading branch information
khai-meetkai committed Dec 23, 2024
commit 376ebbc3f89ef47b57b755a183a758629947cea0
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def parse_assistant_response(
for tool_call in tool_calls:
if tool_call["function"]["name"] == "multi_tool_use":
sub_tool_calls = []
tool_use_list = json.loads(tool_call["function"]["arguments"])
tool_use_list = json.loads(tool_call["function"]["arguments"])["tool_uses"]
for tool_use in tool_use_list:
sub_tool_calls.append(
{
Expand Down
Loading