Skip to content

Conversation

@jiwon-oai
Copy link
Collaborator

Allow custom Responses API annotation -> ChatKit assistant message annotation conversion using ResponseStreamConverter with new overridable methods:

  • file_citation_to_annotation
  • container_file_citation_to_annotation
  • url_citation_to_annotation

Default behavior is unchanged.

Default behavior Example overriding file_citation_to_annotation to add custom title and description Example returning an EntitySource for a file citation
Screenshot 2026-01-05 at 4 32 31 PM Screenshot 2026-01-05 at 4 24 05 PM Screenshot 2026-01-05 at 4 26 27 PM

Copy link
Contributor

@weedon-openai weedon-openai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well, that was easy. love it.

@jiwon-oai jiwon-oai added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 04edb9c Jan 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants