Skip to content

[Bug] 调用mcp工具时,执行模型调用时出错 #410

Description

@czhcc

出了什么问题?(必填,附截图)

Image Image

调试跟踪时,看到的错误信息:
400 Bad Request from PosT https://coding.dashscope.aliyuncs.com/v1/chat/completionsView","message":"<400>I BadRequest I {"error":{"code":"invalid_parameter_errorsInternalError.Algo.InvalidParameter: The "function.arguments" parameter of the .scode model must be in JSoN format.", "param":null,"type":"invalid_request_error"},2"request_id":"ace87330-1958-934b-93f9-a72bfd324ad5"}

怎么复现?(必填,编号步骤)

不好复现。原因大概是虽然mcp工具返回的内容是json结构,但框架内会处理成字符串。造成再调用模型时,说是json格式错。

影响模块(选填,多选)

No response

环境(必填,一行)

v1.7.0-SNAPSHOT

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions