René's URL Explorer Experiment


Title: Anthropic Citations API Support by krrishdholakia · Pull Request #8382 · BerriAI/litellm · GitHub

Open Graph Title: Anthropic Citations API Support by krrishdholakia · Pull Request #8382 · BerriAI/litellm

X Title: Anthropic Citations API Support by krrishdholakia · Pull Request #8382 · BerriAI/litellm

Description: Python SDK, Proxy Server (AI Gateway) to call 100+ LLM APIs in OpenAI (or native) format, with cost tracking, guardrails, loadbalancing and logging. [Bedrock, Azure, OpenAI, VertexAI, Cohere, Anthropic, Sagemaker, HuggingFace, VLLM, NVIDIA NIM] - Anthropic Citations API Support by krrishdholakia · Pull Request #8382 · BerriAI/litellm

Open Graph Description: Title Anthropic citations API support from litellm import completion resp = completion( model="claude-3-5-sonnet-20241022", messages=[ { &quo...

X Description: Title Anthropic citations API support from litellm import completion resp = completion( model="claude-3-5-sonnet-20241022", messages=[ { ...

Opengraph URL: https://github.com/BerriAI/litellm/pull/8382

X: @github

direct link

Domain: redirect.github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:574a3fc2-dc66-93b7-40e6-18bdfcf1b125
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAC8C:156694:37CAF6C:4892446:6992D47A
html-safe-nonceac2035796b139ddc58f35659dfe070decee21bd11c91358341b0b709ff67a407
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzhDOjE1NjY5NDozN0NBRjZDOjQ4OTI0NDY6Njk5MkQ0N0EiLCJ2aXNpdG9yX2lkIjoiMTk4MzI1MDkyOTM3MDE5MDk3MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac575acf738667a529aec039d0c07437042c6232dedefabd4ae00b2af843b878d2
hovercard-subject-tagpull_request:2323418569
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/BerriAI/litellm/8382/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0d395f47ff00883b6045e8bdf7666cfec5d477025d3281416719d0dbb752e0be/BerriAI/litellm/pull/8382
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0d395f47ff00883b6045e8bdf7666cfec5d477025d3281416719d0dbb752e0be/BerriAI/litellm/pull/8382
og:image:altTitle Anthropic citations API support from litellm import completion resp = completion( model="claude-3-5-sonnet-20241022", messages=[ { &quo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekrrishdholakia
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-cache
go-importgithub.com/BerriAI/litellm git https://github.com/BerriAI/litellm.git
octolytics-dimension-user_id121462774
octolytics-dimension-user_loginBerriAI
octolytics-dimension-repository_id671269505
octolytics-dimension-repository_nwoBerriAI/litellm
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id671269505
octolytics-dimension-repository_network_root_nwoBerriAI/litellm
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release84dcb133269e3cfe6e0296cc85fbacb92cae92bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/BerriAI/litellm/pull/8382#start-of-content
https://redirect.github.com/
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FBerriAI%2Flitellm%2Fpull%2F8382
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FBerriAI%2Flitellm%2Fpull%2F8382
Sign up https://redirect.github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=BerriAI%2Flitellm
Reloadhttps://redirect.github.com/BerriAI/litellm/pull/8382
Reloadhttps://redirect.github.com/BerriAI/litellm/pull/8382
Reloadhttps://redirect.github.com/BerriAI/litellm/pull/8382
BerriAI https://redirect.github.com/BerriAI
litellmhttps://redirect.github.com/BerriAI/litellm
Please reload this pagehttps://redirect.github.com/BerriAI/litellm/pull/8382
Notifications https://redirect.github.com/login?return_to=%2FBerriAI%2Flitellm
Fork 5.8k https://redirect.github.com/login?return_to=%2FBerriAI%2Flitellm
Star 36.1k https://redirect.github.com/login?return_to=%2FBerriAI%2Flitellm
Code https://redirect.github.com/BerriAI/litellm
Issues 831 https://redirect.github.com/BerriAI/litellm/issues
Pull requests 637 https://redirect.github.com/BerriAI/litellm/pulls
Discussions https://redirect.github.com/BerriAI/litellm/discussions
Actions https://redirect.github.com/BerriAI/litellm/actions
Projects 1 https://redirect.github.com/BerriAI/litellm/projects
Security 0 https://redirect.github.com/BerriAI/litellm/security
Insights https://redirect.github.com/BerriAI/litellm/pulse
Code https://redirect.github.com/BerriAI/litellm
Issues https://redirect.github.com/BerriAI/litellm/issues
Pull requests https://redirect.github.com/BerriAI/litellm/pulls
Discussions https://redirect.github.com/BerriAI/litellm/discussions
Actions https://redirect.github.com/BerriAI/litellm/actions
Projects https://redirect.github.com/BerriAI/litellm/projects
Security https://redirect.github.com/BerriAI/litellm/security
Insights https://redirect.github.com/BerriAI/litellm/pulse
krrishdholakiahttps://redirect.github.com/krrishdholakia
mainhttps://redirect.github.com/BerriAI/litellm/tree/main
litellm_dev_02_07_2025_p4https://redirect.github.com/BerriAI/litellm/tree/litellm_dev_02_07_2025_p4
Conversationhttps://redirect.github.com/BerriAI/litellm/pull/8382
Commits7 (7)https://redirect.github.com/BerriAI/litellm/pull/8382/commits
Checkshttps://redirect.github.com/BerriAI/litellm/pull/8382/checks
Files changedhttps://redirect.github.com/BerriAI/litellm/pull/8382/files
Anthropic Citations API Supporthttps://redirect.github.com/BerriAI/litellm/pull/8382#top
krrishdholakiahttps://redirect.github.com/krrishdholakia
mainhttps://redirect.github.com/BerriAI/litellm/tree/main
litellm_dev_02_07_2025_p4https://redirect.github.com/BerriAI/litellm/tree/litellm_dev_02_07_2025_p4
https://redirect.github.com/krrishdholakia
krrishdholakiahttps://redirect.github.com/krrishdholakia
Feb 8, 2025https://redirect.github.com/BerriAI/litellm/pull/8382#issue-2839417308
Please reload this pagehttps://redirect.github.com/BerriAI/litellm/pull/8382
#7970 (comment)https://github.com/BerriAI/litellm/issues/7970#issuecomment-2644437943
Please reload this pagehttps://redirect.github.com/BerriAI/litellm/pull/8382
krrishdholakiahttps://redirect.github.com/krrishdholakia
February 7, 2025 17:43https://redirect.github.com/BerriAI/litellm/pull/8382#commits-pushed-0c87441
https://redirect.github.com/krrishdholakia
test(test_anthropic_completion.py): add test ensuring anthropic struc…https://redirect.github.com/BerriAI/litellm/pull/8382/commits/0c87441ea792bbdaf9d692ff14c351feee44b38b
0c87441https://redirect.github.com/BerriAI/litellm/pull/8382/commits/0c87441ea792bbdaf9d692ff14c351feee44b38b
#8291https://github.com/BerriAI/litellm/issues/8291
https://redirect.github.com/krrishdholakia
feat(anthropic.py): support citations api with new user document mess…https://redirect.github.com/BerriAI/litellm/pull/8382/commits/cda73c9d1b92eb7285944f3724d2209a37a3841d
cda73c9https://redirect.github.com/BerriAI/litellm/pull/8382/commits/cda73c9d1b92eb7285944f3724d2209a37a3841d
#7970https://github.com/BerriAI/litellm/issues/7970
https://redirect.github.com/krrishdholakia
fix(anthropic/chat/transformation.py): return citations as a provider…https://redirect.github.com/BerriAI/litellm/pull/8382/commits/fa68e3b8cd58a1a058299643506900c29f87b3ac
fa68e3bhttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/fa68e3b8cd58a1a058299643506900c29f87b3ac
#7970https://github.com/BerriAI/litellm/issues/7970
https://redirect.github.com/apps/vercel
vercelhttps://redirect.github.com/apps/vercel
Feb 8, 2025https://redirect.github.com/BerriAI/litellm/pull/8382#issuecomment-2644441156
Please reload this pagehttps://redirect.github.com/BerriAI/litellm/pull/8382
Vercel for Git ↗︎https://vercel.link/github-learn-more
Inspecthttps://vercel.com/clerkieai/litellm/CvWnWhzWdjcifEdXKdoWdeZ2FX12
Visit Previewhttps://litellm-git-litellmdev02072025p4-clerkieai.vercel.app
Add feedbackhttps://vercel.live/open-feedback/litellm-git-litellmdev02072025p4-clerkieai.vercel.app?via=pr-comment-feedback-link
Please reload this pagehttps://redirect.github.com/BerriAI/litellm/pull/8382
https://redirect.github.com/krrishdholakia
feat(anthropic/chat/handler.py): add streaming citations supporthttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/466c92e8767860593fe15f8a88e0a447d26e1539
466c92ehttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/466c92e8767860593fe15f8a88e0a447d26e1539
#7970https://github.com/BerriAI/litellm/issues/7970
https://redirect.github.com/apps/vercel
vercelhttps://redirect.github.com/apps/vercel
deployedhttps://litellm-cfjf0hmdv-clerkieai.vercel.app
Previewhttps://litellm-cfjf0hmdv-clerkieai.vercel.app
February 8, 2025 03:16https://redirect.github.com/BerriAI/litellm/pull/8382#event-16232429759
View deploymenthttps://litellm-cfjf0hmdv-clerkieai.vercel.app
https://redirect.github.com/krrishdholakia
krrishdholakiahttps://redirect.github.com/krrishdholakia
Feb 8, 2025https://redirect.github.com/BerriAI/litellm/pull/8382#event-16232445254
https://redirect.github.com/krrishdholakia
fix(handler.py): fix code qa errorhttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/ef1896f5f9523b56a592901e7f1a2dd07f0068d5
ef1896fhttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/ef1896f5f9523b56a592901e7f1a2dd07f0068d5
https://redirect.github.com/apps/vercel
vercelhttps://redirect.github.com/apps/vercel
deployedhttps://litellm-qipbpu23q-clerkieai.vercel.app
Previewhttps://litellm-qipbpu23q-clerkieai.vercel.app
February 8, 2025 03:40https://redirect.github.com/BerriAI/litellm/pull/8382#event-16232546602
View deploymenthttps://litellm-qipbpu23q-clerkieai.vercel.app
https://redirect.github.com/krrishdholakia
fix(handler.py): only set provider specific fields if non-empty dicthttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/1d5290d39d0f4b77e5f0f1f9ad8137ab5694e6ed
1d5290dhttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/1d5290d39d0f4b77e5f0f1f9ad8137ab5694e6ed
https://redirect.github.com/apps/vercel
vercelhttps://redirect.github.com/apps/vercel
deployedhttps://litellm-mmi63lb0i-clerkieai.vercel.app
Previewhttps://litellm-mmi63lb0i-clerkieai.vercel.app
February 8, 2025 03:46https://redirect.github.com/BerriAI/litellm/pull/8382#event-16232566775
View deploymenthttps://litellm-mmi63lb0i-clerkieai.vercel.app
https://redirect.github.com/krrishdholakia
docs(anthropic.md): add citations api to anthropic docshttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/757fa1e516a727bebb74e71eb2aeca1e16c799ac
757fa1ehttps://redirect.github.com/BerriAI/litellm/pull/8382/commits/757fa1e516a727bebb74e71eb2aeca1e16c799ac
https://redirect.github.com/apps/vercel
vercelhttps://redirect.github.com/apps/vercel
deployedhttps://litellm-382s0n96i-clerkieai.vercel.app
Previewhttps://litellm-382s0n96i-clerkieai.vercel.app
February 8, 2025 04:15https://redirect.github.com/BerriAI/litellm/pull/8382#event-16232676072
View deploymenthttps://litellm-382s0n96i-clerkieai.vercel.app
https://redirect.github.com/krrishdholakia
krrishdholakiahttps://redirect.github.com/krrishdholakia
1dd3713https://redirect.github.com/BerriAI/litellm/commit/1dd3713f1a1bfd462f887b44a03b14f3950311c4
Feb 8, 2025https://github.com/BerriAI/litellm/pull/8382#event-16233389680
Please reload this pagehttps://redirect.github.com/BerriAI/litellm/pull/8382
https://redirect.github.com/krrishdholakia
krrishdholakiahttps://redirect.github.com/krrishdholakia
February 8, 2025 06:27https://redirect.github.com/BerriAI/litellm/pull/8382#event-16233389820
abhijitherekarhttps://redirect.github.com/abhijitherekar
Feb 20, 2025 https://redirect.github.com/BerriAI/litellm/pull/8382#ref-commit-248d3a5
https://redirect.github.com/krrishdholakia
https://redirect.github.com/abhijitherekar
Anthropic Citations API Support (https://redirect.github.com/acuvity/litellm/commit/248d3a551fac7875cc731f00d4d7ffcd3098643f
BerriAI#8382https://github.com/BerriAI/litellm/pull/8382
)https://redirect.github.com/acuvity/litellm/commit/248d3a551fac7875cc731f00d4d7ffcd3098643f
248d3a5https://redirect.github.com/acuvity/litellm/commit/248d3a551fac7875cc731f00d4d7ffcd3098643f
BerriAI#8291https://github.com/BerriAI/litellm/issues/8291
BerriAI#7970https://github.com/BerriAI/litellm/issues/7970
BerriAI#7970https://github.com/BerriAI/litellm/issues/7970
BerriAI#7970https://github.com/BerriAI/litellm/issues/7970
https://redirect.github.com/ericmjl
ericmjlhttps://redirect.github.com/ericmjl
Jan 4, 2026 https://redirect.github.com/BerriAI/litellm/pull/8382#ref-issue-3778704013
Feature: Parent-grounded citations for AI-generated content ericmjl/canvas-chat#53 https://redirect.github.com/ericmjl/canvas-chat/issues/53
https://github.co/hiddenchars
https://redirect.github.com/BerriAI/litellm/pull/{{ revealButtonHref }}
Sign up for freehttps://redirect.github.com/join?source=comment-repo
Sign in to commenthttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2FBerriAI%2Flitellm%2Fpull%2F8382
[Feature]: Support for Anthropic Citations API https://github.com/BerriAI/litellm/issues/7970
Please reload this pagehttps://redirect.github.com/BerriAI/litellm/pull/8382
https://redirect.github.com/krrishdholakia
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.