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

fix: catch any HTTP errors at exchange.generate(...) #26

Merged
merged 6 commits into from
Sep 3, 2024

Conversation

lukealvoeiro
Copy link
Collaborator

No description provided.

tools=self.tools,
)
num_times_attempted = 0
while num_times_attempted < 3:
Copy link
Collaborator

@lifeizhou-ap lifeizhou-ap Sep 3, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

current retry in the provider is 5. does this mean we will retry 15 times with worst scenarios?

Do we need num_times_attempted: 3 or just 1 here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, so here we are retrying after modifying the messages array. We try popping off as little context as possible, and can try doing that up to 3 times. I am not hard-set on the 3 times, but figured it would at least land us in a spot for subsequent discussion with the team.

Copy link
Collaborator

@michaelneale michaelneale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approve modulo fixing failing test case which seems relevant

@lukealvoeiro lukealvoeiro merged commit 119b8d7 into main Sep 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants