Skip to content

使用阿里百炼的Qwen3系列模型时需要修改下源码 #414

@lizz0725

Description

@lizz0725

Qwen3 、Qwen3-Omni-Flash、Qwen3-VL模型。这些模型,需要额外传递 enable_thinking 参数,不然会报错。参数样例:extra_body={"enable_thinking": True/False}.

涉及修改的python代码,代码: genie_tool/util/llm_util.py , 代码参考下面的评论。 修改片段 起始到终止为止:

# --- 兼容qwen3模型 修改部分开始 ---

# --- 修改部分结束 ---

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions