From 126422812dfe593080857e48d83501d802a330b4 Mon Sep 17 00:00:00 2001 From: James Jun Date: Tue, 26 Dec 2023 12:31:16 -0800 Subject: [PATCH] Backport PR #540: Add gpt-4-1106-preview model from openai --- packages/jupyter-ai-magics/jupyter_ai_magics/providers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py b/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py index 525cb931e..eb6495f6b 100644 --- a/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py +++ b/packages/jupyter-ai-magics/jupyter_ai_magics/providers.py @@ -555,6 +555,7 @@ class ChatOpenAIProvider(BaseProvider, OpenAIChat): "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", + "gpt-4-1106-preview", ] model_id_key = "model_name" pypi_package_deps = ["openai"] @@ -596,6 +597,7 @@ class ChatOpenAINewProvider(BaseProvider, ChatOpenAI): "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", + "gpt-4-1106-preview", ] model_id_key = "model_name" pypi_package_deps = ["openai"]