Skip to content

Commit

Permalink
openai[patch]: fix AzureChatOpenAI missing parameter problem (langcha…
Browse files Browse the repository at this point in the history
  • Loading branch information
liugddx authored Mar 27, 2024
1 parent 3a978a4 commit cd79305
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/partners/openai/langchain_openai/chat_models/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,10 @@ def validate_environment(cls, values: Dict) -> Dict:
@property
def _identifying_params(self) -> Dict[str, Any]:
"""Get the identifying parameters."""
return {**self._default_params}
return {
**{"azure_deployment": self.deployment_name},
**super()._identifying_params,
}

@property
def _llm_type(self) -> str:
Expand Down

0 comments on commit cd79305

Please sign in to comment.