magic icon indicating copy to clipboard operation
magic copied to clipboard

call_with_tool_support Error 导致任务执行中断

Open sunkaichun opened this issue 7 months ago • 1 comments

Image

大模型返回结果提示为: openai.BadRequestError: Error code: 400 - {'error': {'message': "An assistant message with 'tool_calls' must be followed by tool messages responding to each 'tool_call_id'. The following tool_call_ids did not have response messages: call_F8DVtoeK7vwW45NL8UBYtVX2", 'type': 'invalid_request_error', 'param': 'messages', 'code': None}}

该异常会导致任务中断

sunkaichun avatar May 22 '25 09:05 sunkaichun

更新到最新版本的镜像试试? 更新方式:1、执行./bin/magic.sh stop, 和删除本地的super-magic、magic-service 的镜像(由于做了持久化,数据不会丢失),2、执行./bin/magic.sh start

Rock-520 avatar Jun 13 '25 03:06 Rock-520