Added additional arguments for Azure AI agent (#2922)

This commit is contained in:
Dmytro Struk
2025-12-17 08:08:01 +00:00
committed by GitHub
parent c7ddb8aa14
commit 3cd805f0bf
2 changed files with 29 additions and 1 deletions
@@ -335,6 +335,10 @@ class AzureAIClient(OpenAIBaseResponsesClient):
if "tools" in run_options:
args["tools"] = run_options["tools"]
if "temperature" in run_options:
args["temperature"] = run_options["temperature"]
if "top_p" in run_options:
args["top_p"] = run_options["top_p"]
if "response_format" in run_options:
response_format = run_options["response_format"]
@@ -413,7 +417,7 @@ class AzureAIClient(OpenAIBaseResponsesClient):
# Remove properties that are not supported on request level
# but were configured on agent level
exclude = ["model", "tools", "response_format"]
exclude = ["model", "tools", "response_format", "temperature", "top_p"]
for property in exclude:
run_options.pop(property, None)