Skip to content

Commit 5da000e

Browse files
authored
feat: add o3-mini and o3-mini-high models (#210)
1 parent 06e52f1 commit 5da000e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Bridge/OpenAI/GPT.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ final class GPT implements LanguageModel
1717
public const GPT_4O_AUDIO = 'gpt-4o-audio-preview';
1818
public const O1_MINI = 'o1-mini';
1919
public const O1_PREVIEW = 'o1-preview';
20+
public const O3_MINI = 'o3-mini';
21+
public const O3_MINI_HIGH = 'o3-mini-high';
2022

2123
/**
2224
* @param array<mixed> $options The default options for the model usage
@@ -33,11 +35,11 @@ public function __construct(
3335
}
3436

3537
if (false === $this->supportsImageInput) {
36-
$this->supportsImageInput = in_array($this->version, [self::GPT_4_TURBO, self::GPT_4O, self::GPT_4O_MINI, self::O1_MINI, self::O1_PREVIEW], true);
38+
$this->supportsImageInput = in_array($this->version, [self::GPT_4_TURBO, self::GPT_4O, self::GPT_4O_MINI, self::O1_MINI, self::O1_PREVIEW, self::O3_MINI], true);
3739
}
3840

3941
if (false === $this->supportsStructuredOutput) {
40-
$this->supportsStructuredOutput = in_array($this->version, [self::GPT_4O, self::GPT_4O_MINI], true);
42+
$this->supportsStructuredOutput = in_array($this->version, [self::GPT_4O, self::GPT_4O_MINI, self::O3_MINI], true);
4143
}
4244
}
4345

0 commit comments

Comments
 (0)