Function●Since v0.7
validate_profile_key
validate_profile_key(
key: str,
) -> NoneParameters
Validate a provider or provider:model profile registry key.
The first colon separates the provider from the complete model identifier.
Providers must not contain colons, while model identifiers may contain them;
for example, ollama:glm-5.2:cloud identifies provider ollama and model
glm-5.2:cloud.
Only the first colon is structural. The complete model identifier must be
nonempty and have no surrounding whitespace; its internal syntax belongs
to the provider. In particular, Bedrock foundation-model ARNs can contain
:: because their account component is empty.
