Skip to content

Commit

Permalink
fix (provider/openai): add o1-mini-2024-09-12 and o1-preview-2024-09-…
Browse files Browse the repository at this point in the history
…12 configurations (#4348)
  • Loading branch information
lgrammel authored Jan 10, 2025
1 parent 8696952 commit 3c3fae8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/thin-jars-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@ai-sdk/openai': patch
---

fix (provider/openai): add o1-mini-2024-09-12 and o1-preview-2024-09-12 configurations
8 changes: 8 additions & 0 deletions packages/openai/src/openai-chat-language-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -936,8 +936,16 @@ const reasoningModels = {
systemMessageMode: 'remove',
simulateStreamingByDefault: false,
},
'o1-mini-2024-09-12': {
systemMessageMode: 'remove',
simulateStreamingByDefault: false,
},
'o1-preview': {
systemMessageMode: 'remove',
simulateStreamingByDefault: false,
},
'o1-preview-2024-09-12': {
systemMessageMode: 'remove',
simulateStreamingByDefault: false,
},
} as const;

0 comments on commit 3c3fae8

Please sign in to comment.