Skip to content

Commit

Permalink
We were only sending one tool call
Browse files Browse the repository at this point in the history
  • Loading branch information
dividor committed Jun 15, 2024
1 parent b621f2e commit 4bf5163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/chat-chainlit-assistant/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ async def on_event(self, event):
with sync_openai_client.beta.threads.runs.submit_tool_outputs_stream(
thread_id=self.current_run.thread_id,
run_id=self.current_run.id,
tool_outputs=[{"tool_call_id": tool.id, "output": function_output}],
tool_outputs=tool_outputs,
event_handler=AssistantEventHandler(),
) as stream:
print("Tool output submitted successfully")
Expand Down

0 comments on commit 4bf5163

Please sign in to comment.