File download from Assistant API resposne

Hello

I am trying to download the file created by the assistant API response and find the file ID from the thread or message, but I cannot get it; it shows the file is blank, and the annotations are also blank.

Download the PDF2024-12-29 19:49:11,657 - INFO - HTTP Request: GET https://api.openai.com/v1/threads/thread_yW3kahfCa5DecswcBtspe0Xi/messages “HTTP/1.1 200 OK”
2024-12-29 19:49:12,120 - INFO - HTTP Request: GET https://api.openai.com/v1/threads/thread_yW3kahfCa5DecswcBtspe0Xi/messages?after=msg_AyhErWaV8XXmqwWmUevleITc “HTTP/1.1 200 OK”
2024-12-29 19:49:12,123 - INFO - Assistant responded with message_id=msg_AyhErWaV8XXmqwWmUevleITc, role=user
2024-12-29 19:49:12,733 - INFO - HTTP Request: GET https://api.openai.com/v1/threads/thread_yW3kahfCa5DecswcBtspe0Xi/messages/msg_AyhErWaV8XXmqwWmUevleITc “HTTP/1.1 200 OK”

===== Debug: Printing all annotations in message =====
Message ID=msg_AyhErWaV8XXmqwWmUevleITc, role=user

– Block 0 –
Text: TextContentBlock(text=Text(annotations=, value=‘summarize the document’), type=‘text’)

– Block 0 –
Text: Text(annotations=, value=‘summarize the document’)
Annotations:
===== End of annotation debug =====

2024-12-29 19:49:13,187 - INFO - HTTP Request: GET https://api.openai.com/v1/threads/thread_yW3kahfCa5DecswcBtspe0Xi/messages/msg_AyhErWaV8XXmqwWmUevleITc “HTTP/1.1 200 OK”

– Message –
Message ID=msg_AyhErWaV8XXmqwWmUevleITc, role=user
Message(id=‘msg_AyhErWaV8XXmqwWmUevleITc’, assistant_id=None, attachments=, completed_at=None, content=[TextContentBlock(text=Text(annotations=, value=‘summarize the document’), type=‘text’)], created_at=1735481919, incomplete_at=None, incomplete_details=None, metadata={}, object=‘thread.message’, role=‘user’, run_id=None, status=None, thread_id=‘thread_yW3kahfCa5DecswcBtspe0Xi’)
Content: [TextContentBlock(text=Text(annotations=, value=‘summarize the document’), type=‘text’)]
2024-12-29 19:49:14,329 - INFO - HTTP Request: GET https://api.openai.com/v1/threads/thread_yW3kahfCa5DecswcBtspe0Xi “HTTP/1.1 200 OK”

– Thread –
Thread(id=‘thread_yW3kahfCa5DecswcBtspe0Xi’, created_at=1735481918, metadata={}, object=‘thread’, tool_resources=ToolResources(code_interpreter=ToolResourcesCodeInterpreter(file_ids=), file_search=None))