Integration Issues with BeWildCard as API Proxy for OpenAI and Anthropic in LibreChat #3400
Replies: 2 comments 2 replies
-
I wanted to follow up on my post regarding the issues I was facing while integrating BeWildCard, a third-party API proxy provider, with LibreChat. I've managed to resolve the problem and would like to share the solution here so that it might help others who encounter a similar issue in the future. The SolutionThe key to resolving the issue was adjusting the reverse proxy URL to include In LibreChat's source code, the OpenAI base URL is set as follows: const openaiBaseURL = 'https://api.openai.com/v1'; Given this structure, the reverse proxy should similarly reflect the # OpenAI
OPENAI_API_KEY=your_bewildcard_openai_key
- OPENAI_REVERSE_PROXY=https://api.gptsapi.net
+ OPENAI_REVERSE_PROXY=https://api.gptsapi.net/v1
# Anthropic
ANTHROPIC_API_KEY=your_bewildcard_anthropic_key
- ANTHROPIC_REVERSE_PROXY=https://api.gptsapi.net
+ ANTHROPIC_REVERSE_PROXY=https://api.gptsapi.net/v1 ConclusionBy aligning the reverse proxy URL with the base URL structure of the APIs (including the I hope this solution can save time for anyone who might run into the same or similar configuration issue. Thanks to everyone who took the time to consider and respond to my initial query! |
Beta Was this translation helpful? Give feedback.
-
it looks like a server-side issue on your proxy's part |
Beta Was this translation helpful? Give feedback.
-
Hello LibreChat Community,
I am currently working on integrating BeWildCard as an API proxy for both OpenAI and Anthropic APIs within LibreChat. BeWildCard specifically requires changing the base addresses of these APIs to their proxy address. Despite following their instructions, I've encountered errors that I'm unable to resolve. Here's a breakdown of what I've configured and the issues I'm facing.
Configuration
BeWildCard instructions required me to:
https://api.openai.com
) withhttps://api.gptsapi.net
.https://api.anthropic.com
) withhttps://api.gptsapi.net
.Based on these requirements, here’s how I have set up my
.env
file:Errors Encountered
Anthropic (Claude) API Error:
Using the Claude 3 Haiku model, I received an error about the organization being disabled, despite charges appearing on my BeWildCard account:
OpenAI API Error:
No charges by BeWildCard for GPT-4o, but LibreChat reported:
Questions for the Community
Configuration of Reverse Proxy:
Is setting the reverse proxy to
https://api.gptsapi.net
for BeWildCard the correct approach, or should this configuration be applied differently in LibreChat (perhaps through another variable or config file)?Error Diagnosis:
Assuming the reverse proxy is correctly set, what might be the reasons for these errors? Could there be an issue with how BeWildCard is handling these requests, or might it be a problem with my API keys or account settings?
Any insights or suggestions would be greatly appreciated as I navigate this integration challenge. Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions