-
SummaryPlease support configuring model aliases that automatically map to a base model plus a predefined thinking/reasoning level. Example:
Current behaviorCLIProxyAPI already supports:
However, there is currently no native config mechanism to declare aliases like:
and have them automatically inject the corresponding thinking/reasoning config. For Why this is usefulSome clients only work well with plain model names and do not conveniently support the Model aliases such as
Expected behaviorAllow configuration like this (example only): codex-api-key:
- api-key: "..."
base-url: "..."
models:
- name: "gpt-5.4"
alias: "gpt-5.4-low"
reasoning-effort: "low"
- name: "gpt-5.4"
alias: "gpt-5.4-medium"
reasoning-effort: "medium"
- name: "gpt-5.4"
alias: "gpt-5.4-high"
reasoning-effort: "high"
or a generic alias mapping mechanism such as:
model-aliases:
- alias: "gpt-5.4-low"
target: "gpt-5.4"
reasoning-effort: "low"
- alias: "gpt-5.4-medium"
target: "gpt-5.4"
reasoning-effort: "medium"
- alias: "gpt-5.4-high"
target: "gpt-5.4"
reasoning-effort: "high"
## Expected result
- these aliases should appear in /v1/models
- requests using these aliases should route to the base model
- the configured thinking/reasoning setting should be injected automatically
- this should work without requiring the client to use gpt-5.4(low) syntax
## Notes
At the moment this can only be approximated by combining:
- alias registration in some compatibility providers
- payload override rules
But that is not a native first-class solution, especially for Codex/OpenAI model routing.
A built-in alias + reasoning mapping feature would make this much easier to use. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Use model alias with payload. codex-api-key:
- api-key: "..."
base-url: "..."
models:
- name: "gpt-5.4"
alias: "gpt-5.4-low"
payload:
override:
- models:
- name: "gpt-5.4-low"
protocol: "codex"
params:
"reasoning.effort": "low" |
Beta Was this translation helpful? Give feedback.
Use model alias with payload.