mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-02 21:23:32 +00:00
Fix mypy error in openai.py for client (#10445)
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.
This commit is contained in:
parent
fde57df7ae
commit
503c382f88
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user