Skip to content

Commit

Permalink
Raise bad request error from openai
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Sep 14, 2024
1 parent 5dd15bc commit 19f470e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agency_swarm/threads/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def create_message(self, message: str, role: str = "user", attachments: List[dic
attachments=attachments
)
else:
raise Exception("Please start a new chat.") from e
raise e

def execute_tool(self, tool_call, recipient_agent=None, event_handler=None, tool_outputs_and_names={}):
if not recipient_agent:
Expand Down

0 comments on commit 19f470e

Please sign in to comment.