Skip to content

Commit 78e74e7

Browse files
committed
Add promptCacheKey for any provider with npm @ai-sdk/openai
1 parent bdfa213 commit 78e74e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/opencode/src/provider/transform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export namespace ProviderTransform {
136136
): Record<string, any> | undefined {
137137
const result: Record<string, any> = {}
138138

139-
if (providerID === "openai") {
139+
if (providerID === "openai" || npm === "@ai-sdk/openai") {
140140
result["promptCacheKey"] = sessionID
141141
}
142142

0 commit comments

Comments
 (0)