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

Azure OpenAI and/or LiteLLM Proxy Support #65

Open
dcieslak19973 opened this issue Aug 22, 2024 · 4 comments
Open

Azure OpenAI and/or LiteLLM Proxy Support #65

dcieslak19973 opened this issue Aug 22, 2024 · 4 comments
Assignees

Comments

@dcieslak19973
Copy link

Would be nice to allow users to specify either a LiteLLM Proxy instance or their own Azure OpenAI instance in addition to support for direct OpenAI and AWS Claude

@emeryberger
Copy link
Member

This is possible; we are using LiteLLM in https://github.com/plasma-umass/ChatDBG/. If there's sufficient interest, we will add it (please thumbs-up this issue).

@dcieslak19973
Copy link
Author

Thanks; I think I see in the code that you may now be using litellm; less than clear what I would need to set (either environment variable-wise or cli-argument-wise) to connect to my LiteLLM proxy instance...

@nicovank
Copy link
Contributor

nicovank commented Sep 4, 2024

I expect we also need to change the code a bit just to let that parameter pass through to the underlying litellm package. I’ll give it a look.

@nicovank
Copy link
Contributor

nicovank commented Sep 5, 2024

So from what I understand, the proxy more or less gives the same functionality as having LiteLLM in the code namely abstracting out which service to request from. Do you have the possibility of directly querying the underlying service? e.g. can you specify AZURE_API_KEY, AZURE_API_BASE, and AZURE_API_VERSION directly in the environment? Or are you bound by the proxy = everything must go through the proxy? I assumed Azure OpenAI because that was in the title, but same question if it was another provider.

We currently do a hard check for either OpenAI or AWS credentials, and only pass those through to LiteLLM. We should be able to allow anything LiteLLM already allows instead.

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

3 participants