From 06d43ee1305b687374655dbcc8773902dd7256d1 Mon Sep 17 00:00:00 2001 From: Prasath Date: Wed, 4 Feb 2026 08:04:50 +0530 Subject: [PATCH] Fix: Skip model_deployment_name validation for application endpoints (#3621) Co-authored-by: Ravindu Prasath --- python/packages/azure-ai/agent_framework_azure_ai/_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python/packages/azure-ai/agent_framework_azure_ai/_client.py b/python/packages/azure-ai/agent_framework_azure_ai/_client.py index 58fb0e0397..202002a45f 100644 --- a/python/packages/azure-ai/agent_framework_azure_ai/_client.py +++ b/python/packages/azure-ai/agent_framework_azure_ai/_client.py @@ -421,6 +421,9 @@ class AzureAIClient(OpenAIBaseResponsesClient[TAzureAIClientOptions], Generic[TA @override def _check_model_presence(self, run_options: dict[str, Any]) -> None: + # Skip model check for application endpoints - model is pre-configured on server + if self._is_application_endpoint: + return if not run_options.get("model"): if not self.model_id: raise ValueError("model_deployment_name must be a non-empty string")