We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cab797f commit fd7e679Copy full SHA for fd7e679
common/src/constants.ts
@@ -288,12 +288,12 @@ export const providerModelNames = {
288
289
export type Model = (typeof models)[keyof typeof models] | (string & {})
290
291
-const modelsGeneric = Object.values(models) as string[]
+const modelsGeneric = Object.values(models) satisfies string[] as string[]
292
const nonCacheableModels = [
293
models.openrouter_grok_4,
294
] satisfies string[] as string[]
295
export function supportsCacheControl(model: Model): boolean {
296
- if (!modelsGeneric.includes(model satisfies string as string)) {
+ if (!modelsGeneric.includes(model)) {
297
// Default to no cache control for unknown models
298
return false
299
}
0 commit comments