mirror of
https://github.com/openai/codex.git
synced 2026-05-02 04:11:39 +03:00
Feat: add upgrade to app server modelList (#10556)
### Summary * Add model upgrade to listModel app server endpoint to support dynamically show model upgrade banner.
This commit is contained in:
@@ -22,6 +22,7 @@ fn model_from_preset(preset: ModelPreset) -> Model {
|
||||
Model {
|
||||
id: preset.id.to_string(),
|
||||
model: preset.model.to_string(),
|
||||
upgrade: preset.upgrade.map(|upgrade| upgrade.id),
|
||||
display_name: preset.display_name.to_string(),
|
||||
description: preset.description.to_string(),
|
||||
supported_reasoning_efforts: reasoning_efforts_from_preset(
|
||||
|
||||
Reference in New Issue
Block a user