enable_switch_role
产品支持情况
产品 |
是否支持 |
---|---|
√ |
|
x |
|
x |
|
x |
|
x |
函数功能
配置是否支持角色平滑切换,对应底层llm.EnableSwitchRole配置项。
函数原型
1 | enable_switch_role(enable_switch_role) |
参数说明
参数名称 |
数据类型 |
取值说明 |
---|---|---|
enable_switch_role |
bool |
True:支持 False:不支持 不配置默认为不支持。 相关接口:LLMDataDist.switch_role。 |
调用示例
1 2 3 | from llm_datadist import LLMConfig llm_config = LLMConfig() llm_config.enable_switch_role = True |
返回值
正常情况下无返回值。
参数错误可能抛出TypeError或ValueError。
约束说明
无
父主题: LLMConfig