Skip to content

Commit 2b9c071

Browse files
committed
Replace OpenAI's o1-preview with o3
Since `o1` models are deprecated, and the Responses API no longer supports `o1`. See: https://platform.openai.com/docs/deprecations#2025-04-28-o1-preview-and-o1-mini
1 parent 76750ac commit 2b9c071

File tree

2 files changed

+7
-16
lines changed

2 files changed

+7
-16
lines changed

examples/openai/chat-o1.php renamed to examples/openai/chat-o3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
at the beginning and end, not throughout the code.
3333
PROMPT;
3434

35-
$agent = new Agent($platform, 'o1-preview');
35+
$agent = new Agent($platform, 'o3');
3636
$result = $agent->call(new MessageBag(Message::ofUser($prompt)));
3737

3838
echo $result->getContent().\PHP_EOL;

src/platform/src/Bridge/OpenAi/ModelCatalog.php

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -91,32 +91,23 @@ public function __construct(array $additionalModels = [])
9191
Capability::OUTPUT_TEXT,
9292
Capability::OUTPUT_STREAMING,
9393
Capability::TOOL_CALLING,
94+
// Audio is unsupported temporarily due to migration to Responses API;
95+
// Capability will be reintroduced when Responses API supports audio ("coming soon")
96+
// See: https://platform.openai.com/docs/guides/migrate-to-responses#responses-benefits
97+
// Capability::INPUT_AUDIO,
9498
Capability::INPUT_IMAGE,
9599
Capability::OUTPUT_STRUCTURED,
96100
],
97101
],
98-
'o1-mini' => [
99-
'class' => Gpt::class,
100-
'capabilities' => [
101-
Capability::INPUT_MESSAGES,
102-
Capability::OUTPUT_TEXT,
103-
Capability::OUTPUT_STREAMING,
104-
Capability::TOOL_CALLING,
105-
Capability::INPUT_IMAGE,
106-
],
107-
],
108-
'o1-preview' => [
102+
'o3' => [
109103
'class' => Gpt::class,
110104
'capabilities' => [
111105
Capability::INPUT_MESSAGES,
112106
Capability::OUTPUT_TEXT,
113107
Capability::OUTPUT_STREAMING,
114108
Capability::TOOL_CALLING,
115109
Capability::INPUT_IMAGE,
116-
// Audio is unsupported temporarily due to migration to Responses API;
117-
// Capability will be reintroduced when Responses API supports audio ("coming soon")
118-
// See: https://platform.openai.com/docs/guides/migrate-to-responses#responses-benefits
119-
// Capability::INPUT_AUDIO,
110+
Capability::OUTPUT_STRUCTURED,
120111
],
121112
],
122113
'o3-mini' => [

0 commit comments

Comments
 (0)