ccproxy.llms.formatters.common.identifiers¶
ccproxy.llms.formatters.common.identifiers
¶
Identifier helpers shared across formatter adapters.
normalize_suffix
¶
Return the suffix part of an identifier split on the first underscore.
ensure_identifier
¶
Return a stable identifier and suffix for the given prefix.
If an existing identifier already matches the prefix we reuse its suffix.
Existing identifiers that begin with resp_ are also understood so both
resp and alternate prefixes can build consistent derived identifiers.