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

[Bug]: Using OPENROUTER_API_KEY breaks all librechat.yaml custom endpoints #2097

Open
1 task done
fuegovic opened this issue Mar 14, 2024 · 2 comments
Open
1 task done
Assignees
Labels
bug Something isn't working

Comments

@fuegovic
Copy link
Collaborator

fuegovic commented Mar 14, 2024

What happened?

I attempted to configure OpenRouter using OPENROUTER_API_KEY to override the OpenAI endpoint, to use gpt-3.5/gpt-4 and plugins with them instead of OpenAI. However, this modification disrupted all other custom endpoints I had configured in the YAML configuration file, with the exception of OpenRouter itself.

Steps to Reproduce

  1. Set OPENROUTER_API_KEY
  2. Try to use another custom endpoint, e.g. groq

Relevant log output

I can produce more logs if required:

warn: [OpenAIClient.chatCompletion][stream] API error
warn: [OpenAIClient.chatCompletion][finalChatCompletion] API error
error: [OpenAIClient.chatCompletion] Unhandled error type Error: 404 Model llama2-70b-4096 is not available
[handleAbortError] AI response error; aborting request: Error: 404 Model llama2-70b-4096 is not available

Screenshots

image

Code of Conduct

  • I agree to follow this project's Code of Conduct
@fuegovic fuegovic added the bug Something isn't working label Mar 14, 2024
@danny-avila
Copy link
Owner

This is why OPENROUTER_API_KEY is not recommended for use. however I can think of a way to hotfix preventing the "breaking"

@danny-avila danny-avila self-assigned this Mar 14, 2024
@fuegovic
Copy link
Collaborator Author

This is why OPENROUTER_API_KEY is not recommended for use. however I can think of a way to hotfix preventing the "breaking"

That would be great! OpenAI recently switched to pre-paid billing, and they’ve decided to stop accepting my money at the same time for some mysterious reasons 🤷‍♂️. I’m already paying for the same models in two places so I figured I’d switch over to OpenRouter. Since I don’t really use assistants and I can easily integrate OpenRouter with plugins I wouldn't loose much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants