Open grankko opened 8 months ago
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jpalvarezl @trrwilson.
the issue persists in the 2024-02-15-preview
version of the API and the Azure.AI.OpenAI 1.0.0-beta.14
version of the SDK
the issue persist in Azure.AI.OpenAI 1.0.0-beta.15
and 2024-03-01-preview
API version.
Endpoint template in use:
https://{resourcename}.openai.azure.com/openai/deployments/{deployment}/chat/completions?api-version=2024-03-01-preview
Same here using REST API.
Referencing also https://github.com/Azure/azure-sdk-for-js/issues/28611
The same issue exists if using the legacy : FunctionDefinition to make a function call as well. SDK: 1.0.0-beta.16
Same issue exist in Azure.AI.OpenAI Version="1.0.0-beta.17
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