Skip to content

Commit

Permalink
feat: add support for user audio messages
Browse files Browse the repository at this point in the history
  • Loading branch information
transitive-bullshit committed Oct 22, 2024
1 parent 789ac41 commit 4a75ad1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 4a75ad1

Please sign in to comment.