mirror of
https://github.com/hwchase17/langchain
synced 2024-11-06 03:20:49 +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"
|
model: str = "text-embedding-ada-002"
|
||||||
deployment: str = model # to support Azure OpenAI Service custom deployment names
|
deployment: str = model # to support Azure OpenAI Service custom deployment names
|
||||||
openai_api_version: Optional[str] = None
|
openai_api_version: Optional[str] = None
|
||||||
|
Loading…
Reference in New Issue
Block a user