mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Embed friendly instructions in bundled GPT-5.4 and GPT-5.5 (#44930)
## What changed Replace the selectable personality templates in the bundled `gpt-5.4` and `gpt-5.5` definitions with fixed friendly instructions. Personality selection becomes unavailable for these models in the TUI, and submitted turns omit the personality override. Remove personality overrides from Python SDK examples and the walkthrough notebook. ## Testing Update core and TUI tests to cover fixed friendly instructions, ignored pragmatic updates, unavailable personality selection, and omitted turn overrides. Preserve coverage for selectable personalities in legacy catalogs, and add coverage for resumed legacy sessions and explicit empty instruction overrides. GitOrigin-RevId: 869a71445584272405fcbd1325efc31c224808c8
This commit is contained in:
1 parent
16491f7f70
commit
c18277043e
13 files changed
+270
-509
No files matched your search
@@ -4,6 +4,9 @@ use std::sync::LazyLock;
|
||||
|
||||
use codex_models_manager::bundled_models_response;
|
||||
use codex_protocol::openai_models::ModelPreset;
|
||||
use codex_protocol::openai_models::ReasoningEffort;
|
||||
use codex_protocol::openai_models::ReasoningEffortPreset;
|
||||
use codex_protocol::openai_models::default_input_modalities;
|
||||
pub(crate) use codex_utils_absolute_path::test_support::PathBufExt;
|
||||
pub(crate) use codex_utils_absolute_path::test_support::test_path_buf;
|
||||
use serde::Serialize;
|
||||
@@ -18,6 +21,34 @@ pub(crate) static TEST_MODEL_PRESETS: LazyLock<Vec<ModelPreset>> = LazyLock::new
|
||||
presets
|
||||
});
|
||||
|
||||
/// A legacy catalog entry whose personality remains selectable, independent of bundled models.
|
||||
pub(crate) fn legacy_personality_model_preset() -> ModelPreset {
|
||||
ModelPreset {
|
||||
id: "legacy-personality-model".to_string(),
|
||||
model: "legacy-personality-model".to_string(),
|
||||
display_name: "Legacy personality model".to_string(),
|
||||
description: "Test model with selectable personalities.".to_string(),
|
||||
model_specialty: None,
|
||||
default_reasoning_effort: ReasoningEffort::Medium,
|
||||
supported_reasoning_efforts: vec![ReasoningEffortPreset {
|
||||
effort: ReasoningEffort::Medium,
|
||||
description: "medium".to_string(),
|
||||
}],
|
||||
supports_personality: true,
|
||||
additional_speed_tiers: Vec::new(),
|
||||
service_tiers: Vec::new(),
|
||||
default_service_tier: None,
|
||||
available_access_programs: None,
|
||||
is_default: false,
|
||||
upgrade: None,
|
||||
show_in_picker: true,
|
||||
multi_agent_version: None,
|
||||
availability_nux: None,
|
||||
supported_in_api: true,
|
||||
input_modalities: default_input_modalities(),
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn test_path_display(path: &str) -> String {
|
||||
test_path_buf(path).display().to_string()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user