Skip to content

Feat/openrouter prompt cache middleware#949

Open
srtab wants to merge 3 commits intomainfrom
feat/openrouter-prompt-cache-middleware
Open

Feat/openrouter prompt cache middleware#949
srtab wants to merge 3 commits intomainfrom
feat/openrouter-prompt-cache-middleware

Conversation

@srtab
Copy link
Owner

@srtab srtab commented Mar 18, 2026

No description provided.

srtab added 2 commits March 18, 2026 00:46
Override _apply_caching instead of awrap_model_call so both sync and
async paths are covered. For OpenRouter models the middleware now merges
cache_control into extra_body (preserving existing values), tags the
system message and tools, matching what the upstream middleware does for
native Anthropic models. Also adds glm-5-turbo model variant and fixes
skills middleware import ordering.
@srtab srtab self-assigned this Mar 18, 2026
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