mirror of
https://github.com/openai/codex.git
synced 2026-11-02 16:20:35 +00:00
Add model availability NUX metadata (#12972)
- replace show_nux with structured availability_nux model metadata - expose availability NUX data through the app-server model API - update shared fixtures and tests for the new field
This commit is contained in:
1 parent
f53612d3b2
commit
4d180ae428
20 files changed
+148
-46
No files matched your search
@@ -32,6 +32,7 @@ fn model_from_preset(preset: ModelPreset) -> Model {
|
||||
model_link: upgrade.model_link.clone(),
|
||||
migration_markdown: upgrade.migration_markdown.clone(),
|
||||
}),
|
||||
availability_nux: preset.availability_nux.map(Into::into),
|
||||
display_name: preset.display_name.to_string(),
|
||||
description: preset.description.to_string(),
|
||||
hidden: !preset.show_in_picker,
|
||||
|
||||
Reference in new issue
Block a user