fix: get_image_base64_from_file_id
This commit is contained in:
1 parent
0367ad54c5
commit
c75fe8e74b
3 files changed
+24
-25
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user