Support audio input

This commit is contained in:
Curtis 'Fjord' Hawthorne
2026-05-15 22:11:50 -07:00
parent 326e31ab65
commit b42b2ff9ec
37 changed files with 2112 additions and 110 deletions
@@ -9137,6 +9137,26 @@
],
"title": "InputImageFunctionCallOutputContentItem",
"type": "object"
},
{
"properties": {
"input_audio": {
"$ref": "#/definitions/v2/InputAudio"
},
"type": {
"enum": [
"input_audio"
],
"title": "InputAudioFunctionCallOutputContentItemType",
"type": "string"
}
},
"required": [
"input_audio",
"type"
],
"title": "InputAudioFunctionCallOutputContentItem",
"type": "object"
}
]
},
@@ -9925,6 +9945,21 @@
],
"type": "string"
},
"InputAudio": {
"properties": {
"data": {
"type": "string"
},
"format": {
"type": "string"
}
},
"required": [
"data",
"format"
],
"type": "object"
},
"InputModality": {
"description": "Canonical user-input modality tags advertised by a model.",
"oneOf": [
@@ -9941,6 +9976,13 @@
"image"
],
"type": "string"
},
{
"description": "Audio content included in tool payloads.",
"enum": [
"audio"
],
"type": "string"
}
]
},