-
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
issue with langflow 1.0.19 #4160
Comments
The error message you're encountering indicates that the Sequential Crew node is not recognizing the API key for your OpenAI-compatible LLM, resulting in an authentication error. This issue seems to be specific to the Sequential Crew node, as other nodes like the OpenAI node are working correctly with the same API key. In Langflow 1.19, the Sequential Crew node retrieves and uses the API key by accepting it as a parameter in the To troubleshoot this issue, you can:
If the problem persists, it might be worth checking if there are any recent changes or updates in the Langflow repository that could affect the authentication process for the Sequential Crew node. |
as i said it was working in previous version with the exact setup and in other node i dont have any issue |
seems to be related to this fix #4150 |
thanks |
By the way I was able to reproduce this same scenario with langflow v1.0.18 and the sequential crew component with memory enabled. The error message is the same except it says |
Hi, thanks i think this is an issue with crewai and the memory component enabled, |
Yeah more specifically crewai's memory feature tries to use embeddings from openai and expects the api key to be set via env var. |
This should now be addressed in the latest main. Could you confirm @michelgirault ? The credentials of the agents are auto-detected - with the catch being that we don't necessarily have a FULLY general solution to figure out the embedding model credentials and how it is referenced when it is passed to the agent. So this has been tested with OpenAI and other common models, but there may be more to do to better support less commonly use models. |
i will check and get back to you, thanks for following up |
Thanks @michelgirault ! |
Bug Description
the node agent: Sequential Crew does not recognize anymore my openai compatible llm (llama 3)
in previous version i did not face this issue, i tried a few other agent, same error message, now if i use the node openai with other node, i dont have any problems
the error message:
Error building Component Sequential Crew: 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
error message as provided with an issue about the api key used
Who can help?
No response
Operating System
ubuntu 22.04
Langflow Version
1.19
Python Version
3.10
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: