Skip to content

Commit a978452

Browse files
authored
feat: add GPT 4.5 (#232)
* Add GPT 4.5 * -
1 parent 5824473 commit a978452

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Bridge/OpenAI/GPT.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ final class GPT implements LanguageModel
1919
public const O1_PREVIEW = 'o1-preview';
2020
public const O3_MINI = 'o3-mini';
2121
public const O3_MINI_HIGH = 'o3-mini-high';
22+
public const GPT_45_PREVIEW = 'gpt-4.5-preview';
2223

2324
/**
2425
* @param array<mixed> $options The default options for the model usage
@@ -35,11 +36,11 @@ public function __construct(
3536
}
3637

3738
if (false === $this->supportsImageInput) {
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);
39+
$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, self::GPT_45_PREVIEW], true);
3940
}
4041

4142
if (false === $this->supportsStructuredOutput) {
42-
$this->supportsStructuredOutput = in_array($this->version, [self::GPT_4O, self::GPT_4O_MINI, self::O3_MINI], true);
43+
$this->supportsStructuredOutput = in_array($this->version, [self::GPT_4O, self::GPT_4O_MINI, self::O3_MINI, self::GPT_45_PREVIEW], true);
4344
}
4445
}
4546

0 commit comments

Comments
 (0)