Implement prompt caching for Anthropic and OpenAI
This post might have stale content, as main is 6 commits ahead.
Implement prompt caching. Investigate how anomalyco/opencode and vercel/ai - priorities are anthropic and openai models.
Perfect. Make sure, in the anthropic case, to always pass providerOptions object - else the cache will be purged i think.
END OF POST