mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 10:17:00 +00:00
fix(openai): add model property (#35284)
This commit is contained in:
@@ -901,6 +901,11 @@ class BaseChatOpenAI(BaseChatModel):
|
||||
|
||||
model_config = ConfigDict(populate_by_name=True)
|
||||
|
||||
@property
|
||||
def model(self) -> str:
|
||||
"""Same as model_name."""
|
||||
return self.model_name
|
||||
|
||||
@model_validator(mode="before")
|
||||
@classmethod
|
||||
def build_extra(cls, values: dict[str, Any]) -> Any:
|
||||
|
||||
Reference in New Issue
Block a user