Skip to content

Commit 3af1cdb

Browse files
rbenzaAirsaid
authored andcommitted
Add infinite time out
1 parent 250e027 commit 3af1cdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/airsaid/localization/translate/impl/openai/ChatGPTTranslator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ public void configureRequestBuilder(@NotNull RequestBuilder requestBuilder) {
9898
requestBuilder.tuner(connection -> {
9999
connection.setRequestProperty("Authorization", "Bearer " + getAppKey());
100100
connection.setRequestProperty("Content-Type", "application/json");
101+
connection.setConnectTimeout(0);
101102
});
102103
}
103104

0 commit comments

Comments
 (0)