@@ -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 ( ) ,
@@ -383,11 +393,12 @@ export const providerSettingsSchema = z.object({
383393 requestyModelId : z . string ( ) . optional ( ) ,
384394 requestyModelInfo : modelInfoSchema . nullish ( ) ,
385395 // Claude 3.7 Sonnet Thinking
386- modelTemperature : z . number ( ) . nullish ( ) ,
387396 modelMaxTokens : z . number ( ) . optional ( ) ,
388397 modelMaxThinkingTokens : z . number ( ) . optional ( ) ,
389398 // Generic
390399 includeMaxTokens : z . boolean ( ) . optional ( ) ,
400+ modelTemperature : z . number ( ) . nullish ( ) ,
401+ reasoningEffort : reasoningEffortsSchema . optional ( ) ,
391402 rateLimitSeconds : z . number ( ) . optional ( ) ,
392403 // Fake AI
393404 fakeAi : z . unknown ( ) . optional ( ) ,
@@ -470,11 +481,12 @@ const providerSettingsRecord: ProviderSettingsRecord = {
470481 requestyModelId : undefined ,
471482 requestyModelInfo : undefined ,
472483 // Claude 3.7 Sonnet Thinking
473- modelTemperature : undefined ,
474484 modelMaxTokens : undefined ,
475485 modelMaxThinkingTokens : undefined ,
476486 // Generic
477487 includeMaxTokens : undefined ,
488+ modelTemperature : undefined ,
489+ reasoningEffort : undefined ,
478490 rateLimitSeconds : undefined ,
479491 // Fake AI
480492 fakeAi : undefined ,
0 commit comments