Default ChatGPT() model arg to gpt-4o-mini

Keep the ChatGPT class fallback model in sync with the new project
default. Callers always pass an explicit model, so this only affects
the no-argument fallback.
This commit is contained in:
Father Bot
2026-01-22 13:48:09 +03:00
parent ea3af7d3aa
commit 8624e97dd2
+1 -1
View File
@@ -26,7 +26,7 @@ OPENAI_COMPLETION_OPTIONS = {
class ChatGPT:
def __init__(self, model="gpt-3.5-turbo"):
def __init__(self, model="gpt-4o-mini"):
assert model in {"text-davinci-003", "gpt-3.5-turbo-16k", "gpt-3.5-turbo", "gpt-4", "gpt-4o", "gpt-4o-mini", "gpt-4-1106-preview", "gpt-4-vision-preview"}, f"Unknown model: {model}"
self.model = model