Skip to content

Commit 5eea861

Browse files
committed
ChatGptService: MAX_TOKENS value updated to 1000;
1 parent 2b55087 commit 5eea861

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,8 @@ public class ChatGptService {
2323
private static final Logger logger = LoggerFactory.getLogger(ChatGptService.class);
2424
private static final Duration TIMEOUT = Duration.ofSeconds(90);
2525

26-
/**
27-
* The maximum number of tokens allowed for the generated answer. This value is appropriate for
28-
* Discord's 2000 character message limit.
29-
*/
30-
private static final int MAX_TOKENS = 500;
26+
/** The maximum number of tokens allowed for the generated answer. */
27+
private static final int MAX_TOKENS = 1000;
3128

3229
private boolean isDisabled = false;
3330
private OpenAIClient openAIClient;

0 commit comments

Comments
 (0)