fix: get_image_base64_from_file_id

This commit is contained in:
Timothy Jaeryang Baek committed 2026-05-19 20:33:46 +04:00
1 parent 0367ad54c5
commit c75fe8e74b
3 files changed
+24 -25

No files matched your search

+1 -1
View File
@@ -934,7 +934,7 @@ async def model_response_handler(request, channel, message, user, db=None):
if file.get('type', '') == 'image':
images.append(file.get('url', ''))
elif file.get('content_type', '').startswith('image/'):
image = await get_image_base64_from_file_id(file.get('id', ''))
image = await get_image_base64_from_file_id(file.get('id', ''), user=user)
if image:
images.append(image)