Citations
Get citations of an assistant message
Returns the sources that support each part of an assistant message. Request the citations only after the answer is complete, in stream mode after the end of the stream.
GET
/v1/threads/{thread_id}/messages/{message_id}/citationsapi-key<token>
In: header
Path Parameters
thread_id*Thread Id
Format
uuidmessage_id*Message Id
Format
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/threads/497f6eca-6276-4993-bfeb-53cbbbba6f08/messages/497f6eca-6276-4993-bfeb-53cbbbba6f08/citations"{ "citations": [ { "end": 85, "start": 0, "statements": [ { "id": "HI1234567", "text": "... die Kündigungsfrist zwei Wochen ...", "type": "source" } ], "text": "Während der Probezeit beträgt die Kündigungsfrist gemäß § 622 Abs. 3 BGB zwei Wochen." } ]}