Commit 964160d
committed
feat(MTMDChatHandler): support audio inputs and fix interleaved media ordering
- Refactored `CHAT_FORMAT` to use a single loop for `message.content`, preserving the exact chronological order of interleaved text, images, and audio.
- Added template routing for `audio_url`.
- Added template routing for OpenAI's `input_audio` format, properly formatting it as a Data URI.1 parent 5bd0870 commit 964160d
1 file changed
Lines changed: 9 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2803 | 2803 | | |
2804 | 2804 | | |
2805 | 2805 | | |
2806 | | - | |
2807 | | - | |
2808 | | - | |
2809 | | - | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
| 2810 | + | |
| 2811 | + | |
| 2812 | + | |
| 2813 | + | |
| 2814 | + | |
2810 | 2815 | | |
2811 | 2816 | | |
2812 | 2817 | | |
| |||
0 commit comments