-
Notifications
You must be signed in to change notification settings - Fork 4.3k
openai api behind Oauth2? #2425
Unanswered
tamis-laan
asked this question in
Q&A
-
I'm working on a project where we have openai protected behind a Oauth2 endpoint. Which works like a proxy, it recieves api calls we need to authenticate with oauth2 and then the requests are forwarded to I believe Azure openai.
I would like to use the official openai python client instead of writting my own httpx wrapper around the api. So I basically need to override the OpenAI class and implement my own authentication flow.
Can someone tell me how to do this? Which methods should I override? Are there examples of this I can use as reference? All help would be appreciated.
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment