Maps cloud provider model IDs (e.g., AWS Bedrock, Google Vertex AI) to canonical model names used in the cost registry. Also passes through names that are already canonical or unknown.
Details
Resolution order:
Check the alias registry for an exact match
Check if already a canonical model name
Try regex normalization for Bedrock pattern (
provider.model-version:N)Try regex normalization for Vertex pattern (
publishers/.../models/model@date)Fall back to returning the original string unchanged