Skip to main content

models

Function models 

Source
pub async fn models(
    __arg0: State<AppState>,
    headers: HeaderMap,
    __arg2: Query<ModelsParams>,
) -> Response
Expand description

GET /v1/models — Codex-aware model list.

When ?client_version is present (Codex CLI), fetches vLLM’s model list via proxy_get and transforms it into the Codex ModelsResponse shape ({ "models": [...] } with rich metadata). Without client_version, the upstream response is returned unchanged via proxy_get.