-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Dynamic Agent template: OpenAI key error #4395
Comments
Hey @L-Huber! 👋 I'm here to help you with any bugs, questions, or contributions for langflow. Let's work together to solve the issue you're facing. To resolve the OpenAI key error (AuthenticationError: OpenAIException - Error code: 401) when using the Dynamic Agent template in Langflow version 1.3.5, ensure that you have correctly added your OpenAI API key to the Global Variables in Langflow. Follow these steps:
Make sure that the API key is valid and correctly entered. This should resolve the authentication error [1]. |
I tried this, but it has not worked. |
Hey @L-Huber What version are you using? I just tried on the latest version 1.0.19.post2 and worked as expected. |
@carlosrcoelho just updated it to Langflow-1.0.19.post2 langflow-base-0.0.99. I even created a new openai key and tested it. But it is still not working. |
Can you share your flow? |
@L-Huber I tried to replicate it, but I didn't get the error. However, if I forget to add an API Key to a component, the error appears. |
@carlosrcoelho that is the funny thing: all previous steps until "Hierarchical Crew" work: |
I have the same issue. I think it's an error with "Hierarchical Crew" component. I tried using Groq as the LLM, and there's an issue with that too. Error building Component Hierarchical Crew: litellm.BadRequestError: LLM Provider NOT provided. Pass in the LLM provider you are trying to call. You passed model=llama-3.2-1b-preview |
@SavvySupport Do you have any solution to this? |
Hello, Same error here with sequential crew and custom base url for the llm (to use with openrouter). All previous steps work fine, llm works with other types of components (like chains). |
Same issue. |
I'm experiencing the same issue. Has anyone found a solution? I believe it might be a bug. |
Hey @L-Huber Did you try using the new version 1.1.1? Test it out and let me know. |
@carlosrcoelho I will try it out with the new version and let you know. I might actually be a version issue. |
Do you need any assistance with this case? If not, please let us know if this issue can be closed. |
@carlosrcoelho I currently cannot even upgrade my langflow version. Is this is known issue? |
Sorry to hear that. Please give a try using |
Bug Description
I currently want to expand the Dymanic Agent of langflow. However, I get the following error:
AuthenticationError: litellm.AuthenticationError: AuthenticationError: OpenAIException - Error code: 401 - {'error':
{'message': 'Incorrect API key provided: dummy. You can find your API key at
https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code':
'invalid_api_key'}}
Reproduction
Expected behavior
There should not be an error and the flow should be working
Who can help?
@ogabrielluiz @nicoloboschi @zzzming @jo
Operating System
MacOS
Langflow Version
1.3.5
Python Version
3.11
Screenshot
Flow File
No response
The text was updated successfully, but these errors were encountered: