This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
Setting the ChatCompletionOptions.ParallelToolCallsEnabled property to true or false fails on gpt-4o (v. 2024-05-13), gpt-4 (v. 0613) models/deployments. Works perfectly fine on gpt-4o-mini (v. 2024-07-18)
Expected behavior
Setting the ChatCompletionOptions.ParallelToolCallsEnabled property to true or false while working with models specified above should not result in an exception, and the property should be correctly recognized and processed.
Actual behavior
Setting the ChatCompletionOptions.ParallelToolCallsEnabled property to true or false leads to the exception 'HTTP 400 (invalid_request_error: Unrecognized request argument supplied: parallel_tool_calls).' Assigning a null value or not assigning any value to the property works.
Reproduction Steps
Create an instance of the ChatCompletionOptions class and set the ParallelToolCallsEnabled property to true or false.
Create an instance of the AzureOpenAIClient class and invoke the CompleteChatAsync method with the options created in the first step.
Specify either of the deployments: gpt-4o (v. 2024-05-13), gpt-4 (v. 0613)
var azureClient = new AzureOpenAIClient(endpoint, apiKey, options);
var options = new ChatCompletionOptions() { ParallelToolCallsEnabled = true };
await azureClient.GetChatClient(...).CompleteChatAsync(..., chatOptions:options, ...)
Library name and version
Azure.AI.OpenAI 2.0.0-beta.3
Describe the bug
Setting the
ChatCompletionOptions.ParallelToolCallsEnabled
property totrue
orfalse
fails on gpt-4o (v. 2024-05-13), gpt-4 (v. 0613) models/deployments. Works perfectly fine on gpt-4o-mini (v. 2024-07-18)Expected behavior
Setting the
ChatCompletionOptions.ParallelToolCallsEnabled
property totrue
orfalse
while working with models specified above should not result in an exception, and the property should be correctly recognized and processed.Actual behavior
Setting the
ChatCompletionOptions.ParallelToolCallsEnabled
property totrue
orfalse
leads to the exception 'HTTP 400 (invalid_request_error: Unrecognized request argument supplied: parallel_tool_calls).' Assigning a null value or not assigning any value to the property works.Reproduction Steps
ChatCompletionOptions
class and set theParallelToolCallsEnabled
property totrue
orfalse
.AzureOpenAIClient
class and invoke theCompleteChatAsync
method with the options created in the first step.Environment
.NET8.0