mirror of
https://github.com/openai/codex.git
synced 2026-04-29 02:41:12 +03:00
feat(core): support custom model aliases in config.toml
Preserve custom model alias support on the current origin/main base and collapse the branch back to a single commit for easier future restacks.
This commit is contained in:
@@ -606,6 +606,34 @@
|
||||
},
|
||||
"type": "object"
|
||||
},
|
||||
"CustomModelToml": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"model": {
|
||||
"description": "Provider-facing model slug used on API requests.",
|
||||
"type": "string"
|
||||
},
|
||||
"model_auto_compact_token_limit": {
|
||||
"description": "Optional auto-compaction token limit override applied when this alias is selected.",
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"model_context_window": {
|
||||
"description": "Optional context window override applied when this alias is selected.",
|
||||
"format": "int64",
|
||||
"type": "integer"
|
||||
},
|
||||
"name": {
|
||||
"description": "User-facing alias shown in the model picker.",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"model",
|
||||
"name"
|
||||
],
|
||||
"type": "object"
|
||||
},
|
||||
"FeedbackConfigToml": {
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
@@ -1930,6 +1958,14 @@
|
||||
"description": "Compact prompt used for history compaction.",
|
||||
"type": "string"
|
||||
},
|
||||
"custom_models": {
|
||||
"default": [],
|
||||
"description": "User-defined model aliases that can override model context settings.",
|
||||
"items": {
|
||||
"$ref": "#/definitions/CustomModelToml"
|
||||
},
|
||||
"type": "array"
|
||||
},
|
||||
"default_permissions": {
|
||||
"description": "Default named permissions profile to apply from the `[permissions]` table.",
|
||||
"type": "string"
|
||||
|
||||
Reference in New Issue
Block a user