Skip to content

Commit

Permalink
Fix mypy error in openai.py for client (langchain-ai#10445)
Browse files Browse the repository at this point in the history
We use your library and we have a mypy error because you have not
defined a default value for the optional class property.

Please fix this issue to make it compatible with the mypy. Thank you.
  • Loading branch information
Anton-Aracor authored Sep 11, 2023
1 parent fde57df commit 503c382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/embeddings/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class OpenAIEmbeddings(BaseModel, Embeddings):
"""

client: Any #: :meta private:
client: Any = None #: :meta private:
model: str = "text-embedding-ada-002"
deployment: str = model # to support Azure OpenAI Service custom deployment names
openai_api_version: Optional[str] = None
Expand Down

0 comments on commit 503c382

Please sign in to comment.