openai[patch]: fix AzureChatOpenAI missing parameter problem (#19258)

- **Issue:** close #19255
- PTAL @baskaryan @eyurtsev
This commit is contained in:
Guangdong Liu 2024-03-27 13:31:36 +08:00 committed by GitHub
parent 3a978a4bdc
commit cd79305eb9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -201,7 +201,10 @@ class AzureChatOpenAI(ChatOpenAI):
@property @property
def _identifying_params(self) -> Dict[str, Any]: def _identifying_params(self) -> Dict[str, Any]:
"""Get the identifying parameters.""" """Get the identifying parameters."""
return {**self._default_params} return {
**{"azure_deployment": self.deployment_name},
**super()._identifying_params,
}
@property @property
def _llm_type(self) -> str: def _llm_type(self) -> str: