mtmd: Use the base64 attachment for the UI preview instead of the file

This commit is contained in:
oobabooga 2025-08-08 20:13:54 -07:00
parent 6e9de75727
commit 8fcadff8d3
2 changed files with 2 additions and 4 deletions

View file

@ -640,7 +640,6 @@ def add_message_attachment(history, row_idx, file_path, is_user=True):
"type": "image",
"image_data": data_url,
"image_id": image_id,
"file_path": str(path) # For UI preview
}
elif file_extension == '.pdf':
# Process PDF file