Fixes typing issues in BaseOpenAI (#9183)

## Description: 

Sets default values for `client` and `model` attributes in the
BaseOpenAI class to fix Pylance Typing issue.

  - Issue: #9182.
  - Twitter handle: @evanmschultz
pull/9192/head
Evan Schultz 1 year ago committed by GitHub
parent d95eeaedbe
commit 8189dea0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -143,8 +143,8 @@ class BaseOpenAI(BaseLLM):
def lc_serializable(self) -> bool:
return True
client: Any #: :meta private:
model_name: str = Field("text-davinci-003", alias="model")
client: Any = None #: :meta private:
model_name: str = Field(default="text-davinci-003", alias="model")
"""Model name to use."""
temperature: float = 0.7
"""What sampling temperature to use."""

Loading…
Cancel
Save