🐛 fix /edit max_tokens too large for gpt-4-turbo
This commit is contained in:
parent
66e33983e6
commit
07cc2fdf2e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue