mirror of
https://github.com/microsoft/agent-framework.git
synced 2026-06-16 21:04:09 +08:00
Fix: Skip model_deployment_name validation for application endpoints (#3621)
Co-authored-by: Ravindu Prasath <ravindu.prasath@ifs.com>
This commit is contained in:
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")
|
||||
|
||||
Reference in New Issue
Block a user