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.
pull/10459/head
Anton Danylchenko 12 months ago committed by GitHub
parent fde57df7ae
commit 503c382f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save