Comments (2)
2023-12-11 11:27:26 The above exception was the direct cause of the following exception:
2023-12-11 11:27:26
2023-12-11 11:27:26 Traceback (most recent call last):
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/integrations/libs/ml_exec_base.py", line 283, in predict
2023-12-11 11:27:26 predictions = task.result()
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result
2023-12-11 11:27:26 return self.__get_result()
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
2023-12-11 11:27:26 raise self._exception
2023-12-11 11:27:26 RuntimeError: setup_tools() missing 1 required positional argument: 'openai_api_key'
2023-12-11 11:27:26
2023-12-11 11:27:26 The above exception was the direct cause of the following exception:
2023-12-11 11:27:26
2023-12-11 11:27:26 Traceback (most recent call last):
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/http/namespaces/sql.py", line 47, in post
2023-12-11 11:27:26 result = mysql_proxy.process_query(query)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/utilities/profiler/profiler.py", line 138, in wrapper
2023-12-11 11:27:26 result = function(*args, **kwargs)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/mysql_proxy.py", line 525, in process_query
2023-12-11 11:27:26 executor.query_execute(sql)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/utilities/profiler/profiler.py", line 138, in wrapper
2023-12-11 11:27:26 result = function(*args, **kwargs)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/executor/executor.py", line 115, in query_execute
2023-12-11 11:27:26 self.do_execute()
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/utilities/profiler/profiler.py", line 138, in wrapper
2023-12-11 11:27:26 result = function(*args, **kwargs)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/executor/executor.py", line 212, in do_execute
2023-12-11 11:27:26 ret = self.command_executor.execute_command(self.query)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/utilities/profiler/profiler.py", line 138, in wrapper
2023-12-11 11:27:26 result = function(*args, **kwargs)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/executor/executor_commands.py", line 619, in execute_command
2023-12-11 11:27:26 query = SQLQuery(statement, session=self.session)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 460, in __init__
2023-12-11 11:27:26 self.execute_query()
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 690, in execute_query
2023-12-11 11:27:26 raise e
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 684, in execute_query
2023-12-11 11:27:26 data = self.execute_step(step, steps_data)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/classes/sql_query.py", line 873, in execute_step
2023-12-11 11:27:26 predictions = project_datanode.predict(
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/api/mysql/mysql_proxy/datahub/datanodes/project_datanode.py", line 66, in predict
2023-12-11 11:27:26 return handler.predict(model_name, data, project_name=self.project.name, version=version, params=params)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/utilities/profiler/profiler.py", line 138, in wrapper
2023-12-11 11:27:26 result = function(*args, **kwargs)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/utilities/functions.py", line 71, in wrapper
2023-12-11 11:27:26 return func(*args, **kwargs)
2023-12-11 11:27:26 File "/usr/local/lib/python3.10/site-packages/mindsdb/integrations/libs/ml_exec_base.py", line 289, in predict
2023-12-11 11:27:26 raise MLEngineException(msg) from e
2023-12-11 11:27:26 mindsdb.integrations.libs.ml_exec_base.MLEngineException: [langchain_engine/tool_based_agent]: setup_tools() missing 1 required positional argument: 'openai_api_key'
from mindsdb.
this commit fix this
from mindsdb.
Related Issues (20)
- [Bug]: `DESCRIBE` is not working for openai model in `error` status
- [Bug]: Cannot `describe` model if ml engine is not working
- [Bug]: Error if `JOIN` model with empty data
- Should not be possible to create a ml_engine with an invalid api key
- [Docs]: Update Agents REST API Docs
- [Docs]: Update Agents SQL Docs
- Trigger functionality for Clickhose
- Refactor New GEMini handler code HOT 2
- Refactor agent initialization in langchain handler
- [Bug]: [lightwood/1]: 'NoneType' object is not callable HOT 2
- Unify RAG Implementation
- Langchain Refactor
- [Bug]: `file` handler depend on `langchain_community`, but it should be optional dependency
- [Bug]: ORDER BY does not work
- [Bug]: `files` handler is not permanent
- [Bug]: Twelvelabs integration error on get index
- [Integration]: Ollama on Linux HOT 3
- [Bug]: Anomaly detection model errors HOT 2
- [Docs APIs]: Update the OpenAPI Specs
- [Bug]: Unable to run simple query and connect to MYSQL, and Yugabyte HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mindsdb.