Skip to content

Commit 0de9992

Browse files
Increase default ChatGPT response timeout from 10s to 90s (#852)
1 parent 8195a30 commit 0de9992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

application/src/main/java/org/togetherjava/tjbot/features/chaptgpt/ChatGptService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
public class ChatGptService {
2222
private static final Logger logger = LoggerFactory.getLogger(ChatGptService.class);
23-
private static final Duration TIMEOUT = Duration.ofSeconds(10);
23+
private static final Duration TIMEOUT = Duration.ofSeconds(90);
2424
private static final int MAX_TOKENS = 3_000;
2525
private boolean isDisabled = false;
2626
private final OpenAiService openAiService;

0 commit comments

Comments
 (0)