| 1 | //! Named model aliases and curated rosters. |
| 2 | //! Provider default seeds are generated from the shared descriptor owner; |
| 3 | //! model aliases and completion rosters are generated from the same reviewed catalog. |
| 4 | |
| 5 | pub use codewhale_config::catalog::reviewed::constants::*; |
| 6 | pub use codewhale_config::descriptors::defaults::*; |
| 7 | |
| 8 | pub const XIAOMI_MIMO_PAY_AS_YOU_GO_BASE_URL: &str = "https://api.xiaomimimo.com/v1"; |
| 9 | |
| 10 | pub const XIAOMI_MIMO_TOKEN_PLAN_CN_BASE_URL: &str = "https://token-plan-cn.xiaomimimo.com/v1"; |
| 11 | pub const XIAOMI_MIMO_TOKEN_PLAN_SGP_BASE_URL: &str = DEFAULT_XIAOMI_MIMO_BASE_URL; |
| 12 | pub const XIAOMI_MIMO_TOKEN_PLAN_AMS_BASE_URL: &str = "https://token-plan-ams.xiaomimimo.com/v1"; |
| 13 | |
| 14 | pub const KIMI_CODE_MEMBERSHIP_PLAN_CONSOLE_URL: &str = |
| 15 | codewhale_config::provider::KIMI_CODE_MEMBERSHIP_PLAN_CONSOLE_URL; |
| 16 | // The K3 contract constants (`KIMI_CODE_K3_CONTEXT_WINDOW_TOKENS`, |
| 17 | // `KIMI_K3_CONTEXT_WINDOW_TOKENS`, and the distinct default/direct output |
| 18 | // limits) retain the existing `codewhale_models` typed contract. Intrinsic |
| 19 | // projections use the reviewed catalog; route floors remain Rust policy. |
| 20 | // Re-export only the route-owned floor, which existing `crate::config` call |
| 21 | // sites import. |
| 22 | pub use codewhale_models::KIMI_CODE_K3_CONTEXT_WINDOW_TOKENS; |
| 23 | |
| 24 | /// True when `model` is the pre-refresh local-Ollama placeholder, not a tag. |
| 25 | #[must_use] |
| 26 | pub fn is_unresolved_local_ollama_model(model: &str) -> bool { |
| 27 | model.trim().eq_ignore_ascii_case(DEFAULT_OLLAMA_MODEL) |
| 28 | } |
| 29 | |
| 30 | /// Conservative offline floor for an OAuth model absent from a fresh Codex |
| 31 | /// roster. Fresh account-scoped cache metadata overrides this in route_runtime. |
| 32 | pub const OPENAI_CODEX_EFFECTIVE_CONTEXT_WINDOW_TOKENS: u32 = 128_000; |
| 33 | |
| 34 | pub use codewhale_config::opencode_go_models; |
| 35 |