From 07cc2fdf2e1a364d4e5cb6b372285e1c35011428 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Wed, 22 Nov 2023 17:31:17 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix=20/edit=20max=5Ftokens=20too?= =?UTF-8?q?=20large=20for=20gpt-4-turbo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/continuedev/core/steps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/continuedev/core/steps.py b/server/continuedev/core/steps.py index 6aa6127fa..0150b45b8 100644 --- a/server/continuedev/core/steps.py +++ b/server/continuedev/core/steps.py @@ -625,7 +625,7 @@ Please output the code to be inserted at the cursor in order to fulfill the user async for chunk in model_to_use.stream_chat( messages, temperature=sdk.config.completion_options.temperature, - max_tokens=min(max_tokens, model_to_use.context_length // 2), + max_tokens=min(max_tokens, model_to_use.context_length // 2, 4096), ): yield chunk.content