{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/daniloaguiarbr/sqlite-graphrag/blob/main/docs/schemas/codex-models.schema.json",
"title": "codex-models response (v1.0.69)",
"description": "Response shape of `sqlite-graphrag codex-models --json` and `codex-models --suggest <substring>`. Added in v1.0.69 as part of G33. Exposes the ChatGPT Pro OAuth model whitelist that enrich --mode codex validates against before spawning.",
"type": "object",
"properties": {
"models": {
"type": "array",
"description": "List of accepted model identifiers for ChatGPT Pro OAuth",
"items": {
"type": "string",
"enum": [
"codex-auto-review",
"gpt-5.3-codex-spark",
"gpt-5.4",
"gpt-5.4-mini",
"gpt-5.5"
]
},
"minItems": 1,
"uniqueItems": true
},
"default": {
"type": "string",
"description": "Model used when --codex-model is not passed"
},
"count": {
"type": "integer",
"minimum": 1,
"description": "Number of models in the whitelist (== models.length)"
},
"suggestion": {
"type": ["string", "null"],
"description": "When invoked with --suggest <substring>, the closest match by substring or Levenshtein; null when --suggest absent"
},
"elapsed_ms": {
"type": "integer",
"minimum": 0
}
},
"required": ["models", "default", "count", "elapsed_ms"],
"additionalProperties": false
}