Skip to content

Commit 0ef4b7b

Browse files
feat(api): gpt-5-codex
1 parent 68a8971 commit 0ef4b7b

File tree

7 files changed

+18
-2
lines changed

7 files changed

+18
-2
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-937fcfac8cbab692796cd9822b37e48a311e2220a8b103106ded0ee92a0b9484.yml
3-
openapi_spec_hash: 74a0c58b5b8c4e06792d79b685e02a01
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/openai%2Fopenai-410219ea680089f02bb55163c673919703f946c3d6ad7ff5d6f607121d5287d5.yml
3+
openapi_spec_hash: 2b3eee95d3f6796c7a61dfddf694a59a
44
config_hash: 666d6bb4b564f0d9d431124b5d1a0665

lib/openai/models/all_models.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module ResponsesOnlyModel
2424
O4_MINI_DEEP_RESEARCH_2025_06_26 = :"o4-mini-deep-research-2025-06-26"
2525
COMPUTER_USE_PREVIEW = :"computer-use-preview"
2626
COMPUTER_USE_PREVIEW_2025_03_11 = :"computer-use-preview-2025-03-11"
27+
GPT_5_CODEX = :"gpt-5-codex"
2728

2829
# @!method self.values
2930
# @return [Array<Symbol>]

lib/openai/models/responses_model.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module ResponsesOnlyModel
2424
O4_MINI_DEEP_RESEARCH_2025_06_26 = :"o4-mini-deep-research-2025-06-26"
2525
COMPUTER_USE_PREVIEW = :"computer-use-preview"
2626
COMPUTER_USE_PREVIEW_2025_03_11 = :"computer-use-preview-2025-03-11"
27+
GPT_5_CODEX = :"gpt-5-codex"
2728

2829
# @!method self.values
2930
# @return [Array<Symbol>]

rbi/openai/models/all_models.rbi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ module OpenAI
6565
:"computer-use-preview-2025-03-11",
6666
OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol
6767
)
68+
GPT_5_CODEX =
69+
T.let(
70+
:"gpt-5-codex",
71+
OpenAI::AllModels::ResponsesOnlyModel::TaggedSymbol
72+
)
6873

6974
sig do
7075
override.returns(

rbi/openai/models/responses_model.rbi

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ module OpenAI
7373
:"computer-use-preview-2025-03-11",
7474
OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol
7575
)
76+
GPT_5_CODEX =
77+
T.let(
78+
:"gpt-5-codex",
79+
OpenAI::ResponsesModel::ResponsesOnlyModel::TaggedSymbol
80+
)
7681

7782
sig do
7883
override.returns(

sig/openai/models/all_models.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module OpenAI
1919
| :"o4-mini-deep-research-2025-06-26"
2020
| :"computer-use-preview"
2121
| :"computer-use-preview-2025-03-11"
22+
| :"gpt-5-codex"
2223

2324
module ResponsesOnlyModel
2425
extend OpenAI::Internal::Type::Enum
@@ -33,6 +34,7 @@ module OpenAI
3334
O4_MINI_DEEP_RESEARCH_2025_06_26: :"o4-mini-deep-research-2025-06-26"
3435
COMPUTER_USE_PREVIEW: :"computer-use-preview"
3536
COMPUTER_USE_PREVIEW_2025_03_11: :"computer-use-preview-2025-03-11"
37+
GPT_5_CODEX: :"gpt-5-codex"
3638

3739
def self?.values: -> ::Array[OpenAI::Models::AllModels::responses_only_model]
3840
end

sig/openai/models/responses_model.rbs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module OpenAI
1919
| :"o4-mini-deep-research-2025-06-26"
2020
| :"computer-use-preview"
2121
| :"computer-use-preview-2025-03-11"
22+
| :"gpt-5-codex"
2223

2324
module ResponsesOnlyModel
2425
extend OpenAI::Internal::Type::Enum
@@ -33,6 +34,7 @@ module OpenAI
3334
O4_MINI_DEEP_RESEARCH_2025_06_26: :"o4-mini-deep-research-2025-06-26"
3435
COMPUTER_USE_PREVIEW: :"computer-use-preview"
3536
COMPUTER_USE_PREVIEW_2025_03_11: :"computer-use-preview-2025-03-11"
37+
GPT_5_CODEX: :"gpt-5-codex"
3638

3739
def self?.values: -> ::Array[OpenAI::Models::ResponsesModel::responses_only_model]
3840
end

0 commit comments

Comments
 (0)