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:
Anton Danylchenko
2023-09-11 21:47:12 +03:00
committed by GitHub
parent fde57df7ae
commit 503c382f88

View File

@@ -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