We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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-go/openai.go
Line 40 in 3c4e9fb
Can we increase the timeout period or set the environmental variable? Sometimes there will be a timeout when encountering extensive data.
Failed to complete: context deadline exceeded (Client.Timeout or context cancellation while reading body)
The text was updated successfully, but these errors were encountered:
You can provide a custom timeout by using a custom HTTPClient.
sess := openai.NewSession(....) sess.HTTPClient = &http.Client{ Timeout: 120 * time.Second, }
Sorry, something went wrong.
No branches or pull requests
openai-go/openai.go
Line 40 in 3c4e9fb
Can we increase the timeout period or set the environmental variable? Sometimes there will be a timeout when encountering extensive data.
The text was updated successfully, but these errors were encountered: