How to handle file citations with the new Responses API?

Hey @axelrothing!

Steve here from the OpenAI engineering team! I worked on this feature. The idea here is that instead of having to remove the citations from the text, which is annoying and error-prone, you now have the option of inserting them. You are correct in that index is the place in text where the citation should go.

I’ll make sure we update our docs to be crisp with some code samples!

2 Likes