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

timeout error #26

Closed
1050TIt0p opened this issue May 22, 2024 · 1 comment
Closed

timeout error #26

1050TIt0p opened this issue May 22, 2024 · 1 comment

Comments

@1050TIt0p
Copy link

I use this API for a Discord bot with ChatGPT
After switching from the gpt-3.5-turbo model to the gpt-4o, sometimes an error started appearing during requests

Log:
https://pastes.dev/b0IFXKBXG1

@Lambdua
Copy link
Owner

Lambdua commented May 23, 2024

You can set a longer timeout to test if the interface response is too slow. The default timeout event is 10 seconds
example:

OpenAiService openAiService2 = new OpenAiService(API_KEY, Duration.ofSeconds(40));

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

No branches or pull requests

2 participants