mirror of
https://github.com/openai/codex.git
synced 2026-11-16 22:00:36 +00:00
Gate audio history by model input modalities (#33982)
## What changed - Add `audio` to the model input modalities exposed by the protocol and generated app-server schemas. - Preserve audio in prompts for models that advertise audio input, and replace historical audio with an omission marker for models that do not. ## Testing - Cover prompt normalization with and without audio support. - Extend the model-switching integration test to verify that switching from a multimodal model to a text-only model strips prior image and audio content. GitOrigin-RevId: c18e47ad602720216303ff9abb5bca4d508391ee
This commit is contained in:
+7
@@ -11550,6 +11550,13 @@
|
||||
"image"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Audio attachments included in user turns.",
|
||||
"enum": [
|
||||
"audio"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
+7
@@ -7907,6 +7907,13 @@
|
||||
"image"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Audio attachments included in user turns.",
|
||||
"enum": [
|
||||
"audio"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -17,6 +17,13 @@
|
||||
"image"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"description": "Audio attachments included in user turns.",
|
||||
"enum": [
|
||||
"audio"
|
||||
],
|
||||
"type": "string"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -5,4 +5,4 @@
|
||||
/**
|
||||
* Canonical user-input modality tags advertised by a model.
|
||||
*/
|
||||
export type InputModality = "text" | "image";
|
||||
export type InputModality = "text" | "image" | "audio";
|
||||
|
||||
Reference in New Issue
Block a user