openai 0.124.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +18 -0
- data/README.md +1 -1
- data/lib/openai/internal/stream.rb +1 -1
- data/lib/openai/internal/transport/base_client.rb +11 -2
- data/lib/openai/internal/type/base_stream.rb +10 -0
- data/lib/openai/models/all_models.rb +1 -0
- data/lib/openai/models/beta/agent.rb +2 -2
- data/lib/openai/models/beta/agent_create_params.rb +9 -9
- data/lib/openai/models/beta/agent_session.rb +2 -2
- data/lib/openai/models/beta/agent_update_params.rb +9 -12
- data/lib/openai/models/beta/agents/automation_agent_config.rb +2 -2
- data/lib/openai/models/beta/agents/automation_target_param.rb +9 -12
- data/lib/openai/models/beta/agents/one_time_automation.rb +28 -1
- data/lib/openai/models/beta/agents/periodic_automation.rb +28 -1
- data/lib/openai/models/beta/agents/session_create_params.rb +9 -12
- data/lib/openai/models/beta/beta_response.rb +9 -0
- data/lib/openai/models/beta/beta_responses_client_event.rb +76 -1
- data/lib/openai/models/beta/response_compact_params.rb +9 -0
- data/lib/openai/models/beta/response_create_params.rb +70 -1
- data/lib/openai/models/chat_model.rb +2 -0
- data/lib/openai/models/live/session_config.rb +12 -1
- data/lib/openai/models/live/session_resource.rb +12 -1
- data/lib/openai/models/responses/response_compact_params.rb +9 -0
- data/lib/openai/models/responses/response_create_params.rb +61 -1
- data/lib/openai/models/responses/responses_client_event.rb +65 -1
- data/lib/openai/models/responses_model.rb +1 -0
- data/lib/openai/resources/beta/agents/sessions/events.rb +1 -0
- data/lib/openai/resources/beta/agents/sessions.rb +1 -0
- data/lib/openai/resources/beta/agents.rb +2 -3
- data/lib/openai/resources/beta/responses.rb +12 -2
- data/lib/openai/resources/responses.rb +12 -2
- data/lib/openai/version.rb +1 -1
- data/rbi/openai/internal/transport/base_client.rbi +4 -1
- data/rbi/openai/internal/type/base_stream.rbi +5 -0
- data/rbi/openai/models/all_models.rbi +1 -0
- data/rbi/openai/models/beta/agent.rbi +2 -2
- data/rbi/openai/models/beta/agent_create_params.rbi +9 -9
- data/rbi/openai/models/beta/agent_session.rbi +2 -2
- data/rbi/openai/models/beta/agent_update_params.rbi +9 -12
- data/rbi/openai/models/beta/agents/automation_agent_config.rbi +2 -2
- data/rbi/openai/models/beta/agents/automation_target_param.rbi +9 -12
- data/rbi/openai/models/beta/agents/one_time_automation.rbi +28 -1
- data/rbi/openai/models/beta/agents/periodic_automation.rbi +28 -1
- data/rbi/openai/models/beta/agents/session_create_params.rbi +9 -12
- data/rbi/openai/models/beta/beta_response.rbi +3 -0
- data/rbi/openai/models/beta/beta_responses_client_event.rbi +145 -0
- data/rbi/openai/models/beta/response_compact_params.rbi +3 -0
- data/rbi/openai/models/beta/response_create_params.rbi +116 -0
- data/rbi/openai/models/chat_model.rbi +2 -0
- data/rbi/openai/models/live/session_config.rbi +12 -0
- data/rbi/openai/models/live/session_resource.rbi +12 -0
- data/rbi/openai/models/responses/response_compact_params.rbi +3 -0
- data/rbi/openai/models/responses/response_create_params.rbi +117 -0
- data/rbi/openai/models/responses/responses_client_event.rbi +135 -0
- data/rbi/openai/models/responses_model.rbi +1 -0
- data/rbi/openai/resources/beta/agents.rbi +2 -3
- data/rbi/openai/resources/beta/responses.rbi +10 -0
- data/rbi/openai/resources/responses.rbi +12 -0
- data/sig/openai/internal/transport/base_client.rbs +1 -0
- data/sig/openai/internal/type/base_stream.rbs +2 -0
- data/sig/openai/models/all_models.rbs +2 -0
- data/sig/openai/models/beta/agent.rbs +2 -2
- data/sig/openai/models/beta/agent_create_params.rbs +8 -8
- data/sig/openai/models/beta/agent_session.rbs +2 -2
- data/sig/openai/models/beta/agent_update_params.rbs +8 -10
- data/sig/openai/models/beta/agents/automation_agent_config.rbs +2 -2
- data/sig/openai/models/beta/agents/automation_target_param.rbs +8 -10
- data/sig/openai/models/beta/agents/one_time_automation.rbs +20 -2
- data/sig/openai/models/beta/agents/periodic_automation.rbs +20 -2
- data/sig/openai/models/beta/agents/session_create_params.rbs +8 -10
- data/sig/openai/models/beta/beta_response.rbs +6 -0
- data/sig/openai/models/beta/beta_responses_client_event.rbs +79 -0
- data/sig/openai/models/beta/response_compact_params.rbs +6 -0
- data/sig/openai/models/beta/response_create_params.rbs +79 -0
- data/sig/openai/models/chat_model.rbs +4 -0
- data/sig/openai/models/live/session_config.rbs +10 -0
- data/sig/openai/models/live/session_resource.rbs +10 -0
- data/sig/openai/models/responses/response_compact_params.rbs +6 -0
- data/sig/openai/models/responses/response_create_params.rbs +73 -0
- data/sig/openai/models/responses/responses_client_event.rbs +73 -0
- data/sig/openai/models/responses_model.rbs +2 -0
- data/sig/openai/resources/beta/responses.rbs +2 -0
- data/sig/openai/resources/responses.rbs +3 -0
- metadata +1 -1
|
@@ -754,7 +754,9 @@ module OpenAI
|
|
|
754
754
|
|
|
755
755
|
type model =
|
|
756
756
|
:"gpt-6-astra"
|
|
757
|
+
| :"gpt-6.2-astra"
|
|
757
758
|
| :"gpt-6.1-sol"
|
|
759
|
+
| :"gpt-6.2-sol"
|
|
758
760
|
| :"gpt-6.1-terra"
|
|
759
761
|
| :"gpt-6-sol"
|
|
760
762
|
| :"gpt-6-luna"
|
|
@@ -864,6 +866,7 @@ module OpenAI
|
|
|
864
866
|
| :"gpt-5.6-cyber"
|
|
865
867
|
| :"gpt-6-cyber"
|
|
866
868
|
| :"gpt-rosalind-research"
|
|
869
|
+
| :"gpt-6.2-astra-law"
|
|
867
870
|
| String
|
|
868
871
|
|
|
869
872
|
module Model
|
|
@@ -872,7 +875,9 @@ module OpenAI
|
|
|
872
875
|
def self?.variants: -> ::Array[OpenAI::Models::Beta::BetaResponse::model]
|
|
873
876
|
|
|
874
877
|
GPT_6_ASTRA: :"gpt-6-astra"
|
|
878
|
+
GPT_6_2_ASTRA: :"gpt-6.2-astra"
|
|
875
879
|
GPT_6_1_SOL: :"gpt-6.1-sol"
|
|
880
|
+
GPT_6_2_SOL: :"gpt-6.2-sol"
|
|
876
881
|
GPT_6_1_TERRA: :"gpt-6.1-terra"
|
|
877
882
|
GPT_6_SOL: :"gpt-6-sol"
|
|
878
883
|
GPT_6_LUNA: :"gpt-6-luna"
|
|
@@ -982,6 +987,7 @@ module OpenAI
|
|
|
982
987
|
GPT_5_6_CYBER: :"gpt-5.6-cyber"
|
|
983
988
|
GPT_6_CYBER: :"gpt-6-cyber"
|
|
984
989
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
990
|
+
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
985
991
|
end
|
|
986
992
|
|
|
987
993
|
type tool_choice =
|
|
@@ -16,6 +16,7 @@ module OpenAI
|
|
|
16
16
|
?type: :"response.create",
|
|
17
17
|
?access_programs: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::AccessPrograms,
|
|
18
18
|
?background: bool?,
|
|
19
|
+
?background_options: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions,
|
|
19
20
|
?context_management: ::Array[OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::ContextManagement]?,
|
|
20
21
|
?conversation: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::conversation?,
|
|
21
22
|
?generate: bool,
|
|
@@ -68,6 +69,18 @@ module OpenAI
|
|
|
68
69
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
69
70
|
attr_accessor background: bool?
|
|
70
71
|
|
|
72
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
73
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
74
|
+
# omitted.
|
|
75
|
+
attr_reader background_options: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions?
|
|
76
|
+
|
|
77
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
78
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
79
|
+
# omitted.
|
|
80
|
+
def background_options=: (
|
|
81
|
+
OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions
|
|
82
|
+
) -> OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions
|
|
83
|
+
|
|
71
84
|
# Context management configuration for this request.
|
|
72
85
|
attr_accessor context_management: ::Array[OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::ContextManagement]?
|
|
73
86
|
|
|
@@ -441,6 +454,10 @@ module OpenAI
|
|
|
441
454
|
# @param background
|
|
442
455
|
# Whether to run the model response in the background.
|
|
443
456
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
457
|
+
# @param background_options
|
|
458
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
459
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
460
|
+
# omitted.
|
|
444
461
|
# @param context_management
|
|
445
462
|
# Context management configuration for this request.
|
|
446
463
|
# @param conversation
|
|
@@ -681,6 +698,7 @@ module OpenAI
|
|
|
681
698
|
def initialize: (
|
|
682
699
|
?access_programs: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::AccessPrograms,
|
|
683
700
|
?background: bool?,
|
|
701
|
+
?background_options: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions,
|
|
684
702
|
?context_management: ::Array[OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::ContextManagement]?,
|
|
685
703
|
?conversation: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::conversation?,
|
|
686
704
|
?generate: bool,
|
|
@@ -722,6 +740,7 @@ module OpenAI
|
|
|
722
740
|
?type: :"response.create",
|
|
723
741
|
?access_programs: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::AccessPrograms,
|
|
724
742
|
?background: bool?,
|
|
743
|
+
?background_options: OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions,
|
|
725
744
|
?context_management: ::Array[OpenAI::Beta::BetaResponsesClientEvent::ResponseCreate::ContextManagement]?,
|
|
726
745
|
?conversation: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::conversation?,
|
|
727
746
|
?generate: bool,
|
|
@@ -822,6 +841,60 @@ module OpenAI
|
|
|
822
841
|
end
|
|
823
842
|
end
|
|
824
843
|
|
|
844
|
+
type background_options =
|
|
845
|
+
{
|
|
846
|
+
?completion_window: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions::completion_window,
|
|
847
|
+
?continuation_id: String
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
class BackgroundOptions < OpenAI::Internal::Type::BaseModel
|
|
851
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
852
|
+
# `8h` select discounted background execution.
|
|
853
|
+
attr_reader completion_window: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions::completion_window?
|
|
854
|
+
|
|
855
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
856
|
+
# `8h` select discounted background execution.
|
|
857
|
+
def completion_window=: (
|
|
858
|
+
OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions::completion_window
|
|
859
|
+
) -> OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions::completion_window
|
|
860
|
+
|
|
861
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
862
|
+
# requests. It does not add prior history to the input.
|
|
863
|
+
attr_reader continuation_id: String?
|
|
864
|
+
|
|
865
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
866
|
+
# requests. It does not add prior history to the input.
|
|
867
|
+
def continuation_id=: (String) -> String
|
|
868
|
+
|
|
869
|
+
# @param completion_window
|
|
870
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
871
|
+
# `8h` select discounted background execution.
|
|
872
|
+
# @param continuation_id
|
|
873
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
874
|
+
# requests. It does not add prior history to the input.
|
|
875
|
+
def initialize: (
|
|
876
|
+
?completion_window: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions::completion_window,
|
|
877
|
+
?continuation_id: String
|
|
878
|
+
) -> void
|
|
879
|
+
|
|
880
|
+
def to_hash: -> {
|
|
881
|
+
?completion_window: OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions::completion_window,
|
|
882
|
+
?continuation_id: String
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
type completion_window = :soonest | :"2h" | :"8h"
|
|
886
|
+
|
|
887
|
+
module CompletionWindow
|
|
888
|
+
extend OpenAI::Internal::Type::Enum
|
|
889
|
+
|
|
890
|
+
SOONEST: :soonest
|
|
891
|
+
COMPLETION_WINDOW_2H: :"2h"
|
|
892
|
+
COMPLETION_WINDOW_8H: :"8h"
|
|
893
|
+
|
|
894
|
+
def self?.values: -> ::Array[OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::BackgroundOptions::completion_window]
|
|
895
|
+
end
|
|
896
|
+
end
|
|
897
|
+
|
|
825
898
|
type context_management =
|
|
826
899
|
{ type: String, ?compact_threshold: Integer? }
|
|
827
900
|
|
|
@@ -903,7 +976,9 @@ module OpenAI
|
|
|
903
976
|
|
|
904
977
|
type model =
|
|
905
978
|
:"gpt-6-astra"
|
|
979
|
+
| :"gpt-6.2-astra"
|
|
906
980
|
| :"gpt-6.1-sol"
|
|
981
|
+
| :"gpt-6.2-sol"
|
|
907
982
|
| :"gpt-6.1-terra"
|
|
908
983
|
| :"gpt-6-sol"
|
|
909
984
|
| :"gpt-6-luna"
|
|
@@ -1014,6 +1089,7 @@ module OpenAI
|
|
|
1014
1089
|
| :"gpt-6-cyber"
|
|
1015
1090
|
| :"gpt-rosalind-research"
|
|
1016
1091
|
| :"gpt-6-rosalind"
|
|
1092
|
+
| :"gpt-6.2-astra-law"
|
|
1017
1093
|
| String
|
|
1018
1094
|
|
|
1019
1095
|
module Model
|
|
@@ -1022,7 +1098,9 @@ module OpenAI
|
|
|
1022
1098
|
def self?.variants: -> ::Array[OpenAI::Models::Beta::BetaResponsesClientEvent::ResponseCreate::model]
|
|
1023
1099
|
|
|
1024
1100
|
GPT_6_ASTRA: :"gpt-6-astra"
|
|
1101
|
+
GPT_6_2_ASTRA: :"gpt-6.2-astra"
|
|
1025
1102
|
GPT_6_1_SOL: :"gpt-6.1-sol"
|
|
1103
|
+
GPT_6_2_SOL: :"gpt-6.2-sol"
|
|
1026
1104
|
GPT_6_1_TERRA: :"gpt-6.1-terra"
|
|
1027
1105
|
GPT_6_SOL: :"gpt-6-sol"
|
|
1028
1106
|
GPT_6_LUNA: :"gpt-6-luna"
|
|
@@ -1133,6 +1211,7 @@ module OpenAI
|
|
|
1133
1211
|
GPT_6_CYBER: :"gpt-6-cyber"
|
|
1134
1212
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1135
1213
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1214
|
+
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
1136
1215
|
end
|
|
1137
1216
|
|
|
1138
1217
|
type moderation =
|
|
@@ -172,7 +172,9 @@ module OpenAI
|
|
|
172
172
|
|
|
173
173
|
type model =
|
|
174
174
|
:"gpt-6-astra"
|
|
175
|
+
| :"gpt-6.2-astra"
|
|
175
176
|
| :"gpt-6.1-sol"
|
|
177
|
+
| :"gpt-6.2-sol"
|
|
176
178
|
| :"gpt-6.1-terra"
|
|
177
179
|
| :"gpt-6-sol"
|
|
178
180
|
| :"gpt-6-luna"
|
|
@@ -283,6 +285,7 @@ module OpenAI
|
|
|
283
285
|
| :"gpt-6-cyber"
|
|
284
286
|
| :"gpt-rosalind-research"
|
|
285
287
|
| :"gpt-6-rosalind"
|
|
288
|
+
| :"gpt-6.2-astra-law"
|
|
286
289
|
| String
|
|
287
290
|
|
|
288
291
|
module Model
|
|
@@ -291,7 +294,9 @@ module OpenAI
|
|
|
291
294
|
def self?.variants: -> ::Array[OpenAI::Models::Beta::ResponseCompactParams::model]
|
|
292
295
|
|
|
293
296
|
GPT_6_ASTRA: :"gpt-6-astra"
|
|
297
|
+
GPT_6_2_ASTRA: :"gpt-6.2-astra"
|
|
294
298
|
GPT_6_1_SOL: :"gpt-6.1-sol"
|
|
299
|
+
GPT_6_2_SOL: :"gpt-6.2-sol"
|
|
295
300
|
GPT_6_1_TERRA: :"gpt-6.1-terra"
|
|
296
301
|
GPT_6_SOL: :"gpt-6-sol"
|
|
297
302
|
GPT_6_LUNA: :"gpt-6-luna"
|
|
@@ -402,6 +407,7 @@ module OpenAI
|
|
|
402
407
|
GPT_6_CYBER: :"gpt-6-cyber"
|
|
403
408
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
404
409
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
410
|
+
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
405
411
|
end
|
|
406
412
|
|
|
407
413
|
type image =
|
|
@@ -5,6 +5,7 @@ module OpenAI
|
|
|
5
5
|
{
|
|
6
6
|
?access_programs: OpenAI::Beta::ResponseCreateParams::AccessPrograms,
|
|
7
7
|
?background: bool?,
|
|
8
|
+
?background_options: OpenAI::Beta::ResponseCreateParams::BackgroundOptions,
|
|
8
9
|
?context_management: ::Array[OpenAI::Beta::ResponseCreateParams::ContextManagement]?,
|
|
9
10
|
?conversation: OpenAI::Models::Beta::ResponseCreateParams::conversation?,
|
|
10
11
|
?image: OpenAI::Beta::ResponseCreateParams::Image,
|
|
@@ -56,6 +57,18 @@ module OpenAI
|
|
|
56
57
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
57
58
|
attr_accessor background: bool?
|
|
58
59
|
|
|
60
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
61
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
62
|
+
# omitted.
|
|
63
|
+
attr_reader background_options: OpenAI::Beta::ResponseCreateParams::BackgroundOptions?
|
|
64
|
+
|
|
65
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
66
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
67
|
+
# omitted.
|
|
68
|
+
def background_options=: (
|
|
69
|
+
OpenAI::Beta::ResponseCreateParams::BackgroundOptions
|
|
70
|
+
) -> OpenAI::Beta::ResponseCreateParams::BackgroundOptions
|
|
71
|
+
|
|
59
72
|
# Context management configuration for this request.
|
|
60
73
|
attr_accessor context_management: ::Array[OpenAI::Beta::ResponseCreateParams::ContextManagement]?
|
|
61
74
|
|
|
@@ -405,6 +418,10 @@ module OpenAI
|
|
|
405
418
|
# @param background
|
|
406
419
|
# Whether to run the model response in the background.
|
|
407
420
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
421
|
+
# @param background_options
|
|
422
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
423
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
424
|
+
# omitted.
|
|
408
425
|
# @param context_management
|
|
409
426
|
# Context management configuration for this request.
|
|
410
427
|
# @param conversation
|
|
@@ -626,6 +643,7 @@ module OpenAI
|
|
|
626
643
|
def initialize: (
|
|
627
644
|
?access_programs: OpenAI::Beta::ResponseCreateParams::AccessPrograms,
|
|
628
645
|
?background: bool?,
|
|
646
|
+
?background_options: OpenAI::Beta::ResponseCreateParams::BackgroundOptions,
|
|
629
647
|
?context_management: ::Array[OpenAI::Beta::ResponseCreateParams::ContextManagement]?,
|
|
630
648
|
?conversation: OpenAI::Models::Beta::ResponseCreateParams::conversation?,
|
|
631
649
|
?image: OpenAI::Beta::ResponseCreateParams::Image,
|
|
@@ -665,6 +683,7 @@ module OpenAI
|
|
|
665
683
|
def to_hash: -> {
|
|
666
684
|
?access_programs: OpenAI::Beta::ResponseCreateParams::AccessPrograms,
|
|
667
685
|
?background: bool?,
|
|
686
|
+
?background_options: OpenAI::Beta::ResponseCreateParams::BackgroundOptions,
|
|
668
687
|
?context_management: ::Array[OpenAI::Beta::ResponseCreateParams::ContextManagement]?,
|
|
669
688
|
?conversation: OpenAI::Models::Beta::ResponseCreateParams::conversation?,
|
|
670
689
|
?image: OpenAI::Beta::ResponseCreateParams::Image,
|
|
@@ -764,6 +783,60 @@ module OpenAI
|
|
|
764
783
|
end
|
|
765
784
|
end
|
|
766
785
|
|
|
786
|
+
type background_options =
|
|
787
|
+
{
|
|
788
|
+
?completion_window: OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions::completion_window,
|
|
789
|
+
?continuation_id: String
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
class BackgroundOptions < OpenAI::Internal::Type::BaseModel
|
|
793
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
794
|
+
# `8h` select discounted background execution.
|
|
795
|
+
attr_reader completion_window: OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions::completion_window?
|
|
796
|
+
|
|
797
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
798
|
+
# `8h` select discounted background execution.
|
|
799
|
+
def completion_window=: (
|
|
800
|
+
OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions::completion_window
|
|
801
|
+
) -> OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions::completion_window
|
|
802
|
+
|
|
803
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
804
|
+
# requests. It does not add prior history to the input.
|
|
805
|
+
attr_reader continuation_id: String?
|
|
806
|
+
|
|
807
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
808
|
+
# requests. It does not add prior history to the input.
|
|
809
|
+
def continuation_id=: (String) -> String
|
|
810
|
+
|
|
811
|
+
# @param completion_window
|
|
812
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
813
|
+
# `8h` select discounted background execution.
|
|
814
|
+
# @param continuation_id
|
|
815
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
816
|
+
# requests. It does not add prior history to the input.
|
|
817
|
+
def initialize: (
|
|
818
|
+
?completion_window: OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions::completion_window,
|
|
819
|
+
?continuation_id: String
|
|
820
|
+
) -> void
|
|
821
|
+
|
|
822
|
+
def to_hash: -> {
|
|
823
|
+
?completion_window: OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions::completion_window,
|
|
824
|
+
?continuation_id: String
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
type completion_window = :soonest | :"2h" | :"8h"
|
|
828
|
+
|
|
829
|
+
module CompletionWindow
|
|
830
|
+
extend OpenAI::Internal::Type::Enum
|
|
831
|
+
|
|
832
|
+
SOONEST: :soonest
|
|
833
|
+
COMPLETION_WINDOW_2H: :"2h"
|
|
834
|
+
COMPLETION_WINDOW_8H: :"8h"
|
|
835
|
+
|
|
836
|
+
def self?.values: -> ::Array[OpenAI::Models::Beta::ResponseCreateParams::BackgroundOptions::completion_window]
|
|
837
|
+
end
|
|
838
|
+
end
|
|
839
|
+
|
|
767
840
|
type context_management = { type: String, ?compact_threshold: Integer? }
|
|
768
841
|
|
|
769
842
|
class ContextManagement < OpenAI::Internal::Type::BaseModel
|
|
@@ -843,7 +916,9 @@ module OpenAI
|
|
|
843
916
|
|
|
844
917
|
type model =
|
|
845
918
|
:"gpt-6-astra"
|
|
919
|
+
| :"gpt-6.2-astra"
|
|
846
920
|
| :"gpt-6.1-sol"
|
|
921
|
+
| :"gpt-6.2-sol"
|
|
847
922
|
| :"gpt-6.1-terra"
|
|
848
923
|
| :"gpt-6-sol"
|
|
849
924
|
| :"gpt-6-luna"
|
|
@@ -954,6 +1029,7 @@ module OpenAI
|
|
|
954
1029
|
| :"gpt-6-cyber"
|
|
955
1030
|
| :"gpt-rosalind-research"
|
|
956
1031
|
| :"gpt-6-rosalind"
|
|
1032
|
+
| :"gpt-6.2-astra-law"
|
|
957
1033
|
| String
|
|
958
1034
|
|
|
959
1035
|
module Model
|
|
@@ -962,7 +1038,9 @@ module OpenAI
|
|
|
962
1038
|
def self?.variants: -> ::Array[OpenAI::Models::Beta::ResponseCreateParams::model]
|
|
963
1039
|
|
|
964
1040
|
GPT_6_ASTRA: :"gpt-6-astra"
|
|
1041
|
+
GPT_6_2_ASTRA: :"gpt-6.2-astra"
|
|
965
1042
|
GPT_6_1_SOL: :"gpt-6.1-sol"
|
|
1043
|
+
GPT_6_2_SOL: :"gpt-6.2-sol"
|
|
966
1044
|
GPT_6_1_TERRA: :"gpt-6.1-terra"
|
|
967
1045
|
GPT_6_SOL: :"gpt-6-sol"
|
|
968
1046
|
GPT_6_LUNA: :"gpt-6-luna"
|
|
@@ -1073,6 +1151,7 @@ module OpenAI
|
|
|
1073
1151
|
GPT_6_CYBER: :"gpt-6-cyber"
|
|
1074
1152
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
1075
1153
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
1154
|
+
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
1076
1155
|
end
|
|
1077
1156
|
|
|
1078
1157
|
type moderation =
|
|
@@ -2,7 +2,9 @@ module OpenAI
|
|
|
2
2
|
module Models
|
|
3
3
|
type chat_model =
|
|
4
4
|
:"gpt-6-astra"
|
|
5
|
+
| :"gpt-6.2-astra"
|
|
5
6
|
| :"gpt-6.1-sol"
|
|
7
|
+
| :"gpt-6.2-sol"
|
|
6
8
|
| :"gpt-6.1-terra"
|
|
7
9
|
| :"gpt-6-sol"
|
|
8
10
|
| :"gpt-6-luna"
|
|
@@ -96,7 +98,9 @@ module OpenAI
|
|
|
96
98
|
extend OpenAI::Internal::Type::Enum
|
|
97
99
|
|
|
98
100
|
GPT_6_ASTRA: :"gpt-6-astra"
|
|
101
|
+
GPT_6_2_ASTRA: :"gpt-6.2-astra"
|
|
99
102
|
GPT_6_1_SOL: :"gpt-6.1-sol"
|
|
103
|
+
GPT_6_2_SOL: :"gpt-6.2-sol"
|
|
100
104
|
GPT_6_1_TERRA: :"gpt-6.1-terra"
|
|
101
105
|
GPT_6_SOL: :"gpt-6-sol"
|
|
102
106
|
GPT_6_LUNA: :"gpt-6-luna"
|
|
@@ -9,6 +9,7 @@ module OpenAI
|
|
|
9
9
|
?delegation: OpenAI::Models::Live::SessionConfig::delegation?,
|
|
10
10
|
?input: ::Array[OpenAI::Models::Live::initial_item],
|
|
11
11
|
?instructions: String?,
|
|
12
|
+
?safety_identifier: String?,
|
|
12
13
|
?store: bool,
|
|
13
14
|
?triggers: ::Array[OpenAI::Live::DecisionTrigger]
|
|
14
15
|
}
|
|
@@ -64,6 +65,10 @@ module OpenAI
|
|
|
64
65
|
# server defaults. Immutable after startup.
|
|
65
66
|
attr_accessor instructions: String?
|
|
66
67
|
|
|
68
|
+
# A stable identifier for your end user, used for safety monitoring and abuse
|
|
69
|
+
# detection.
|
|
70
|
+
attr_accessor safety_identifier: String?
|
|
71
|
+
|
|
67
72
|
# Whether to store the session for later forking and recording download. Defaults
|
|
68
73
|
# to false for new sessions.
|
|
69
74
|
attr_reader store: bool?
|
|
@@ -112,6 +117,9 @@ module OpenAI
|
|
|
112
117
|
# [backend prompt](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).
|
|
113
118
|
# Limited to 16,384 client-supplied tokens. Omitted or blank instructions use
|
|
114
119
|
# server defaults. Immutable after startup.
|
|
120
|
+
# @param safety_identifier
|
|
121
|
+
# A stable identifier for your end user, used for safety monitoring and abuse
|
|
122
|
+
# detection.
|
|
115
123
|
# @param store
|
|
116
124
|
# Whether to store the session for later forking and recording download. Defaults
|
|
117
125
|
# to false for new sessions.
|
|
@@ -127,6 +135,7 @@ module OpenAI
|
|
|
127
135
|
?delegation: OpenAI::Models::Live::SessionConfig::delegation?,
|
|
128
136
|
?input: ::Array[OpenAI::Models::Live::initial_item],
|
|
129
137
|
?instructions: String?,
|
|
138
|
+
?safety_identifier: String?,
|
|
130
139
|
?store: bool,
|
|
131
140
|
?triggers: ::Array[OpenAI::Live::DecisionTrigger]
|
|
132
141
|
) -> void
|
|
@@ -138,6 +147,7 @@ module OpenAI
|
|
|
138
147
|
?delegation: OpenAI::Models::Live::SessionConfig::delegation?,
|
|
139
148
|
?input: ::Array[OpenAI::Models::Live::initial_item],
|
|
140
149
|
?instructions: String?,
|
|
150
|
+
?safety_identifier: String?,
|
|
141
151
|
?store: bool,
|
|
142
152
|
?triggers: ::Array[OpenAI::Live::DecisionTrigger]
|
|
143
153
|
}
|
|
@@ -12,6 +12,7 @@ module OpenAI
|
|
|
12
12
|
?delegation: OpenAI::Models::Live::SessionResource::delegation?,
|
|
13
13
|
?input: ::Array[OpenAI::Models::Live::initial_item],
|
|
14
14
|
?instructions: String?,
|
|
15
|
+
?safety_identifier: String?,
|
|
15
16
|
?store: bool,
|
|
16
17
|
?triggers: ::Array[OpenAI::Live::DecisionTrigger]
|
|
17
18
|
}
|
|
@@ -79,6 +80,10 @@ module OpenAI
|
|
|
79
80
|
# server defaults. Immutable after startup.
|
|
80
81
|
attr_accessor instructions: String?
|
|
81
82
|
|
|
83
|
+
# A stable identifier for your end user, used for safety monitoring and abuse
|
|
84
|
+
# detection.
|
|
85
|
+
attr_accessor safety_identifier: String?
|
|
86
|
+
|
|
82
87
|
# Whether to store the session for later forking and recording download. Defaults
|
|
83
88
|
# to false for new sessions.
|
|
84
89
|
attr_reader store: bool?
|
|
@@ -132,6 +137,9 @@ module OpenAI
|
|
|
132
137
|
# [backend prompt](https://developers.openai.com/api/docs/guides/live-delegation#start-with-your-existing-backend-prompt).
|
|
133
138
|
# Limited to 16,384 client-supplied tokens. Omitted or blank instructions use
|
|
134
139
|
# server defaults. Immutable after startup.
|
|
140
|
+
# @param safety_identifier
|
|
141
|
+
# A stable identifier for your end user, used for safety monitoring and abuse
|
|
142
|
+
# detection.
|
|
135
143
|
# @param store
|
|
136
144
|
# Whether to store the session for later forking and recording download. Defaults
|
|
137
145
|
# to false for new sessions.
|
|
@@ -153,6 +161,7 @@ module OpenAI
|
|
|
153
161
|
?delegation: OpenAI::Models::Live::SessionResource::delegation?,
|
|
154
162
|
?input: ::Array[OpenAI::Models::Live::initial_item],
|
|
155
163
|
?instructions: String?,
|
|
164
|
+
?safety_identifier: String?,
|
|
156
165
|
?store: bool,
|
|
157
166
|
?triggers: ::Array[OpenAI::Live::DecisionTrigger],
|
|
158
167
|
?status: :active
|
|
@@ -168,6 +177,7 @@ module OpenAI
|
|
|
168
177
|
?delegation: OpenAI::Models::Live::SessionResource::delegation?,
|
|
169
178
|
?input: ::Array[OpenAI::Models::Live::initial_item],
|
|
170
179
|
?instructions: String?,
|
|
180
|
+
?safety_identifier: String?,
|
|
171
181
|
?store: bool,
|
|
172
182
|
?triggers: ::Array[OpenAI::Live::DecisionTrigger]
|
|
173
183
|
}
|
|
@@ -163,7 +163,9 @@ module OpenAI
|
|
|
163
163
|
|
|
164
164
|
type model =
|
|
165
165
|
:"gpt-6-astra"
|
|
166
|
+
| :"gpt-6.2-astra"
|
|
166
167
|
| :"gpt-6.1-sol"
|
|
168
|
+
| :"gpt-6.2-sol"
|
|
167
169
|
| :"gpt-6.1-terra"
|
|
168
170
|
| :"gpt-6-sol"
|
|
169
171
|
| :"gpt-6-luna"
|
|
@@ -274,6 +276,7 @@ module OpenAI
|
|
|
274
276
|
| :"gpt-6-cyber"
|
|
275
277
|
| :"gpt-rosalind-research"
|
|
276
278
|
| :"gpt-6-rosalind"
|
|
279
|
+
| :"gpt-6.2-astra-law"
|
|
277
280
|
| String
|
|
278
281
|
|
|
279
282
|
module Model
|
|
@@ -282,7 +285,9 @@ module OpenAI
|
|
|
282
285
|
def self?.variants: -> ::Array[OpenAI::Models::Responses::ResponseCompactParams::model]
|
|
283
286
|
|
|
284
287
|
GPT_6_ASTRA: :"gpt-6-astra"
|
|
288
|
+
GPT_6_2_ASTRA: :"gpt-6.2-astra"
|
|
285
289
|
GPT_6_1_SOL: :"gpt-6.1-sol"
|
|
290
|
+
GPT_6_2_SOL: :"gpt-6.2-sol"
|
|
286
291
|
GPT_6_1_TERRA: :"gpt-6.1-terra"
|
|
287
292
|
GPT_6_SOL: :"gpt-6-sol"
|
|
288
293
|
GPT_6_LUNA: :"gpt-6-luna"
|
|
@@ -393,6 +398,7 @@ module OpenAI
|
|
|
393
398
|
GPT_6_CYBER: :"gpt-6-cyber"
|
|
394
399
|
GPT_ROSALIND_RESEARCH: :"gpt-rosalind-research"
|
|
395
400
|
GPT_6_ROSALIND: :"gpt-6-rosalind"
|
|
401
|
+
GPT_6_2_ASTRA_LAW: :"gpt-6.2-astra-law"
|
|
396
402
|
end
|
|
397
403
|
|
|
398
404
|
type image =
|
|
@@ -5,6 +5,7 @@ module OpenAI
|
|
|
5
5
|
{
|
|
6
6
|
?access_programs: OpenAI::Responses::ResponseCreateParams::AccessPrograms,
|
|
7
7
|
?background: bool?,
|
|
8
|
+
?background_options: OpenAI::Responses::ResponseCreateParams::BackgroundOptions,
|
|
8
9
|
?context_management: ::Array[OpenAI::Responses::ResponseCreateParams::ContextManagement]?,
|
|
9
10
|
?conversation: OpenAI::Models::Responses::ResponseCreateParams::conversation?,
|
|
10
11
|
?image: OpenAI::Responses::ResponseCreateParams::Image,
|
|
@@ -54,6 +55,18 @@ module OpenAI
|
|
|
54
55
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
55
56
|
attr_accessor background: bool?
|
|
56
57
|
|
|
58
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
59
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
60
|
+
# omitted.
|
|
61
|
+
attr_reader background_options: OpenAI::Responses::ResponseCreateParams::BackgroundOptions?
|
|
62
|
+
|
|
63
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
64
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
65
|
+
# omitted.
|
|
66
|
+
def background_options=: (
|
|
67
|
+
OpenAI::Responses::ResponseCreateParams::BackgroundOptions
|
|
68
|
+
) -> OpenAI::Responses::ResponseCreateParams::BackgroundOptions
|
|
69
|
+
|
|
57
70
|
# Context management configuration for this request.
|
|
58
71
|
attr_accessor context_management: ::Array[OpenAI::Responses::ResponseCreateParams::ContextManagement]?
|
|
59
72
|
|
|
@@ -394,6 +407,10 @@ module OpenAI
|
|
|
394
407
|
# @param background
|
|
395
408
|
# Whether to run the model response in the background.
|
|
396
409
|
# [Learn more](https://developers.openai.com/api/docs/guides/background).
|
|
410
|
+
# @param background_options
|
|
411
|
+
# Options for background execution on HTTP requests. The `2h` and `8h` completion
|
|
412
|
+
# windows require `background: true`, Standard processing, and `stream: false` or
|
|
413
|
+
# omitted.
|
|
397
414
|
# @param context_management
|
|
398
415
|
# Context management configuration for this request.
|
|
399
416
|
# @param conversation
|
|
@@ -613,6 +630,7 @@ module OpenAI
|
|
|
613
630
|
def initialize: (
|
|
614
631
|
?access_programs: OpenAI::Responses::ResponseCreateParams::AccessPrograms,
|
|
615
632
|
?background: bool?,
|
|
633
|
+
?background_options: OpenAI::Responses::ResponseCreateParams::BackgroundOptions,
|
|
616
634
|
?context_management: ::Array[OpenAI::Responses::ResponseCreateParams::ContextManagement]?,
|
|
617
635
|
?conversation: OpenAI::Models::Responses::ResponseCreateParams::conversation?,
|
|
618
636
|
?image: OpenAI::Responses::ResponseCreateParams::Image,
|
|
@@ -650,6 +668,7 @@ module OpenAI
|
|
|
650
668
|
def to_hash: -> {
|
|
651
669
|
?access_programs: OpenAI::Responses::ResponseCreateParams::AccessPrograms,
|
|
652
670
|
?background: bool?,
|
|
671
|
+
?background_options: OpenAI::Responses::ResponseCreateParams::BackgroundOptions,
|
|
653
672
|
?context_management: ::Array[OpenAI::Responses::ResponseCreateParams::ContextManagement]?,
|
|
654
673
|
?conversation: OpenAI::Models::Responses::ResponseCreateParams::conversation?,
|
|
655
674
|
?image: OpenAI::Responses::ResponseCreateParams::Image,
|
|
@@ -747,6 +766,60 @@ module OpenAI
|
|
|
747
766
|
end
|
|
748
767
|
end
|
|
749
768
|
|
|
769
|
+
type background_options =
|
|
770
|
+
{
|
|
771
|
+
?completion_window: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window,
|
|
772
|
+
?continuation_id: String
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
class BackgroundOptions < OpenAI::Internal::Type::BaseModel
|
|
776
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
777
|
+
# `8h` select discounted background execution.
|
|
778
|
+
attr_reader completion_window: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window?
|
|
779
|
+
|
|
780
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
781
|
+
# `8h` select discounted background execution.
|
|
782
|
+
def completion_window=: (
|
|
783
|
+
OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window
|
|
784
|
+
) -> OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window
|
|
785
|
+
|
|
786
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
787
|
+
# requests. It does not add prior history to the input.
|
|
788
|
+
attr_reader continuation_id: String?
|
|
789
|
+
|
|
790
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
791
|
+
# requests. It does not add prior history to the input.
|
|
792
|
+
def continuation_id=: (String) -> String
|
|
793
|
+
|
|
794
|
+
# @param completion_window
|
|
795
|
+
# The completion window for background execution. Defaults to `soonest`; `2h` and
|
|
796
|
+
# `8h` select discounted background execution.
|
|
797
|
+
# @param continuation_id
|
|
798
|
+
# A customer-provided opaque identifier used to prioritize related background
|
|
799
|
+
# requests. It does not add prior history to the input.
|
|
800
|
+
def initialize: (
|
|
801
|
+
?completion_window: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window,
|
|
802
|
+
?continuation_id: String
|
|
803
|
+
) -> void
|
|
804
|
+
|
|
805
|
+
def to_hash: -> {
|
|
806
|
+
?completion_window: OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window,
|
|
807
|
+
?continuation_id: String
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
type completion_window = :soonest | :"2h" | :"8h"
|
|
811
|
+
|
|
812
|
+
module CompletionWindow
|
|
813
|
+
extend OpenAI::Internal::Type::Enum
|
|
814
|
+
|
|
815
|
+
SOONEST: :soonest
|
|
816
|
+
COMPLETION_WINDOW_2H: :"2h"
|
|
817
|
+
COMPLETION_WINDOW_8H: :"8h"
|
|
818
|
+
|
|
819
|
+
def self?.values: -> ::Array[OpenAI::Models::Responses::ResponseCreateParams::BackgroundOptions::completion_window]
|
|
820
|
+
end
|
|
821
|
+
end
|
|
822
|
+
|
|
750
823
|
type context_management = { type: String, ?compact_threshold: Integer? }
|
|
751
824
|
|
|
752
825
|
class ContextManagement < OpenAI::Internal::Type::BaseModel
|