Skip to content

s02-normalize_messages执行报错 #356

@OrvisShu

Description

@OrvisShu
    elif isinstance(msg.get("content"), list):
        clean["content"] = [
            {k: v for k, v in block.items()
             if not k.startswith("_")}
            for block in msg["content"]
            if isinstance(block, dict)
        ]

这段代码执行报错,无法将 block 类对象转成 dict,导致推理过程报错

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions