From f0a137b762d829589f49b7d616b82bbc9b9c1b48 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 16 Nov 2023 00:36:49 -0500 Subject: [PATCH] fixed gpt3.5 ask bug and bumped version --- gpt3discord.py | 2 +- models/openai_model.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gpt3discord.py b/gpt3discord.py index 1e93896e..c4a48e5c 100644 --- a/gpt3discord.py +++ b/gpt3discord.py @@ -34,7 +34,7 @@ from models.openai_model import Model -__version__ = "12.2.7" +__version__ = "12.2.8" PID_FILE = Path("bot.pid") diff --git a/models/openai_model.py b/models/openai_model.py index cdf71581..6f8b5270 100644 --- a/models/openai_model.py +++ b/models/openai_model.py @@ -1224,7 +1224,7 @@ async def send_request( if frequency_penalty_override is None else frequency_penalty_override, } - if "preview": + if "preview" in model_selection: payload[ "max_tokens" ] = 4096 # Temporary workaround while 4-turbo and vision are in preview.