Implement prompt caching for Anthropic and OpenAI

main
915b940feat: make headings in comment content into anchor links (#136)
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.

Avatar of julianbenegas
Julian Benegas
commented

Perfect. Make sure, in the anthropic case, to always pass providerOptions object - else the cache will be purged i think.


END OF POST

Implement prompt caching for Anthropic and OpenAI — basehub-ai/forums