Azure OpenAI: using functions and bring your own data in parallel doesn't work

GuenterR 5 Reputation points

We have an Azure OpenAI instance with uploaded data (bring your own data). Using the OpenAIClient from azure-sdk-for-js it is possible to chat with the instance and get answers composed from the uploaded data. This is described in and it works as expected. In addition we want to retrieve dynamic data from a database via function calls. This is described in it also works well. When I add the parameters for both in getChatCompletions only function calls are working. Access to uploaded data is not possible. API Versions: 2023-12-01-preview, 2023-08-01-preview. I checked the behavior with direct http-Rest requests to OpenAI using Postman and got the same result. BYOD and functions work when called in different requests but not together in one request.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
1,837 questions
{count} vote

2 answers

Sort by: Most helpful
  1. SchildmannDominik-3228 5 Reputation points

    NOTE: The concurrent use of Chat Functions and Azure Chat Extensions on a single request is not yet supported. Supplying both will result in the Chat Functions information being ignored and the operation behaving as if only the Azure Chat Extensions were provided. To address this limitation, consider separating the evaluation of Chat Functions and Azure Chat Extensions across multiple requests in your solution design.

    From Assuming it's similar in the JavaScript SDK, although I'm not sure why it's the other way around for you.

    1 person found this answer helpful.
    0 comments No comments

  2. GuenterR 5 Reputation points

    Hi Dominik, Thanks for your answer. This note is missing on the Javascript SDK site. I already tried to separate functions and cognitive search in different requests but this didn't work well.
    Today I've changed the option parameters from "functions" (still works) to "tools". Now cognitive search is performed and functions in tools are ignored when both are sent in options.

    0 comments No comments