refactor: delete orphaned per-provider caching transform files #11388
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.
Summary
Deletes 4 orphaned source files and 4 orphaned test files from
src/api/transform/caching/. TheseaddCacheBreakpoints()functions have zero provider consumers — no provider file imports them.Cache breakpoint placement has moved to inline
providerOptionsin each provider'screateMessage()method:{ anthropic: { cacheControl: { type: "ephemeral" } } }viaapplyCacheControlToAiSdkMessages(){ bedrock: { cachePoint: { type: "default" } } }viaapplyCacheControlToAiSdkMessages()Files Deleted
caching/anthropic.tscaching/gemini.tscaching/vertex.tscaching/vercel-ai-gateway.tscaching/__tests__/anthropic.spec.tscaching/__tests__/gemini.spec.tscaching/__tests__/vertex.spec.tscaching/__tests__/vercel-ai-gateway.spec.tsTotal: 1,025 lines deleted.
Verification
addCacheBreakpointsorfrom.*caching/across all provider filesImportant
Removed the entire caching module including all provider-specific implementations and their test files for the addCacheBreakpoints functionality.
anthropic.ts,gemini.ts,vercel-ai-gateway.ts, andvertex.tsfiles containing provider-specificaddCacheBreakpointsfunctions.anthropic.spec.ts,gemini.spec.ts,vercel-ai-gateway.spec.ts, andvertex.spec.tstest files covering the caching functionality across all providers.This description was created by
for 2c4f10a. You can customize this summary. It will automatically update as commits are pushed.