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

Implement Timeout Configuration for Response and Stream Waiting #175

Closed
xgen20 opened this issue Apr 24, 2024 · 3 comments
Closed

Implement Timeout Configuration for Response and Stream Waiting #175

xgen20 opened this issue Apr 24, 2024 · 3 comments
Assignees
Labels
feature New feature or request version up Pro version features of the devolution of the open source version

Comments

@xgen20
Copy link

xgen20 commented Apr 24, 2024

I suggest implementing the ability to configure the timeout for waiting for a response and waiting for a response stream. Because in my case, it's not always enough to receive a response from GPT-4 (chat to API version). The response sometimes takes 2+ minutes to write, and the Сhat Nio stops processing the stream after 1-2 minutes. And if the API doesn't send anything at all, it resets the request after 20+ seconds and makes a new attempt. I would like to have the ability to adjust this parameter for each channel, as well as the parameter for the maximum waiting time for the stream.

@zmh-program
Copy link
Member

good suggestion, consider implementing

@zmh-program zmh-program added the feature New feature or request label Apr 26, 2024
@zmh-program
Copy link
Member

zmh-program commented Jun 27, 2024

The Chat Nio Pro is already supported, waiting for @Sh1n3zZ to release the open source version.

Support Setting Http Timeout: set env MAX_TIMEOUT=30 to set http timeout to 30s.

https://github.com/Deeptrain-Community/chatnio-pro/commit/0bec4a78ec275fb9abd52ac87b38e44a5aae086d

@zmh-program zmh-program added the version up Pro version features of the devolution of the open source version label Jun 27, 2024
Sh1n3zZ added a commit that referenced this issue Jun 29, 2024
@Sh1n3zZ
Copy link
Collaborator

Sh1n3zZ commented Jun 29, 2024

Hi,

Completed.

Regards,
Junhai Deng

@Sh1n3zZ Sh1n3zZ closed this as completed Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request version up Pro version features of the devolution of the open source version
Projects
None yet
Development

No branches or pull requests

3 participants