-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: timeout #241
Comments
看#239 |
I don't need a proxy, the API is allowed where I live, the US. |
Sometime it's just a service error, but this might be as simple as adding a larger timeout in your OpenAiService declaration. |
This should be included in the example IMHO. |
Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: timeout
at io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(ExceptionHelper.java:46)
at io.reactivex.internal.observers.BlockingMultiObserver.blockingGet(BlockingMultiObserver.java:93)
at io.reactivex.Single.blockingGet(Single.java:2870)
at com.theokanning.openai.service.OpenAiService.execute(OpenAiService.java:260)
at com.theokanning.openai.service.OpenAiService.createChatCompletion(OpenAiService.java:129)
at net.swofty.minecraft.ai.DatabaseParser.getCode(DatabaseParser.java:23)
... 5 more
Weird error when using ChatCompletion, code it as follows;
The text was updated successfully, but these errors were encountered: