-
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]: [langchain] missing api key #8497
Labels
bug
Something isn't working
Comments
|
this commit fix this |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Short description of current behavior
When I create an ML_ENGINE with langchain version 0.0.303, whether adding api_key, openai_api_key, or nothing, and then create a model using this ML_ENGINE, it returns an error indicating that the api_key or openai_api_key is missing.
I am using the staging branch in its latest version, and from this branch, I generate a docker as indicated by the mindsdb.Dockerfile.
[langchain_engine/tool_based_agent]: setup_tools() missing 1 required positional argument: 'openai_api_key'
[langchain_engine/tool_based_agent]: Missing API key api_key. Either re-create this ML_ENGINE specifying the api_key parameter, o[langchain_engine/tool_based_agent]: Missing API key api_key. Either re-create this ML_ENGINE specifying the api_key parameter, or re-create this model and pass the API key with USING syntax.r re-create this model and pass the API key with USING syntax.
Video or screenshots
Expected behavior
It is expected that by entering the openai api_key either in the ML_ENGINE or in the MODEL, it will not give an error that either openai_api_key or api_key is missing.
How to reproduce the error
Anything else?
No response
The text was updated successfully, but these errors were encountered: