mirror of
https://github.com/openai/codex.git
synced 2026-05-14 16:22:51 +00:00
## Why The model list needs to carry display-ready service tier metadata so clients can render tier choices with stable IDs, names, and descriptions. A raw speed-tier string list is not enough for richer UI copy or future tier labels. ## What changed - Added `ModelServiceTier` to shared model metadata with string `id`, `name`, and `description` fields. - Added `service_tiers` to `ModelInfo` and `ModelPreset`, preserving empty defaults for older cached model payloads. - Exposed `serviceTiers` on app-server v2 `Model` responses and threaded it through TUI app-server model conversion. - Marked legacy `additional_speed_tiers` / `additionalSpeedTiers` metadata as deprecated in source and generated schema output. - Regenerated app-server protocol JSON schema and TypeScript fixtures, including `ModelServiceTier.ts`. ## Verification - Ran `just write-app-server-schema`. - Did not run local tests per repo instruction; relying on PR CI. --------- Co-authored-by: Codex <noreply@openai.com>
227 lines
4.7 KiB
JSON
Generated
227 lines
4.7 KiB
JSON
Generated
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"definitions": {
|
|
"InputModality": {
|
|
"description": "Canonical user-input modality tags advertised by a model.",
|
|
"oneOf": [
|
|
{
|
|
"description": "Plain text turns and tool payloads.",
|
|
"enum": [
|
|
"text"
|
|
],
|
|
"type": "string"
|
|
},
|
|
{
|
|
"description": "Image attachments included in user turns.",
|
|
"enum": [
|
|
"image"
|
|
],
|
|
"type": "string"
|
|
}
|
|
]
|
|
},
|
|
"Model": {
|
|
"properties": {
|
|
"additionalSpeedTiers": {
|
|
"default": [],
|
|
"description": "Deprecated: use `serviceTiers` instead.",
|
|
"items": {
|
|
"type": "string"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"availabilityNux": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ModelAvailabilityNux"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
},
|
|
"defaultReasoningEffort": {
|
|
"$ref": "#/definitions/ReasoningEffort"
|
|
},
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"displayName": {
|
|
"type": "string"
|
|
},
|
|
"hidden": {
|
|
"type": "boolean"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"inputModalities": {
|
|
"default": [
|
|
"text",
|
|
"image"
|
|
],
|
|
"items": {
|
|
"$ref": "#/definitions/InputModality"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"isDefault": {
|
|
"type": "boolean"
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"serviceTiers": {
|
|
"default": [],
|
|
"items": {
|
|
"$ref": "#/definitions/ModelServiceTier"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"supportedReasoningEfforts": {
|
|
"items": {
|
|
"$ref": "#/definitions/ReasoningEffortOption"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"supportsPersonality": {
|
|
"default": false,
|
|
"type": "boolean"
|
|
},
|
|
"upgrade": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"upgradeInfo": {
|
|
"anyOf": [
|
|
{
|
|
"$ref": "#/definitions/ModelUpgradeInfo"
|
|
},
|
|
{
|
|
"type": "null"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"defaultReasoningEffort",
|
|
"description",
|
|
"displayName",
|
|
"hidden",
|
|
"id",
|
|
"isDefault",
|
|
"model",
|
|
"supportedReasoningEfforts"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"ModelAvailabilityNux": {
|
|
"properties": {
|
|
"message": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"message"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"ModelServiceTier": {
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"id": {
|
|
"type": "string"
|
|
},
|
|
"name": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"required": [
|
|
"description",
|
|
"id",
|
|
"name"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"ModelUpgradeInfo": {
|
|
"properties": {
|
|
"migrationMarkdown": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"model": {
|
|
"type": "string"
|
|
},
|
|
"modelLink": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
},
|
|
"upgradeCopy": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"model"
|
|
],
|
|
"type": "object"
|
|
},
|
|
"ReasoningEffort": {
|
|
"description": "See https://platform.openai.com/docs/guides/reasoning?api-mode=responses#get-started-with-reasoning",
|
|
"enum": [
|
|
"none",
|
|
"minimal",
|
|
"low",
|
|
"medium",
|
|
"high",
|
|
"xhigh"
|
|
],
|
|
"type": "string"
|
|
},
|
|
"ReasoningEffortOption": {
|
|
"properties": {
|
|
"description": {
|
|
"type": "string"
|
|
},
|
|
"reasoningEffort": {
|
|
"$ref": "#/definitions/ReasoningEffort"
|
|
}
|
|
},
|
|
"required": [
|
|
"description",
|
|
"reasoningEffort"
|
|
],
|
|
"type": "object"
|
|
}
|
|
},
|
|
"properties": {
|
|
"data": {
|
|
"items": {
|
|
"$ref": "#/definitions/Model"
|
|
},
|
|
"type": "array"
|
|
},
|
|
"nextCursor": {
|
|
"description": "Opaque cursor to pass to the next call to continue after the last item. If None, there are no more items to return.",
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"data"
|
|
],
|
|
"title": "ModelListResponse",
|
|
"type": "object"
|
|
} |