Browse Source

fix openrouter caching with anthropic, should be a lot cheaper

Dax Raad 7 months ago
parent
commit
969ad80ed2
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/opencode/src/provider/transform.ts

+ 3 - 0
packages/opencode/src/provider/transform.ts

@@ -17,6 +17,9 @@ export namespace ProviderTransform {
           anthropic: {
             cacheControl: { type: "ephemeral" },
           },
+          openaiCompatible: {
+            cache_control: { type: "ephemeral" },
+          },
         }
       }
     }