Skip to content

Commit

Permalink
Fix test error
Browse files Browse the repository at this point in the history
  • Loading branch information
dandansamax committed Oct 26, 2023
1 parent a79a1fa commit 3fd7677
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion camel/agents/chat_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,8 @@ def step(
try:
openai_messages, num_tokens = self.memory.get_context()
except RuntimeError as e:
return self.step_token_exceed(e.args[1], called_funcs)
return self.step_token_exceed(e.args[1], called_funcs,
"max_tokens_exceeded")

# Obtain LLM's response and validate it
response = self.model_backend.run(openai_messages)
Expand Down

0 comments on commit 3fd7677

Please sign in to comment.