From 4a75ad1573f02e37e7b93780e87a4478dbdd2acf Mon Sep 17 00:00:00 2001 From: Travis Fischer Date: Mon, 21 Oct 2024 19:15:24 -0500 Subject: [PATCH] feat: add support for user audio messages --- src/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/types.ts b/src/types.ts index d0751d4..e63c3ad 100644 --- a/src/types.ts +++ b/src/types.ts @@ -35,6 +35,13 @@ export type ChatMessageContentPart = detail?: 'low' | 'high' | 'auto' | (string & {}); }; } + | { + type: 'input_audio'; + input_audio: { + data: string; + format: 'mp3' | 'wav' | (string & {}); + }; + } // Assistant messages only. | { type: 'refusal';