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