Skip to content

Commit fd7e679

Browse files
committed
fix types
1 parent cab797f commit fd7e679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,12 @@ export const providerModelNames = {
288288

289289
export type Model = (typeof models)[keyof typeof models] | (string & {})
290290

291-
const modelsGeneric = Object.values(models) as string[]
291+
const modelsGeneric = Object.values(models) satisfies string[] as string[]
292292
const nonCacheableModels = [
293293
models.openrouter_grok_4,
294294
] satisfies string[] as string[]
295295
export function supportsCacheControl(model: Model): boolean {
296-
if (!modelsGeneric.includes(model satisfies string as string)) {
296+
if (!modelsGeneric.includes(model)) {
297297
// Default to no cache control for unknown models
298298
return false
299299
}

0 commit comments

Comments
 (0)