mirror of
https://github.com/openai/codex.git
synced 2026-10-23 18:08:45 +00:00
Preserve annotations when omitting unsupported media (#40277)
## What changed - Render omitted image and audio inputs as contextual fragments tagged with `images.unsupported` and `audio.unsupported` content kinds. - Normalize message media through annotated content so metadata for surrounding content remains intact when switching to a model without media support. ## Testing - Extend history and model-switching tests to verify content-kind annotations before and after unsupported media is replaced. GitOrigin-RevId: 4ee6577f8b78bd5a850ee01ea9d4590c20272850
This commit is contained in:
@@ -11312,7 +11312,7 @@ async fn sample_rollout(
|
||||
|
||||
(
|
||||
rollout_items,
|
||||
live_history.for_prompt(&reconstruction_turn.model_info.input_modalities),
|
||||
strip_metadata_from_items(&raw_history_items(&live_history)),
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user