Skip to content

[错误]: MCP不识别部分 tool_call 模型 #3627

Closed
@yshumy

Description

@yshumy

提交前检查

  • 我理解 Issue 是用于反馈和解决问题的,而非吐槽评论区,将尽可能提供更多信息帮助问题解决。
    我已经查看了置顶 Issue 并搜索了现有的 开放Issue已关闭Issue,没有找到类似的问题。
    我填写了简短且清晰明确的标题,以便开发者在翻阅 Issue 列表时能快速确定大致问题。而不是“一个建议”、“卡住了”等。

平台

macOS

版本

v1.1.8

错误描述

MCP不识别这个 tool_call 模型。

输入栏没有出现MCP按钮。

Image

重现步骤

加载本地模型:qwen2.5-0.5b-instruct-mlx(This model has been trained for tool use)

预期行为

MCP不识别这个 tool_call 模型。输入栏没有出现MCP按钮。(This model has been trained for tool use)

相关日志输出

附加信息

No response

Activity

added
kind/bugCategorizes issue or PR as related to a bug
on Mar 19, 2025
DeJeune

DeJeune commented on Mar 19, 2025

@DeJeune
Collaborator

自己手动给它打标签

yshumy

yshumy commented on Mar 19, 2025

@yshumy
Author

自己手动给它打标签

现在是能识别了,但是不能用sqlite服务器功能。说了句开始搜索,就没有下文了,直接结束,不返回要求的内容。

DeJeune

DeJeune commented on Mar 19, 2025

@DeJeune
Collaborator

自己手动给它打标签

现在是能识别了,但是不能用sqlite服务器功能。说了句开始搜索,就没有下文了,直接结束,不返回要求的内容。

具体报错是什么?0.5b大概率不能干这个,起码得7b

yshumy

yshumy commented on Mar 19, 2025

@yshumy
Author

自己手动给它打标签

现在是能识别了,但是不能用sqlite服务器功能。说了句开始搜索,就没有下文了,直接结束,不返回要求的内容。

具体报错是什么?0.5b大概率不能干这个,起码得7b

14b的也没成功sqlite.

DeJeune

DeJeune commented on Mar 19, 2025

@DeJeune
Collaborator

自己手动给它打标签

现在是能识别了,但是不能用sqlite服务器功能。说了句开始搜索,就没有下文了,直接结束,不返回要求的内容。

具体报错是什么?0.5b大概率不能干这个,起码得7b

14b的也没成功sqlite.

ctrl shift i 看下控制台和网络请求

mzx2689

mzx2689 commented on Mar 19, 2025

@mzx2689
Contributor

我试了一下,这个似乎是 LM Studio 的问题,没有正确处理工具调用。

截一部分 Response:

data: {"id":"chatcmpl-m18o33dw2hd4flg9jwgkr3","object":"chat.completion.chunk","created":1742406178,"model":"qwen2.5-7b-1m-mlx","system_fingerprint":"qwen2.5-7b-1m-mlx","choices":[{"index":0,"delta":{"tool_calls":[{"index":0,"type":"function","function":{"name":"","arguments":"}"}}]},"logprobs":null,"finish_reason":null}]}

data: {"id":"chatcmpl-m18o33dw2hd4flg9jwgkr3","object":"chat.completion.chunk","created":1742406178,"model":"qwen2.5-7b-1m-mlx","system_fingerprint":"qwen2.5-7b-1m-mlx","choices":[{"index":0,"delta":{},"logprobs":null,"finish_reason":"stop"}]}

data: [DONE]

给的 finish_reasonstop,就没有调用工具,直接结束了。

Image

正常应该是 tool_calls

data: {"choices":[{"delta":{"tool_calls":[{"function":{"arguments":"}"},"index":0,"id":"","type":"function"}]},"index":0}],"object":"chat.completion.chunk","usage":null,"created":1742406564,"system_fingerprint":null,"model":"qwen-max-latest","id":"chatcmpl-fdbba430-0370-9543-959d-c206bcd09e00"}

data: {"choices":[{"finish_reason":"tool_calls","delta":{},"index":0,"logprobs":null}],"object":"chat.completion.chunk","usage":null,"created":1742406564,"system_fingerprint":null,"model":"qwen-max-latest","id":"chatcmpl-fdbba430-0370-9543-959d-c206bcd09e00"}

data: [DONE]
mzx2689

mzx2689 commented on Mar 19, 2025

@mzx2689
Contributor
added
sig/MCPCategorizes an issue or PR as relevant to SIG MCP
on Mar 20, 2025
vaayne

vaayne commented on Mar 20, 2025

@vaayne
Collaborator

我感觉可以 fix 一下这个,主要还是这些模型不大规范,推荐使用 GPT/Claude/Gemini/Qwen 系列模型

vaayne

vaayne commented on Mar 20, 2025

@vaayne
Collaborator

Image

FHBOL

FHBOL commented on Mar 20, 2025

@FHBOL

Image
好像识别不了意图

vaayne

vaayne commented on Mar 20, 2025

@vaayne
Collaborator

换更好的模型 @FHBOL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bugsig/MCPCategorizes an issue or PR as relevant to SIG MCP

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @vaayne@mzx2689@DeJeune@yshumy@FHBOL

      Issue actions

        [错误]: MCP不识别部分 tool_call 模型 · Issue #3627 · CherryHQ/cherry-studio