Disable references in the Assistant API response

Hi and welcome to the Developer Forum!

I do not know of a parameter to do that, the only way I know of so far is to use code after the event:

import re

message_text = ("This is a sample text【9†source】 with source "
"tags using annotations【10†source】and some other content.")

# Use regex to remove source citations
cleaned_text = re.sub('【.*?†source】', '', message_text)
5 Likes