From 7251237ae8714400769965b2d552824b695dfdae Mon Sep 17 00:00:00 2001 From: hannesrudolph Date: Thu, 7 Aug 2025 11:36:15 -0700 Subject: [PATCH] fix: restore reasoning effort support for o1 series models - Added supportsReasoningEffort: true to o1, o1-preview, and o1-mini models - This restores the ability to use reasoning effort parameters with these models - The existing code in openai-native.ts already handles reasoning effort correctly --- packages/types/src/providers/openai.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/types/src/providers/openai.ts b/packages/types/src/providers/openai.ts index a8765b21d8..f74a28ae76 100644 --- a/packages/types/src/providers/openai.ts +++ b/packages/types/src/providers/openai.ts @@ -168,6 +168,7 @@ export const openAiNativeModels = { contextWindow: 200_000, supportsImages: true, supportsPromptCache: true, + supportsReasoningEffort: true, inputPrice: 15, outputPrice: 60, cacheReadsPrice: 7.5, @@ -177,6 +178,7 @@ export const openAiNativeModels = { contextWindow: 128_000, supportsImages: true, supportsPromptCache: true, + supportsReasoningEffort: true, inputPrice: 15, outputPrice: 60, cacheReadsPrice: 7.5, @@ -186,6 +188,7 @@ export const openAiNativeModels = { contextWindow: 128_000, supportsImages: true, supportsPromptCache: true, + supportsReasoningEffort: true, inputPrice: 1.1, outputPrice: 4.4, cacheReadsPrice: 0.55,