ccproxy.utils.model_mapper¶
ccproxy.utils.model_mapper
¶
Utilities for applying provider-specific model mapping rules.
MappingMatch
dataclass
¶
Result of applying a mapping rule to a model identifier.
ModelMapper
¶
Apply ordered mapping rules to model identifiers.
Source code in ccproxy/utils/model_mapper.py
map
¶
Return mapped model and matching rule, or passthrough if none match.
Source code in ccproxy/utils/model_mapper.py
add_model_alias
¶
Record a model alias mapping on the request metadata.
Source code in ccproxy/utils/model_mapper.py
restore_model_aliases
¶
Restore aliased model identifiers in response payloads.