-
Notifications
You must be signed in to change notification settings - Fork 3k
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]: Model selection from settings is ignored (OpenAIException - Error code: 401) #1261
Comments
Of course works if you run with:
But it shouldn't expose settings that doesn't work! |
Just to clarify, please: you say you chose model in settings, but in the reproduction steps it's only set key and run? The app has some fallback if you set nothing as model. It should work with the UI choice if you made it. Was it a different run? |
@dagelf we have an Which model did you choose in the UI? |
I also have the same problem. Even if the server address of lm-studio is set in the environment variable, after starting the ui and selecting a model in the interface, it still prompts that the wrong openai key is used. new model:MaziyarPanahi/WizardLM-2-7B-GGUFgit pull
litellm.exceptions.AuthenticationError: OpenAIException - Error code: 401 - {'error': {'message': 'Incorrect API key provided: lm-studio. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} |
Hi, same run, no matter what model I choose, it always falls back on the
same model, whether its given in the environment or not.
|
Yes this looks related
|
Setting the environment variable "LLM_BASE_URL" solved the 401 problem by. |
docker run It's working. |
@zhonggegege are you running the latest version? Please use 0.4.0, the latest released version, or pull from git if that's how you're running. It might also be useful to clear your local storage in the browser, if you choose from the UI and it doesn't seem to get applied, although it shouldn't be necessary... |
@dagelf Can you please upgrade to 0.4.0? You were using 0.3.1 before. And if you're running with an UI (as you are), choose the model in the UI. |
thank you for your reply. Yes,now I am using the latest 0.4.0 and pulling the latest repository code. I've described a complete error of multiple attempts here:#1380 |
Is there an existing issue for the same bug?
Describe the bug
When I set the correct key, and choose the correct model in settings, it still tries to use GPT4 with my key to another platform.
Current Version
Installation and Configuration
Model and Agent
No response
Reproduction Steps
Logs, Errors, Screenshots, and Additional Context
The text was updated successfully, but these errors were encountered: