Skip to content

Add citations support#461

Merged
brainlid merged 7 commits intomainfrom
me-add-citations-support
Feb 14, 2026
Merged

Add citations support#461
brainlid merged 7 commits intomainfrom
me-add-citations-support

Conversation

@brainlid
Copy link
Owner

@brainlid brainlid commented Feb 14, 2026

  • Added Citation and CitationSource structs for official citation support.
  • Added support to ChatAnthropic, ChatPerplexity, ChatGoogleAI, DeepResearch, and ChatOpenAIResponses.
  • Supports streaming and non-streaming citation returns
  • Improved error handling in ChatGoogleAI

NOTE: This is a breaking change for DeepResearch and ChatGoogleAI, but migration steps are included in the CHANGELOG.md. And this is only an issue if you were using citations.

See the CHANGELOG for details.

- add citation support to the core data structures
- embedded on ContentPart
- implement for ChatAnthropic
- implement for ChatOpenAIResponses
- not 100% verified with live calls
- improved error handling for 404 and 429 responses
- support for perplexity citations
- live calls tested and verified
- with the addition of a %Citation{} and %CitationSource{}, migrate to use that structure for DeepResearch ResearchResults
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.

1 participant