crates/goose-providers/src/canonical/README.md
Provides a unified view of model metadata (pricing, capabilities, context limits) across different LLM providers.
Normalizes provider-specific model names (e.g., claude-3-5-sonnet-20241022)
to canonical IDs (e.g., anthropic/claude-3.5-sonnet).
Fetches latest model metadata from OpenRouter and validates provider mappings:
cargo run --bin build_canonical_models # Build and check (default)
cargo run --bin build_canonical_models --no-check # Build only, skip checker
This script performs two operations by default:
crates/goose-providers/src/canonical/data/canonical_models.json--no-check is passed) - Tests provider mappings and tracks changes over time
crates/goose-providers/src/canonical/data/canonical_mapping_report.jsonThe script is currently built from crates/goose/src/bin/build_canonical_models.rs and writes into this crate's src/canonical/data directory.