Open a116062 opened 1 day ago
Thanks, for the code example and writing the issue. This looks fairly similar to the vanilla openai API request. My original idea was to add the azure logic into the chatgpt()
or my planned openai()
function that implements OpenAI Api calls and to just look whether a deployment and an "AZURE-OPENAI-KEY" was set to see if it should direct to azure instead of OpenAI. But there seems to be some more potential to add azure-specific functionality like data_sources
in an own function and models seem to be specified differently in the azure API. Perhaps the best choice would be to implement a azure_openai()
function instead. I will try to do this, but will need to sign up for azure myself to add this feature. I guess I will need a few weeks to implement this.
Many organizations rely on Azure to use OpenAI's models in order to keep the data private. It would be great if this package supported azure. Below is an example of a function I wrote to hit Azure's end-point.