Fix: Skip model_deployment_name validation for application endpoints (#3621)

Co-authored-by: Ravindu Prasath <ravindu.prasath@ifs.com>
This commit is contained in:
Prasath
2026-02-04 08:04:50 +05:30
committed by GitHub
Unverified
parent 96d3f2a55e
commit 06d43ee130
@@ -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")