Skip to content

Commit 4e42a89

Browse files
committed
fix(opencode): pass cache_point_ttl from provider options into transform
1 parent afe8753 commit 4e42a89

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

packages/opencode/src/provider/transform.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -847,6 +847,10 @@ export function options(input: {
847847
result["promptCacheKey"] = input.sessionID
848848
}
849849

850+
if (input.providerOptions?.cache_point_ttl) {
851+
result["cache_point_ttl"] = input.providerOptions.cache_point_ttl
852+
}
853+
850854
if (input.model.api.npm === "@ai-sdk/google" || input.model.api.npm === "@ai-sdk/google-vertex") {
851855
if (input.model.capabilities.reasoning) {
852856
result["thinkingConfig"] = {

0 commit comments

Comments
 (0)