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

Fix OPENROUTER problem with the model names #902

Open
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

ArtikUA
Copy link

@ArtikUA ArtikUA commented Apr 30, 2024

If you try to use OpenRouter with any model - you got error:

{"error":{"message":"Model llama-3-70b-instruct:nitro is not available","code":404}, ...

because openrouter need's to have provider name together with the model name in one string.

This commit fix it for OpenRouter, so you can use:
MODEL_NAME="meta-llama/llama-3-70b-instruct:nitro"
in the config and it will work

@Exlo84
Copy link

Exlo84 commented May 8, 2024

i have a similar, but different experience with OpenRouter.
If its not in this list: https://docs.litellm.ai/docs/providers/openrouter it will not work "out of the box" with just stating the model name.
MODEL_NAME=gpt-4 - works
MODEL_NAME=openai/gpt-4 - works
MODEL_NAME=claude-3-opus - does not work
MODEL_NAME=anthropic/claude-3-opus - does not work
MODEL_NAME=openrouter/anthropic/claude-3-opus -works

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.

None yet

2 participants