@@ -95,6 +95,16 @@ export const telemetrySettingsSchema = z.enum(telemetrySettings)
9595
9696export type TelemetrySetting = z . infer < typeof telemetrySettingsSchema >
9797
98+ /**
99+ * ReasoningEffort
100+ */
101+
102+ export const reasoningEfforts = [ "low" , "medium" , "high" ] as const
103+
104+ export const reasoningEffortsSchema = z . enum ( reasoningEfforts )
105+
106+ export type ReasoningEffort = z . infer < typeof reasoningEffortsSchema >
107+
98108/**
99109 * ModelInfo
100110 */
@@ -110,7 +120,7 @@ export const modelInfoSchema = z.object({
110120 cacheWritesPrice : z . number ( ) . optional ( ) ,
111121 cacheReadsPrice : z . number ( ) . optional ( ) ,
112122 description : z . string ( ) . optional ( ) ,
113- reasoningEffort : z . enum ( [ "low" , "medium" , "high" ] ) . optional ( ) ,
123+ reasoningEffort : reasoningEffortsSchema . optional ( ) ,
114124 thinking : z . boolean ( ) . optional ( ) ,
115125 minTokensPerCachePoint : z . number ( ) . optional ( ) ,
116126 maxCachePoints : z . number ( ) . optional ( ) ,
@@ -388,7 +398,7 @@ export const providerSettingsSchema = z.object({
388398 // Generic
389399 includeMaxTokens : z . boolean ( ) . optional ( ) ,
390400 modelTemperature : z . number ( ) . nullish ( ) ,
391- reasoningEffort : z . enum ( [ "low" , "medium" , "high" ] ) . optional ( ) ,
401+ reasoningEffort : reasoningEffortsSchema . optional ( ) ,
392402 rateLimitSeconds : z . number ( ) . optional ( ) ,
393403 // Fake AI
394404 fakeAi : z . unknown ( ) . optional ( ) ,
0 commit comments