[BUG] other AI provider doesn't work with NonAzureOpenAI #40195
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-triage
This issue needs the team to triage.
OpenAI
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
I am trying to use multiple AI providers using this SDK since payload is same,
However, there is hard coded value OPEN_AI_ENDPOINT for nonAzureOpenAi and can't modify, so that only Azure OpenAI and OpenAi are working and doesn't work with other AI provider such as Perplexity AI even though payload of request, response is same.
To Reproduce
Steps to reproduce the behavior:
set endpoint = "https://api.perplexity.ai/"
Code Snippet
Expected behavior
Need to able to modify OPEN_AI_ENDPOINT (maybe rename to generic like nonAzureAiEndpoint) while creating OpenAIAsyncClient using OpenAIClientBuilder so that this will support for all other AI providers.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: