-
Notifications
You must be signed in to change notification settings - Fork 845
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
部署后测试提问‘你好’出现错误 #400
Comments
经过我测试发现 openai functions 和 function_call 将要废弃,指定function_call,返回然是messages响应. tools 不会出现这种情况
|
Issue Description / 问题描述
按照文档正常配置openai 秘钥代理地址,ui websocket 都正常,
Error Screenshots or Logs / 错误截图或日志
Traceback (most recent call last): File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgentServer/server.py", line 104, in interact task_handler.outer_loop() File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/workflow/task_handler.py", line 82, in outer_loop self.plan_agent.initial_plan_generation( File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/workflow/plan_exec.py", line 164, in initial_plan_generation new_message , _ = agent.parse( File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/agent/plan_generate_agent/agent.py", line 49, in parse return self.generate( File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/agent/base_agent.py", line 121, in generate response = objgenerator.chatcompletion( File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 289, in wrapped_f return self(f, *args, **kw) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 379, in __call__ do = self.iter(retry_state=retry_state) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 314, in iter return fut.result() File "/root/miniconda3/envs/xagent/lib/python3.10/concurrent/futures/_base.py", line 451, in result return self.__get_result() File "/root/miniconda3/envs/xagent/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result raise self._exception File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 382, in __call__ result = fn(*args, **kwargs) File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/ai_functions/request/obj_generator.py", line 66, in chatcompletion raise e File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/ai_functions/request/obj_generator.py", line 60, in chatcompletion response = self._get_chatcompletion_request_func(request_type)(**kwargs) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 289, in wrapped_f return self(f, *args, **kw) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 379, in __call__ do = self.iter(retry_state=retry_state) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 314, in iter return fut.result() File "/root/miniconda3/envs/xagent/lib/python3.10/concurrent/futures/_base.py", line 451, in result return self.__get_result() File "/root/miniconda3/envs/xagent/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result raise self._exception File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/tenacity/__init__.py", line 382, in __call__ result = fn(*args, **kwargs) File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/ai_functions/request/openai.py", line 209, in chatcompletion_request raise e File "/mnt/fileserver/chat_x/xagentdemo/XAgent/XAgent/ai_functions/request/openai.py", line 177, in chatcompletion_request completions = client.chat.completions.create(**chatcompletion_kwargs) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/openai/_utils/_utils.py", line 277, in wrapper return func(*args, **kwargs) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/openai/resources/chat/completions.py", line 579, in create return self._post( File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/openai/_base_client.py", line 1232, in post return cast(ResponseT, self.request(cast_to, opts, stream=stream, stream_cls=stream_cls)) File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/openai/_base_client.py", line 921, in request return self._request( File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/openai/_base_client.py", line 997, in _request return self._retry_request( File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/openai/_base_client.py", line 1045, in _retry_request return self._request( File "/root/miniconda3/envs/xagent/lib/python3.10/site-packages/openai/_base_client.py", line 1012, in _request raise self._make_status_error_from_response(err.response) from None openai.BadRequestError: Error code: 400 - {'error': {'message': "Invalid schema for function 'subtask_split_operation': In context=('properties', 'subtasks'), array schema missing items (request id: 202404301152115450544920156385)", 'type': 'invalid_request_error', 'param': '', 'code': None}}
Additional Notes / 其他备注
centos7
docker-compose 部署
The text was updated successfully, but these errors were encountered: