chat-with-your-data-solution-accelerator icon indicating copy to clipboard operation
chat-with-your-data-solution-accelerator copied to clipboard

Use openai package for `/api/conversation/azure_byod` endpoint when using data

Open cecheta opened this issue 1 year ago • 0 comments

Motivation

For requests to /api/custom/azure_byod, we currently use the requests package when using data, yet we use the openai package when not using data, leading to code duplication. We can use the openai package for both scenarios, using the extra_body property when using data, as shown in the docs.

Requirements

A list of requirements to consider this feature delivered

  • Remove requests call to Azure OpenAI and replace with openai package.

Tasks

To be filled in by the engineer picking up the issue

cecheta avatar Apr 08 '24 09:04 cecheta