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

超时时间配置 #59

Closed
SuperLight-007 opened this issue Apr 7, 2023 · 3 comments · Fixed by #60 or #63
Closed

超时时间配置 #59

SuperLight-007 opened this issue Apr 7, 2023 · 3 comments · Fixed by #60 or #63
Labels
bug Something isn't working

Comments

@SuperLight-007
Copy link

能支持下http的超时时间配置不,有时候到等比较久gpt的回答。

@SuperLight-007
Copy link
Author

看了代码发现用的是go底层标准库,也没有限制客户端超时时间。但是系统上的tcp fin时间我也从默认60调整成300了。但是就是不生效。依然是一分钟客户端自己报超时。

@SuperLight-007
Copy link
Author

SuperLight-007 commented Apr 7, 2023

在openai包的底层fetch包这里,应该是这个配置限制的。希望能在环境变量里调整这个参数。尽量久地等待gpt回复,而非自己客户端超时退出。
image

@whatwewant
Copy link
Owner

@SuperLight-007 非常感谢,这个问题之前没太注意,确实是个问题

@whatwewant whatwewant added the bug Something isn't working label Apr 7, 2023
@whatwewant whatwewant reopened this Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants