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

[Small model] Explicitly close AsyncGenerator #704

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

mishig25
Copy link
Collaborator

@mishig25 mishig25 commented Jan 17, 2024

Explicitly close AsyncGenerator when using small model (for generating webquery or sumarization purposes). I couldn't replicate the #691. By explicitly closing the connection of a small model, this might fix #691 if the issue was rooted in some kind of rate limiting around outgoing network requests from Spaces to TGI/inference endpoint

Copy link
Collaborator

@nsarrazin nsarrazin left a comment

Choose a reason for hiding this comment

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

Makes sense, let's see if it helps in prod!

@nsarrazin nsarrazin merged commit 01418cd into main Jan 17, 2024
3 checks passed
@nsarrazin nsarrazin deleted the explicit_stream_close branch January 17, 2024 11:21
ice91 pushed a commit to ice91/chat-ui that referenced this pull request Oct 30, 2024
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.

Error "fetch failed" sometimes during web search
2 participants