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

feat: allow any reverse proxy URLs, add proxy support to model fetching #1192

Merged
merged 2 commits into from
Nov 16, 2023

Conversation

danny-avila
Copy link
Owner

Previously would prevent any reverse proxies, to follow the strict /v1 pattern. I don't think this is necessary anymore, as most will know they need a baseURL from their proxy, and that their api should handle all the specs as openai does.

@danny-avila danny-avila changed the title feat: allow any reverse proxy URLs feat: allow any reverse proxy URLs, add proxy support to model fetching Nov 16, 2023
@danny-avila
Copy link
Owner Author

@Airkek, let me know if this works for you. I wasn't able to test the proxying but it should work.

@danny-avila danny-avila linked an issue Nov 16, 2023 that may be closed by this pull request
1 task
@danny-avila danny-avila merged commit c649705 into main Nov 16, 2023
3 checks passed
@danny-avila danny-avila deleted the allow-any-baseurl branch November 16, 2023 23:56
@Airkek
Copy link

Airkek commented Nov 17, 2023

@Airkek, let me know if this works for you. I wasn't able to test the proxying but it should work.

seems like it doesn't work

Failed to fetch models from OpenAI API

@Airkek
Copy link

Airkek commented Nov 17, 2023

seems like it doesn't work

No, it was my fault, i set HTTPS_PROXY env var and it was overriding axios httpsAgent. All works fine

cnkang pushed a commit to cnkang/LibreChat that referenced this pull request Feb 6, 2024
…ng (danny-avila#1192)

* feat: allow any reverse proxy URLs

* feat: add proxy support to model fetching
jinzishuai pushed a commit to aitok-ai/LibreChat that referenced this pull request May 20, 2024
…ng (danny-avila#1192)

* feat: allow any reverse proxy URLs

* feat: add proxy support to model fetching
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 this pull request may close these issues.

[Bug]: Models are not fetching through proxy
2 participants