Python: multiple bug fixes (#3150)

* fix Python: kwargs are not passed to _prepare_thread_and_messages in ChatAgent.run
Fixes #3118

* fix Python: [Bug]: model_id versus model_deployment_name is confusing in Azure AI Agents
Fixes #3147

* add types

* fixed type and docstring
This commit is contained in:
Eduard van Valkenburg
2026-01-12 01:01:41 +00:00
committed by GitHub
parent 6445b6b3a6
commit 551c2c3abe
5 changed files with 35 additions and 6 deletions
@@ -421,6 +421,13 @@ class AzureAIClient(OpenAIBaseResponsesClient):
return run_options
@override
def _check_model_presence(self, run_options: dict[str, Any]) -> None:
if not run_options.get("model"):
if not self.model_id:
raise ValueError("model_deployment_name must be a non-empty string")
run_options["model"] = self.model_id
def _transform_input_for_azure_ai(self, input_items: list[dict[str, Any]]) -> list[dict[str, Any]]:
"""Transform input items to match Azure AI Projects expected schema.