Skip to content

Commit 27f2ccb

Browse files
committed
minor #282 [OpenAI] Add GPT 5 Models (DZunke)
This PR was merged into the main branch. Discussion ---------- [OpenAI] Add GPT 5 Models | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | Docs? | no | Issues | | License | MIT The new GPT Models are out, so i have added them to the platform with default configuration for image support and structured output. https://platform.openai.com/docs/models/gpt-5 https://platform.openai.com/docs/models/gpt-5-mini https://platform.openai.com/docs/models/gpt-5-nano https://platform.openai.com/docs/models/gpt-5-chat-latest Commits ------- e98d465 [Platform][OpenAI] Add GPT 5 Models
2 parents 9980c4e + e98d465 commit 27f2ccb

File tree

1 file changed

+11
-0
lines changed
  • src/platform/src/Bridge/OpenAi

1 file changed

+11
-0
lines changed

src/platform/src/Bridge/OpenAi/Gpt.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ class Gpt extends Model
3535
public const GPT_41 = 'gpt-4.1';
3636
public const GPT_41_MINI = 'gpt-4.1-mini';
3737
public const GPT_41_NANO = 'gpt-4.1-nano';
38+
public const GPT_5 = 'gpt-5';
39+
public const GPT_5_CHAT = 'gpt-5-chat-latest';
40+
public const GPT_5_MINI = 'gpt-5-mini';
41+
public const GPT_5_NANO = 'gpt-5-nano';
3842

3943
private const IMAGE_SUPPORTING = [
4044
self::GPT_4_TURBO,
@@ -47,6 +51,10 @@ class Gpt extends Model
4751
self::GPT_41,
4852
self::GPT_41_MINI,
4953
self::GPT_41_NANO,
54+
self::GPT_5,
55+
self::GPT_5_MINI,
56+
self::GPT_5_NANO,
57+
self::GPT_5_CHAT,
5058
];
5159

5260
private const STRUCTURED_OUTPUT_SUPPORTING = [
@@ -57,6 +65,9 @@ class Gpt extends Model
5765
self::GPT_41,
5866
self::GPT_41_MINI,
5967
self::GPT_41_NANO,
68+
self::GPT_5,
69+
self::GPT_5_MINI,
70+
self::GPT_5_NANO,
6071
];
6172

6273
/**

0 commit comments

Comments
 (0)