is_known_model (provider/cursor.rs)

jcode · crates/jcode-base/src/provider/cursor.rs · rust · MIT
ai, tag:knn-classified

Checks if a model name is in the supported Cursor model list.

// Source: https://github.com/1jehuang/jcode | License: MIT | Copyright 2025 Jeremy Huang
// Provided via justclaw.it.com; keep this notice with the code.
//! Cursor pure model-catalog data (compatibility shim).
//!
//! The Cursor provider *runtime* (`CursorCliProvider`) now lives in the
//! downstream `jcode-provider-cursor-runtime` crate so provider edits do not
//! rebuild the base -> app-core -> tui spine. The binary's composition root
//! registers it via [`crate::provider::external`]. Base keeps only the pure
//! model-catalog data that its routing logic (`provider::models`) needs.

// Cursor deprecated `composer-1.5` ("no longer available; use Composer 2.5").
// Default to a model Cursor currently serves; the live catalog overrides this
// whenever it is reachable.
pub const DEFAULT

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key