diff --git a/packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers/openai.py b/packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers/openai.py index e804968f8..5d8f49073 100644 --- a/packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers/openai.py +++ b/packages/jupyter-ai-magics/jupyter_ai_magics/partner_providers/openai.py @@ -1,4 +1,10 @@ -from langchain_openai import AzureChatOpenAI, ChatOpenAI, OpenAI, OpenAIEmbeddings, AzureOpenAIEmbeddings +from langchain_openai import ( + AzureChatOpenAI, + AzureOpenAIEmbeddings, + ChatOpenAI, + OpenAI, + OpenAIEmbeddings, +) from ..embedding_providers import BaseEmbeddingsProvider from ..providers import BaseProvider, EnvAuthStrategy, TextField @@ -121,5 +127,5 @@ class AzureOpenAIEmbeddingsProvider(BaseEmbeddingsProvider, AzureOpenAIEmbedding auth_strategy = EnvAuthStrategy( name="AZURE_OPENAI_API_KEY", keyword_param="openai_api_key" ) - + registry = True