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

feat: Enable overriding executor timeouts per model #6206

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

anticorrelator
Copy link
Contributor

resolves #6198

Enables a timeout override for AsyncExecutors on a per-model basis. Currently only used to double the timeout for o1 class models, as they can get stuck in a recursive timeout loop.

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jan 30, 2025
@property
def _timeout(self) -> Optional[int]:
if "o1" in self.model:
return 240
Copy link
Contributor

Choose a reason for hiding this comment

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

this number seems somewhat arbitrary? you can't set the timeout on the model itself?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: 👍 Approved
Development

Successfully merging this pull request may close these issues.

[BUG] Using o1 models with high concurrency for classification causing timeouts and recursion error
2 participants