Skip to content

Commit a1a0cc8

Browse files
authored
feat(openai): support openai model gpt-4.1 and gpt-4.1-mini model for structured output (#477)
1 parent 93ac1c5 commit a1a0cc8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Providers/OpenAI/Support/StructuredModeResolver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ protected static function supportsStructuredMode(string $model): bool
3232
'chatgpt-4o-latest',
3333
'o3-mini',
3434
'o3-mini-2025-01-31',
35+
'gpt-4.1',
36+
'gpt-4.1-nano',
37+
'gpt-4.1-mini',
3538
'gpt-4.5-preview',
3639
'gpt-4.5-preview-2025-02-27',
3740
]);

0 commit comments

Comments
 (0)