Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
BerriAI
/
litellm
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
11.6k
Star
59.1k
Code
Issues
1.7k
Pull requests
3.5k
Discussions
Actions
Projects
Security and quality
14
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
fix(anthropic): keep mid-conversation system out of the chat completions system prompt
- #38053
#38053
Open
oneKn8
wants to merge 8 commits into
BerriAI:litellm_internal_staging
BerriAI/litellm:litellm_internal_staging
from
oneKn8:fix-chat-mid-conversation-system-cache
oneKn8/litellm:fix-chat-mid-conversation-system-cache
Copy head branch name to clipboard
Conversation
Commits
8
(8)
Checks
Files changed
Open
fix(anthropic): keep mid-conversation system out of the chat completions system prompt
#38053
oneKn8
wants to merge 8 commits into
BerriAI:litellm_internal_staging
BerriAI/litellm:litellm_internal_staging
from
oneKn8:fix-chat-mid-conversation-system-cache
oneKn8/litellm:fix-chat-mid-conversation-system-cache
Copy head branch name to clipboard
Commits
Commits on Sep 14, 2026
feat(anthropic): placement policy for mid-conversation system messages
Show description for 76629e8
oneKn8
committed
76629e8
View commit details
Copy full SHA for 76629e8
Browse repository at this point
fix(anthropic): keep mid-conversation system out of the chat completions system prompt
Show description for 3cbb5bf
oneKn8
committed
3cbb5bf
View commit details
Copy full SHA for 3cbb5bf
Browse repository at this point
refactor(anthropic): single-source the converted system note
Show description for 72fb748
oneKn8
committed
72fb748
View commit details
Copy full SHA for 72fb748
Browse repository at this point
test(e2e): prove the prompt cache survives a mid-conversation system reminder on chat completions
Show description for a6ac53b
oneKn8
committed
a6ac53b
View commit details
Copy full SHA for a6ac53b
Browse repository at this point
test(anthropic): cover the cache_control rebuild shapes and type the test helpers
Show description for 77ac64d
oneKn8
committed
77ac64d
View commit details
Copy full SHA for 77ac64d
Browse repository at this point
refactor(anthropic): read the mid-conversation flag through a public supports_ helper
Show description for 30d2747
oneKn8
committed
30d2747
View commit details
Copy full SHA for 30d2747
Browse repository at this point
chore(typing): declare the mid-conversation type aliases with TypeAlias
Show description for ebd36a5
oneKn8
committed
ebd36a5
View commit details
Copy full SHA for ebd36a5
Browse repository at this point
fix(anthropic): let add_code_execution_tool take the pass-through message union
Show description for 0d76292
oneKn8
committed
0d76292
View commit details
Copy full SHA for 0d76292
Browse repository at this point
You can’t perform that action at this time.