From 0de9992c0b9c0f7fc14c87d1d30b2b4bff3d661e Mon Sep 17 00:00:00 2001 From: TheRealJoeFriel <32469171+TheRealJoeFriel@users.noreply.github.com> Date: Wed, 26 Jul 2023 04:03:08 -0500 Subject: [PATCH] Increase default ChatGPT response timeout from 10s to 90s (#852) --- .../togetherjava/tjbot/features/chaptgpt/ChatGptService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/java/org/togetherjava/tjbot/features/chaptgpt/ChatGptService.java b/application/src/main/java/org/togetherjava/tjbot/features/chaptgpt/ChatGptService.java index 08fbe7c134..11d7055a28 100644 --- a/application/src/main/java/org/togetherjava/tjbot/features/chaptgpt/ChatGptService.java +++ b/application/src/main/java/org/togetherjava/tjbot/features/chaptgpt/ChatGptService.java @@ -20,7 +20,7 @@ */ public class ChatGptService { private static final Logger logger = LoggerFactory.getLogger(ChatGptService.class); - private static final Duration TIMEOUT = Duration.ofSeconds(10); + private static final Duration TIMEOUT = Duration.ofSeconds(90); private static final int MAX_TOKENS = 3_000; private boolean isDisabled = false; private final OpenAiService openAiService;