enable_switch_role
Applicability
Product |
Supported (Yes/No) |
|---|---|
Atlas 350 Accelerator Card |
No |
Yes |
|
Yes |
|
No |
|
No |
|
No |
Note: For the
Function Description
Enables or disables smooth role switchover, corresponding to the underlying llm.EnableSwitchRole configuration item.
Prototype
1 | enable_switch_role(self, enable_switch_role: bool) |
Parameters
Parameter |
Data Type |
Description |
|---|---|---|
enable_switch_role |
bool |
Whether to enable role switchover.
If not configured, the parameter defaults to False. Related API: switch_role |
Example
1 2 3 | from llm_datadist import LLMConfig llm_config = LLMConfig() llm_config.enable_switch_role = True |
Returns
In normal cases, no value is returned.
If a parameter is incorrect, a TypeError or ValueError may be thrown.
Constraints
None