Skip to content

Commit 009a1c0

Browse files
authored
Removes outdated OpenAI models and adds new ones (#1127)
Fixes #836 1. Removed `gpt-3.5-turbo-0125` as it points to `got-3.5-turbo`. 2. Removed `gpt-3.5-turbo-0301`, deprecated as of 2024-06-13 3. Removed `gpt-3.5-turbo-0613", deprecated as of 2024-06-13 4. Removed `gpt-3.5-turbo-16k`, not offered any more 5. Removed `gpt-3.5-turbo-16k-0613`, deprecated as of 2024-06-13 6. Removed `gpt-4-32k`, no longer offered 7. Removed `gpt-4-32k-0613`, no longer offered 8. Added `gpt-4o-2024-11-20`, `chatgpt-4o-latest` 9. Will add `o1-preview`, `o1-mini` later as this is not widely available as yet While `gpt-3.5-turbo` OpenAI recommends using `gpt-4o` instead: “As of July 2024, gpt-4o-mini should be used in place of gpt-3.5-turbo, as it is cheaper, more capable, multimodal, and just as fast. gpt-3.5-turbo is still available for use in the API.” There are no changes to the embedding models from OpenAI.
1 parent f8dc779 commit 009a1c0

File tree

1 file changed

+2
-7
lines changed
  • packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers

1 file changed

+2
-7
lines changed

packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers/openai.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,22 +37,17 @@ class ChatOpenAIProvider(BaseProvider, ChatOpenAI):
3737
name = "OpenAI"
3838
models = [
3939
"gpt-3.5-turbo",
40-
"gpt-3.5-turbo-0125",
41-
"gpt-3.5-turbo-0301", # Deprecated as of 2024-06-13
42-
"gpt-3.5-turbo-0613", # Deprecated as of 2024-06-13
4340
"gpt-3.5-turbo-1106",
44-
"gpt-3.5-turbo-16k",
45-
"gpt-3.5-turbo-16k-0613", # Deprecated as of 2024-06-13
4641
"gpt-4",
4742
"gpt-4-turbo",
4843
"gpt-4-turbo-preview",
4944
"gpt-4-0613",
50-
"gpt-4-32k",
51-
"gpt-4-32k-0613",
5245
"gpt-4-0125-preview",
5346
"gpt-4-1106-preview",
5447
"gpt-4o",
48+
"gpt-4o-2024-11-20",
5549
"gpt-4o-mini",
50+
"chatgpt-4o-latest",
5651
]
5752
model_id_key = "model_name"
5853
pypi_package_deps = ["langchain_openai"]

0 commit comments

Comments
 (0)