Skip to content

Supporting Azure OpenAI #11

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

Open
monuminu opened this issue Apr 16, 2025 · 9 comments
Open

Supporting Azure OpenAI #11

monuminu opened this issue Apr 16, 2025 · 9 comments

Comments

@monuminu
Copy link

Supporting Azure OpenAI

@ralzinov
Copy link

ralzinov commented Apr 16, 2025

LiteLLM potentially might help https://docs.litellm.ai/docs/

@nikhil-pandey
Copy link

We should be able to bake in Azure OpenAI support directly from the openai package — likely just a few lines of changes.

import { AzureOpenAI, OpenAI } from "openai";

I might take a stab at it later today, or wire it up through GitHub agent mode if I get the chance.

@rgregg
Copy link

rgregg commented Apr 16, 2025

I asked codex this question on it's own repo - and it says you should be able to set two ENV vars to redirect it:

 • Set OPENAI_BASE_URL to your Azure OpenAI endpoint (e.g. https://<your‑resource>.openai.azure.com)
 • Set OPENAI_API_KEY (or codex config set apiKey …) to your Azure API key

I haven't given it a try yet though.

@guygregory
Copy link

I asked codex this question on it's own repo - and it says you should be able to set two ENV vars to redirect it:

 • Set OPENAI_BASE_URL to your Azure OpenAI endpoint (e.g. https://<your‑resource>.openai.azure.com)
 • Set OPENAI_API_KEY (or codex config set apiKey …) to your Azure API key

I haven't given it a try yet though.

Deployment name for the model will also be required for AOAI

@SeaDude
Copy link

SeaDude commented Apr 16, 2025

Please also consider implementing azure_ad_token (or the like) so that enterprises don’t have to communicate and manage AOAI API keys.

Reference

@thegovind
Copy link
Contributor

thegovind commented Apr 16, 2025

Working on it - #92

@surim0n
Copy link

surim0n commented Apr 17, 2025

Following, if someone successfully gets it running please update this thread. thank you x 1000000.

@cavanaug
Copy link

It would be a godsend if you supported the GH copilot api similar to how vscode utilizes models. GH copilot also has a generous free tier and is well utilized in Enterprises.

The GH OpenAi api is a slight variant on the generic OpenAI api. More information and how litellm supported it available at BerriAI/litellm#6564

@jslitzkerttcu
Copy link

jslitzkerttcu commented May 7, 2025

PR is being worked on in #769

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

Successfully merging a pull request may close this issue.

10 participants