Context usage can be reduced by pruning messages, resulting in more available context space and lower costs. This should be an opt-out feature. See: https://ai-sdk.dev/docs/reference/ai-sdk-ui/prune-messages Example can be found in [opencode](https://github.com/anomalyco/opencode) project.
Context usage can be reduced by pruning messages, resulting in more available context space and lower costs. This should be an opt-out feature.
See: https://ai-sdk.dev/docs/reference/ai-sdk-ui/prune-messages
Example can be found in opencode project.