|
@@ -77,11 +77,12 @@ class MessageService:
|
|
|
"create_messagecreate_messagecreate_messagecreate_messagecreate_messagecreate_message"
|
|
|
)
|
|
|
print(thread)
|
|
|
+ print(body)
|
|
|
# TODO message annotations
|
|
|
body_file_ids = body.file_ids
|
|
|
if body.attachments:
|
|
|
body_file_ids = [a.get("file_id") for a in body.attachments]
|
|
|
-
|
|
|
+ print(body_file_ids)
|
|
|
if body_file_ids:
|
|
|
thread_file_ids = []
|
|
|
if thread.tool_resources and "file_search" in thread.tool_resources:
|
|
@@ -94,6 +95,7 @@ class MessageService:
|
|
|
if file_id not in thread_file_ids:
|
|
|
thread_file_ids.append(file_id)
|
|
|
|
|
|
+ print(thread_file_ids)
|
|
|
# if thread_file_ids:
|
|
|
if not thread.tool_resources:
|
|
|
thread.tool_resources = {}
|