Skip to content

Commit

Permalink
added maximum number of retries to structured LLM chat
Browse files Browse the repository at this point in the history
  • Loading branch information
fccoelho committed Sep 22, 2024
1 parent 1494621 commit 47e5cb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base_agent/llminterface.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def get_response(self, question: str, context: str = "", response_model: BaseMod
model=self.model,
messages=messages,
response_model=response_model,
max_retries=3
)
self.chat_history.enqueue(response)

Expand Down

0 comments on commit 47e5cb8

Please sign in to comment.