Skip to content

Commit 2351d9b

Browse files
author
wangjiaju
committed
Update _convert_message
1 parent 54237cc commit 2351d9b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

veadk/runner.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,7 @@
5050
async def pre_run_process(self, process_func, new_message, user_id, session_id):
5151
if new_message.parts:
5252
for part in new_message.parts:
53-
if (
54-
part.inline_data
55-
and part.inline_data.mime_type == "image/png"
56-
and self.upload_inline_data_to_tos
57-
):
53+
if part.inline_data and self.upload_inline_data_to_tos:
5854
await process_func(
5955
part,
6056
self.app_name,

0 commit comments

Comments
 (0)