mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
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
This commit is contained in:
parent
d95eeaedbe
commit
8189dea0d8
@ -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…
Reference in New Issue
Block a user