File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11101110 {
11111111 "$ref" : " #/components/schemas/ChatCompletionContentPartImageWithTitle"
11121112 },
1113+ {
1114+ "$ref" : " #/components/schemas/ChatCompletionContentPartInputAudioWithTitle"
1115+ },
11131116 {
11141117 "$ref" : " #/components/schemas/ChatCompletionContentPartFileWithTitle"
11151118 }
12441247 ],
12451248 "title" : " image_url"
12461249 },
1250+ "ChatCompletionContentPartInputAudioWithTitle" : {
1251+ "type" : " object" ,
1252+ "properties" : {
1253+ "input_audio" : {
1254+ "type" : " object" ,
1255+ "properties" : {
1256+ "data" : {
1257+ "type" : " string"
1258+ },
1259+ "format" : {
1260+ "type" : " string" ,
1261+ "enum" : [
1262+ " wav" ,
1263+ " mp3"
1264+ ]
1265+ }
1266+ },
1267+ "required" : [
1268+ " data" ,
1269+ " format"
1270+ ]
1271+ },
1272+ "type" : {
1273+ "type" : " string" ,
1274+ "enum" : [
1275+ " input_audio"
1276+ ]
1277+ },
1278+ "cache_control" : {
1279+ "type" : " object" ,
1280+ "properties" : {
1281+ "type" : {
1282+ "type" : " string" ,
1283+ "enum" : [
1284+ " ephemeral"
1285+ ]
1286+ },
1287+ "ttl" : {
1288+ "type" : " string" ,
1289+ "enum" : [
1290+ " 5m" ,
1291+ " 1h"
1292+ ]
1293+ }
1294+ },
1295+ "required" : [
1296+ " type"
1297+ ]
1298+ }
1299+ },
1300+ "required" : [
1301+ " input_audio" ,
1302+ " type"
1303+ ],
1304+ "title" : " input_audio"
1305+ },
12471306 "ChatCompletionContentPartText" : {
12481307 "type" : " object" ,
12491308 "properties" : {
Original file line number Diff line number Diff line change @@ -373,6 +373,22 @@ class ChatCompletionContentPartImageWithTitle(TypedDict):
373373 cache_control : NotRequired [ChatCompletionContentPartImageWithTitleCacheControl | None ]
374374
375375
376+ class ChatCompletionContentPartInputAudioWithTitleInputAudio (TypedDict ):
377+ data : str
378+ format : Literal ['wav' , 'mp3' ]
379+
380+
381+ class ChatCompletionContentPartInputAudioWithTitleCacheControl (TypedDict ):
382+ type : Literal ['ephemeral' ]
383+ ttl : NotRequired [Literal ['5m' , '1h' ] | None ]
384+
385+
386+ class ChatCompletionContentPartInputAudioWithTitle (TypedDict ):
387+ input_audio : ChatCompletionContentPartInputAudioWithTitleInputAudio
388+ type : Literal ['input_audio' ]
389+ cache_control : NotRequired [ChatCompletionContentPartInputAudioWithTitleCacheControl | None ]
390+
391+
376392class ChatCompletionContentPartTextCacheControl (TypedDict ):
377393 type : Literal ['ephemeral' ]
378394 ttl : NotRequired [Literal ['5m' , '1h' ] | None ]
@@ -3300,6 +3316,7 @@ class AttachmentStatus(TypedDict):
33003316ChatCompletionContentPart : TypeAlias = (
33013317 ChatCompletionContentPartTextWithTitle
33023318 | ChatCompletionContentPartImageWithTitle
3319+ | ChatCompletionContentPartInputAudioWithTitle
33033320 | ChatCompletionContentPartFileWithTitle
33043321)
33053322
Original file line number Diff line number Diff line change 1- """Auto-generated file (content hash 71b5715e9b2fb9f0 ) -- do not modify"""
1+ """Auto-generated file (content hash ac9ee5fc8c24315f ) -- do not modify"""
22
33from ._generated_types import (
44 Acl ,
2020 ChatCompletionContentPartFileFile ,
2121 ChatCompletionContentPartFileWithTitle ,
2222 ChatCompletionContentPartImageWithTitle ,
23+ ChatCompletionContentPartInputAudioWithTitle ,
2324 ChatCompletionContentPartText ,
2425 ChatCompletionContentPartTextWithTitle ,
2526 ChatCompletionMessageParam ,
148149 "ChatCompletionContentPartFileFile" ,
149150 "ChatCompletionContentPartFileWithTitle" ,
150151 "ChatCompletionContentPartImageWithTitle" ,
152+ "ChatCompletionContentPartInputAudioWithTitle" ,
151153 "ChatCompletionContentPartText" ,
152154 "ChatCompletionContentPartTextWithTitle" ,
153155 "ChatCompletionMessageParam" ,
You can’t perform that action at this time.
0 commit comments