Skip to content

Commit dbf223d

Browse files
committed
Change to gpt-4o-mini
1 parent ed3d998 commit dbf223d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/openai_interfacing.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,9 @@ async def send_ai_text(prompt_type: str, prompt: str, job_id: str, websocket) ->
167167

168168
prompt_length = await get_token_size(prompt)
169169

170-
if 4000 < prompt_length < 16000:
171-
model = "gpt-3.5-turbo-16k-0613"
172-
elif prompt_length > 16000:
173-
model = "gpt-3.5-turbo"
170+
model = "gpt-4o-mini"
171+
if prompt_length > 128000:
174172
prompt = prompts["log_too_log"]
175-
else:
176-
model = "gpt-3.5-turbo"
177173

178174
try:
179175
response = await openai.ChatCompletion.acreate(

0 commit comments

Comments
 (0)