下载
中文
注册

enable_switch_role

函数功能

配置是否支持角色平滑切换,对应底层llm.EnableSwitchRole配置项。

函数原型

enable_switch_role(enable_switch_role)

参数说明

参数名称

数据类型

取值说明

enable_switch_role

bool

True: 支持; False: 不支持,不配置默认为不支持。

相关接口:LLMDataDist.switch_role

调用示例

from llm_datadist import LLMConfig
llm_config = LLMConfig()
llm_config.enable_switch_role = True

返回值

约束说明