Skip to content

[Bug] Using non-streaming parameters when using MCP will return an error #4363

Description

@HunterWangwei

Contact Information

43551096@qq.com

MaxKB Version

v2.3.1 (build at 2025-11-12T18:45, commit: c78e0f1)

Problem Description

stream: false 且启用 MCP 时会返回报错
{
"code": 500,
"message": "成功",
"data": {
"chat_id": "019a83f6-97fb-7350-be6f-66df013c8c39",
"id": "019a83f9-be30-7d70-96cc-949d64730b16",
"operate": true,
"content": "Exception:'generator' object has no attribute 'content'",
"is_end": true,
"completion_tokens": 0,
"prompt_tokens": 0
}
}

stream: true 时可以正常返回

Steps to Reproduce

{
"message": "你",
"stream":false,
"re_chat": true
}

The expected correct result

No response

Related log output

Additional Information

No response

Activity

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions