From 37011bc7db89590a2c9cf63ce7de49463106c05f Mon Sep 17 00:00:00 2001 From: Dennis Benz Date: Tue, 26 Mar 2024 16:06:23 +0100 Subject: [PATCH] Increase max token limit to 500 --- controllers/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/api.php b/controllers/api.php index f118019..fd243a7 100644 --- a/controllers/api.php +++ b/controllers/api.php @@ -218,7 +218,7 @@ public function requestOpenai(string $prompt, \Courseware\Block $block, array $b 'content' => $prompt, ], ], - 'max_tokens' => 200, + 'max_tokens' => 500, 'temperature' => 0.9, 'top_p' => 1, 'frequency_penalty' => 0,