产品 |
是否支持 |
---|---|
√ |
|
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。
无