Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using GPT plugin with Azure AI API #128

Open
falense opened this issue Oct 16, 2023 · 5 comments
Open

Using GPT plugin with Azure AI API #128

falense opened this issue Oct 16, 2023 · 5 comments

Comments

@falense
Copy link

falense commented Oct 16, 2023

I am trying to use the plugin with an Azure AI API endpoint rather then the OpenAI endpoint. There seems to be a couple of key differences that makes this not work:

  1. Azure Completion API requires a api-key rather than Bearer for the request.
  2. The api-version must be specified
  3. Different endpoint URL on the form POST https://{your-resource-name}.openai.azure.com/openai/deployments/{deployment-id}/completions?api-version={api-version}

More info here: https://learn.microsoft.com/en-us/azure/ai-services/openai/reference

Would it be hard to add a toggle for Azure vs OpenAI API?

@falense falense changed the title Using GPT pluging with Azure AI API Using GPT plugin with Azure AI API Oct 16, 2023
@eflyingxp
Copy link

How to use Azure AI API in this plugin is also a question that I care about very much. I hope someone can provide a good solution.
如何在这个插件中使用Azure AI API,也是我非常关系的问题,希望有人能给出一个好的解决办法。

@ppyyr
Copy link

ppyyr commented Nov 28, 2023

@r0mdau
Copy link

r0mdau commented Dec 21, 2023

And / or why not providing a way to use a custom Open AI URL, we could leverage LiteLLM to proxy OpenAI API calls to Azure OpenAI for example. This question is a cross-reference to #130

@Ethan-Guo
Copy link

I encountered the same issue.

@ishaan-jaff
Copy link

Hi @r0mdau do you use LiteLLM Proxy ? Can we hop on a call to learn how you use litellm

Link to my cal for your convenience: https://calendly.com/d/4mp-gd3-k5k/litellm-1-1-onboarding-chat?month=2024-02

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants