test: add regression test for issue #196 (Anthropic 1-hour cache TTL)#378
Merged
robert-j-y merged 4 commits intomainfrom Jan 28, 2026
Merged
test: add regression test for issue #196 (Anthropic 1-hour cache TTL)#378robert-j-y merged 4 commits intomainfrom
robert-j-y merged 4 commits intomainfrom
Conversation
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
…trol camelCase) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
… facts) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
kesavan-byte
pushed a commit
to osm-API/ai-sdk-provider
that referenced
this pull request
Feb 13, 2026
…our cache TTL) (OpenRouterTeam#378) * test: add regression test for issue OpenRouterTeam#196 (Anthropic 1-hour cache TTL) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: update issue OpenRouterTeam#196 test to match exact issue structure (cacheControl camelCase) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: remove root cause analysis from header comment (keep only known facts) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: remove redundant comments from issue OpenRouterTeam#196 test Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a regression test for issue #196 following the pattern established in PR #369.
The test uses the exact code structure from the issue report:
cacheControl(camelCase) exactly as the user reportedttl: '1h'parameter for 1-hour cachingThe test verifies:
cachedTokens > 0)Updates since last revision
Human Review Checklist
cacheControlcamelCase)cachedTokens > 0) is appropriate and not flakyChecklist
pnpm stylecheckandpnpm typecheckpnpm testand all tests passChangeset
pnpm changesetto create a changeset file (empty changeset for test-only change)Requested by: Robert Yeakel (@robert-j-y)
Link to Devin run: https://app.devin.ai/sessions/2d9573034b76446baf55558962afa10f