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

openai: fix low timeouts #926

Merged
merged 4 commits into from
Oct 16, 2024
Merged

openai: fix low timeouts #926

merged 4 commits into from
Oct 16, 2024

Conversation

theomonnom
Copy link
Member

@theomonnom theomonnom commented Oct 16, 2024

fix ridiculously low timeouts
future work would be to expose those in every client we have

fix #807

Copy link

changeset-bot bot commented Oct 16, 2024

🦋 Changeset detected

Latest commit: 1ea0125

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-plugins-openai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@theomonnom theomonnom requested a review from a team October 16, 2024 01:37
@@ -75,11 +75,11 @@ def __init__(
api_key=api_key,
base_url=base_url,
http_client=httpx.AsyncClient(
timeout=httpx.Timeout(timeout=30, connect=10, read=5, pool=5),
timeout=httpx.Timeout(connect=15.0, read=5.0, write=5.0, pool=5.0),
Copy link
Member

Choose a reason for hiding this comment

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

the change is from 10s -> 15s for connect? what does removing timeout mean? should we also increase the other timeouts?

Copy link
Member Author

@theomonnom theomonnom Oct 16, 2024

Choose a reason for hiding this comment

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

timeout is to default everything to 30.0

Copy link
Member Author

@theomonnom theomonnom Oct 16, 2024

Choose a reason for hiding this comment

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

llm was OK, it's more for TTS/STT that the change is going from 5 to 15

Copy link
Member

Choose a reason for hiding this comment

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

got it, sounds good

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.

OpenAI timeouts are too low / aren't handled well
2 participants