Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/Bridge/OpenAI/GPT.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ final class GPT implements LanguageModel
public const GPT_4O_AUDIO = 'gpt-4o-audio-preview';
public const O1_MINI = 'o1-mini';
public const O1_PREVIEW = 'o1-preview';
public const O3_MINI = 'o3-mini';
public const O3_MINI_HIGH = 'o3-mini-high';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


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

if (false === $this->supportsImageInput) {
$this->supportsImageInput = in_array($this->version, [self::GPT_4_TURBO, self::GPT_4O, self::GPT_4O_MINI, self::O1_MINI, self::O1_PREVIEW], true);
$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);
}

if (false === $this->supportsStructuredOutput) {
$this->supportsStructuredOutput = in_array($this->version, [self::GPT_4O, self::GPT_4O_MINI], true);
$this->supportsStructuredOutput = in_array($this->version, [self::GPT_4O, self::GPT_4O_MINI, self::O3_MINI], true);
}
}

Expand Down