We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9141fbe commit bcfb2c1Copy full SHA for bcfb2c1
common/src/old-constants.ts
@@ -314,6 +314,12 @@ const nonCacheableModels = [
314
models.openrouter_grok_4,
315
] satisfies string[] as string[]
316
export function supportsCacheControl(model: Model): boolean {
317
+ if (model.startsWith('openai/')) {
318
+ return true
319
+ }
320
+ if (model.startsWith('anthropic/')) {
321
322
323
if (!isExplicitlyDefinedModel(model)) {
324
// Default to no cache control for unknown models
325
return false
0 commit comments