Skip to content

Commit e488160

Browse files
committed
Upgrade model to o4-mini
1 parent 2af3910 commit e488160

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

plugins/chat.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
from unidecode import unidecode
3434

3535

36-
encoding = tiktoken.encoding_for_model("gpt-4o") # GPT-4's is the same one
36+
encoding = tiktoken.encoding_for_model("o3-mini")
3737
aclient = AsyncOpenAI()
3838

3939

@@ -340,7 +340,7 @@ async def hey(self, ctx: commands.Context):
340340
for iterations_left in range(self.ITERATION_LIMIT - 1, -1, -1):
341341
async with ctx.typing():
342342
iteration_result = await aclient.chat.completions.create(
343-
model="gpt-4o",
343+
model="o4-mini",
344344
messages=prompt_messages,
345345
user=str(ctx.author.id),
346346
tools=self._all_available_commands_as_tools if iterations_left else NOT_GIVEN,

requirements.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ pycares==4.4.* # Without this, an older version is installed, which has compilat
2121
yarl==1.9.*
2222

2323
redis==5.0.*
24-
openai==1.54.*
25-
tiktoken==0.8.*
24+
openai==1.75.*
25+
tiktoken==0.9.*
2626
aiopytesseract==0.10.0
2727
jurigged==0.5.*
2828
Unidecode==1.3.*

requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile requirements.in -o requirements.txt --no-cache
2+
# uv pip compile requirements.in -o requirements.txt
33
aiochclient==2.6.0
44
# via -r requirements.in
55
aiocontextvars==0.2.2
@@ -123,7 +123,7 @@ numpy==1.26.2
123123
# matplotlib
124124
# pywavelets
125125
# scipy
126-
openai==1.54.4
126+
openai==1.75.0
127127
# via -r requirements.in
128128
ovld==0.3.2
129129
# via jurigged
@@ -219,7 +219,7 @@ sqlalchemy==1.4.51
219219
# via -r requirements.in
220220
sqlparse==0.4.4
221221
# via aiochclient
222-
tiktoken==0.8.0
222+
tiktoken==0.9.0
223223
# via -r requirements.in
224224
tqdm==4.64.1
225225
# via openai

0 commit comments

Comments
 (0)