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

Misleading error messages when users enter invalid Groq model #1368

Closed
MikeBirdTech opened this issue Jul 29, 2024 · 2 comments · Fixed by #1377
Closed

Misleading error messages when users enter invalid Groq model #1368

MikeBirdTech opened this issue Jul 29, 2024 · 2 comments · Fixed by #1377
Labels
Good First issue Good for newcomers

Comments

@MikeBirdTech
Copy link
Collaborator

Describe the bug

This occurs when trying to use one of the new Groq models, such as llama-3.1-405b-reasoning and non-paying users do not have access. This might occur with other invalid models as well, but I haven't tested.

When the user runs interpreter --model groq/llama-3.1-405b-reasoning --api_base https://api.groq.com/openai/v1 --api_key $GROQ_API_KEY
the error is

  You do not have access to openai/groq/llama-3.1-405b-reasoning. You will need to add a payment method and purchase credits for the OpenAI API billing page (different from ChatGPT) to use `GPT-4`.

.com/account/billing/overview

Would you like to try GPT-3.5-TURBO instead? (y/n)

Reproduce

Run interpreter --model groq/llama-3.1-405b-reasoning --api_base https://api.groq.com/openai/v1 --api_key $GROQ_API_KEY

Enter any prompt

Expected behavior

An error message that is related to the provider of the model attempted to be used

Screenshots

No response

Open Interpreter version

0.3.4

Python version

3.11.7

Operating System name and version

MacOS

Additional context

No response

@MikeBirdTech MikeBirdTech added the Good First issue Good for newcomers label Jul 29, 2024
@ighoshsubho
Copy link
Contributor

I want to fix this, can you assign me please.

@MikeBirdTech
Copy link
Collaborator Author

@ighoshsubho It's all yours! Looking forward to the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good First issue Good for newcomers
Projects
None yet
2 participants