Skip to main content

canonical_preset_key

Function
This function is defined in the parse_utils module.
The single spelling rule for preset names. Validation and resolution must not disagree about what counts as the same preset, so both go through here. Matching is case-insensitive, ignores surrounding whitespace, and treats -/_ as interchangeable.

Signature

Parameters

str
required
No description available.

Returns

str
The result of the operation.

Used By

Source

View on GitHub

praisonaiagents/config/parse_utils.py at line 198