[BUG] Combining a ChatCompletionsFunctionToolDefinition with an AzureCognitiveSearchChatExtensionConfiguration breaks the API #42285
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
This issue needs attention from Azure service team or SDK team
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
This issue is responsible by Azure service team.
Library name and version
Azure..Ai.OpenAI 1.0.0-beta.13
Describe the bug
When requesting a chat completion from an Azure OpenAI service that uses both a
ChatCompletionsFunctionToolDefinition
and anAzureCognitiveSearchChatExtensionConfiguration
the service responds with this error (which also has spelling issues):The referenced documentation says that Supported Models include gpt-4 (1106-preview) and API version 2023-12-01-preview which we are using.
The same code works if you just remove the
AzureCognitiveSearchChatExtensionConfiguration
from the request.The error message from the service makes no sense.
Expected behavior
That the service responds with http 200 and a proper ChatCompletion that can utilize both a FunctionTool and the AzureSearch extension..
Actual behavior
The services responds with 400 Bad Request and this error message:
Reproduction Steps
Environment
Azure, Azure OpenAI, Azure Search
Windows 11
dotnet 8
The text was updated successfully, but these errors were encountered: