Skip to content

Commit e109753

Browse files
dmontaguKRRT7
authored andcommitted
Fix mp3 handling (pydantic#2279)
1 parent 79cfbfd commit e109753

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydantic_ai_slim/pydantic_ai/models/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,8 @@ async def download_item(
759759
data_type = media_type
760760
if type_format == 'extension':
761761
data_type = data_type.split('/')[1]
762+
if data_type == 'mpeg': # pragma: no cover
763+
data_type = 'mp3'
762764

763765
data = response.content
764766
if data_format in ('base64', 'base64_uri'):

0 commit comments

Comments
 (0)