#Blank Annotations from Retrieval Tool Even Though Response Contains Source

1 messages · Page 1 of 1 (latest)

digital crescent
#

I'm using the OpenAI retrieval assistant but the response returns blank annotations parameter even though the annotation is noted in the value parameter. Here is an example:

When I receive content of a message from the assistant:

```
messages = openai.Client().beta.threads.messages.list(thread_id=thread.id)
for message in messages.data:
if message.role == "assistant":
# Extract the message content
message_content = message.content[0].text
```

Here is what I receive:

ThreadMessage(id='removed', assistant_id='removed', content=[MessageContentText(text=Text(annotations=[], value='Yes, users can schedule an appointment through a provided link. [schedule appointment link]"【35†source】.'), type='text')], created_at=1706835421, file_ids=[], metadata={}, object='thread.message', role='assistant', run_id=''removed", thread_id='removed')

How do I identify what【35†source】value is referring to if annotations=[] ?