diff --git a/.changeset/shaggy-mayflies-jump.md b/.changeset/shaggy-mayflies-jump.md new file mode 100644 index 000000000000..c66ef7d321cb --- /dev/null +++ b/.changeset/shaggy-mayflies-jump.md @@ -0,0 +1,5 @@ +--- +'@ai-sdk/openai': patch +--- + +feat (provider/openai): add o3 reasoning model support diff --git a/packages/openai/src/openai-chat-language-model.ts b/packages/openai/src/openai-chat-language-model.ts index 3b6574d441c9..f067219ffddb 100644 --- a/packages/openai/src/openai-chat-language-model.ts +++ b/packages/openai/src/openai-chat-language-model.ts @@ -817,7 +817,12 @@ const openaiChatChunkSchema = z.union([ ]); function isReasoningModel(modelId: string) { - return modelId === 'o1' || modelId.startsWith('o1-'); + return ( + modelId === 'o1' || + modelId.startsWith('o1-') || + modelId === 'o3' || + modelId.startsWith('o3-') + ); } function isAudioModel(modelId: string) {