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

Enhancement: Dedicated Reverse Proxy Endpoint #1344

Closed
1 task done
eburnette opened this issue Dec 13, 2023 · 8 comments · Fixed by #1474
Closed
1 task done

Enhancement: Dedicated Reverse Proxy Endpoint #1344

eburnette opened this issue Dec 13, 2023 · 8 comments · Fixed by #1474
Assignees
Labels
✨ enhancement New feature or request
Milestone

Comments

@eburnette
Copy link
Contributor

eburnette commented Dec 13, 2023

Contact Details

Redacted

What features would you like to see added?

Support models served by Anyscale (https://app.endpoints.anyscale.com/).

More details

Anyscale supports a number of open source llms as fully managed API endpoints. The first million tokens are free so all you need is to sign up and get an API key. They support the OpenAI API, including function calls.

Which components are impacted by your request?

No response

Pictures

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@eburnette eburnette added the ✨ enhancement New feature or request label Dec 13, 2023
@danny-avila
Copy link
Owner

https://docs.anyscale.com/endpoints/model-serving/openai-migration-guide

It should already work if you set OPENAI_REVERSE_PROXY to ANYSCALE_API_BASE

@danny-avila danny-avila closed this as not planned Won't fix, can't repro, duplicate, stale Dec 13, 2023
@fuegovic
Copy link
Collaborator

It seems to be working indeed:

OPENAI_API_KEY=esecret_xxxxxxxxxxxxxxxxja79 # Anyscale API key
OPENAI_REVERSE_PROXY=https://api.endpoints.anyscale.com/v1/chat/completions

image

@eburnette
Copy link
Contributor Author

That works, but it still says OpenAI in the UI, and once you have this set up you can't switch to an OpenAI model.

BTW I found a similar site, portkey.ai (https://portkey.ai/docs/welcome/what-is-portkey) that supports more models. For all but OpenAI, though, you have to use their sdk.

@fuegovic
Copy link
Collaborator

That works, but it still says OpenAI in the UI, and once you have this set up you can't switch to an OpenAI model.

This has been discussed on discord. Looks like it's planned, but it's not a priority.
image

@fuegovic fuegovic changed the title Enhancement: Support Anyscale Enhancement: Dedicated Reverse Proxy Endpoint Dec 13, 2023
@fuegovic
Copy link
Collaborator

@eburnette @danny-avila I changed the title to better reflect the nature of the feature request, and re-opened it since a dedicated reverse proxy endpoint was requested more than once

@fuegovic fuegovic reopened this Dec 13, 2023
@danny-avila
Copy link
Owner

Indeed this is planned and should actually be pretty simple to implement once I put the time in, thank you for clarifying @fuegovic @eburnette

@danny-avila
Copy link
Owner

Making progress with the Custom Endpoint (aka Dedicated Reverse Proxy Endpoint)

image

@danny-avila danny-avila added this to the v0.6.6 milestone Dec 30, 2023
@danny-avila
Copy link
Owner

I'm also thinking about how to allow multiple custom endpoints. For example, if i want openrouter, mistral api, and openai available all at once

@danny-avila danny-avila linked a pull request Jan 2, 2024 that will close this issue
9 tasks
@github-project-automation github-project-automation bot moved this from 📋 Backlog to ✅ Done in LibreChat Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ enhancement New feature or request
Projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

3 participants