vtcode_config/models/mod.rs
1//! Model configuration and identification module
2//!
3//! This module provides a centralized enum for model identifiers and their configurations,
4//! replacing hardcoded model strings throughout the codebase for better maintainability.
5//! Read the model list in `docs/models.json`.
6
7mod errors;
8mod model_id;
9mod openrouter;
10mod provider;
11
12pub use errors::ModelParseError;
13pub use model_id::{
14 ModelCatalogEntry, ModelId, ModelPricing, catalog_provider_keys, model_catalog_entry,
15 supported_models_for_provider,
16};
17pub use openrouter::OpenRouterMetadata;
18pub use openrouter::openrouter_generated;
19pub use provider::Provider;
20
21#[cfg(test)]
22mod tests;