You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Confirm this is an issue with the Python library and not an underlying OpenAI API
This is an issue with the Python library
Describe the bug
When getting the messages list for the last response in a run, I sometimes get the following content content=[ImageFileContentBlock(image_file=None, type='text', text={'value': '...'}, (...) ) ]
instead of content=[TextContentBlock(text=Text(annotations=[], value="..."), (...))]
The ImageFileContentBlock comes when asking for data from files and the TextContentBlock when asking generic questions like "how are you?". Even if it is the default behavior (not sure why image file of type text), these structures are not structured in the same way, the first one has the 'text' field a dictionary and the second one has a Text object
To Reproduce
create a message (client.beta.threads.messages.create)
create a run and wait for response (client.beta.threads.runs.create_and_poll)
Confirm this is an issue with the Python library and not an underlying OpenAI API
Describe the bug
When getting the messages list for the last response in a run, I sometimes get the following content
content=[ImageFileContentBlock(image_file=None, type='text', text={'value': '...'}, (...) ) ]
instead of
content=[TextContentBlock(text=Text(annotations=[], value="..."), (...))]
The ImageFileContentBlock comes when asking for data from files and the TextContentBlock when asking generic questions like "how are you?". Even if it is the default behavior (not sure why image file of type text), these structures are not structured in the same way, the first one has the 'text' field a dictionary and the second one has a Text object
To Reproduce
Code snippets
OS
Linux
Python version
Python v3.11.4
Library version
openai v1.23.1
The text was updated successfully, but these errors were encountered: