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

increase httpx timeout #30

Merged
merged 1 commit into from
Oct 18, 2023
Merged

increase httpx timeout #30

merged 1 commit into from
Oct 18, 2023

Conversation

JohntheLi
Copy link
Collaborator

If an httpx session is not passed in, the default timeout of the created session is currently 5 seconds, which is too short for long LLM requests. Make the default 120 seconds instead. User can pass in their own httpx session if they wish to set a custom timeout.

If an httpx session is not passed in, the default timeout of the created session is currently 5 seconds, which is too short for long LLM requests.
Make the default 120 seconds instead. User can pass in their own httpx session if they wish to set a custom timeout.

Also, make the error log print repr(e) as httpx.ReadTimeout did not have a message body. So at least the exception type will be printed.
@JelleZijlstra JelleZijlstra merged commit b222d96 into poe-platform:main Oct 18, 2023
20 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.

2 participants