From 0c768191dc3dcafe962654fd486f1bb44533fbe4 Mon Sep 17 00:00:00 2001 From: EduardDurech <39579228+EduardDurech@users.noreply.github.com> Date: Fri, 9 Feb 2024 00:05:32 +0100 Subject: [PATCH] Backport PR #625: Add new OpenAI models --- packages/jupyter-ai-magics/jupyter_ai_magics/providers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py b/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py index 3f3712ad7..b1a8b1950 100644 --- a/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py +++ b/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py @@ -608,15 +608,18 @@ class ChatOpenAIProvider(BaseProvider, ChatOpenAI): name = "OpenAI" models = [ "gpt-3.5-turbo", + "gpt-3.5-turbo-0125", "gpt-3.5-turbo-0301", # Deprecated as of 2024-06-13 "gpt-3.5-turbo-0613", # Deprecated as of 2024-06-13 "gpt-3.5-turbo-1106", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-16k-0613", # Deprecated as of 2024-06-13 "gpt-4", + "gpt-4-turbo-preview", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0613", + "gpt-4-0125-preview", "gpt-4-1106-preview", ] model_id_key = "model_name"