mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-20 22:24:57 +01:00
fixed max tokens for gpt-3.5-turbo-1106
This commit is contained in:
@@ -34,12 +34,12 @@ def default_max_tokens(model: str) -> int:
|
||||
"""
|
||||
base = 1200
|
||||
if model in GPT_3_MODELS:
|
||||
if model == "gpt-3.5-turbo-0301":
|
||||
return 4096
|
||||
return base
|
||||
elif model in GPT_4_MODELS:
|
||||
return base * 2
|
||||
elif model in GPT_3_16K_MODELS:
|
||||
if model == "gpt-3.5-turbo-0301":
|
||||
return 4096
|
||||
return base * 4
|
||||
elif model in GPT_4_32K_MODELS:
|
||||
return base * 8
|
||||
|
||||
Reference in New Issue
Block a user