Skip to content

Commit

Permalink
[Internal] Fix a couple of typos in open_ai_client.py (#829)
Browse files Browse the repository at this point in the history
## What changes are proposed in this pull request?

This PR fixes a couple of typos in `open_ai_client.py`.

## How is this tested?

N/A
  • Loading branch information
renaudhartert-db authored Nov 20, 2024
1 parent 197b5f9 commit 74f9a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions databricks/sdk/mixins/open_ai_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def get_open_ai_client(self):
from openai import OpenAI
except Exception:
raise ImportError(
"Open AI is not installed. Please install the Databricks SDK with the following command `pip isntall databricks-sdk[openai]`"
"Open AI is not installed. Please install the Databricks SDK with the following command `pip install databricks-sdk[openai]`"
)

return OpenAI(
Expand All @@ -42,7 +42,7 @@ def get_langchain_chat_open_ai_client(self, model):
from langchain_openai import ChatOpenAI
except Exception:
raise ImportError(
"Langchain Open AI is not installed. Please install the Databricks SDK with the following command `pip isntall databricks-sdk[openai]` and ensure you are using python>3.7"
"Langchain Open AI is not installed. Please install the Databricks SDK with the following command `pip install databricks-sdk[openai]` and ensure you are using python>3.7"
)

return ChatOpenAI(
Expand Down

0 comments on commit 74f9a4f

Please sign in to comment.