openai 0.67.0 → 0.68.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8515f14709f0142aad5e774faec12a26fc11e331272d0ac766a6053a726be73
4
- data.tar.gz: 4e8cf9a95543ec6b51b84440895bbd8ca54e3fb1255c86ef7c4fe58b4f86e397
3
+ metadata.gz: d5ff11b5e599c4ebd4c202e215b46f943356f3fc91dcf1ce7e3210b647bc3676
4
+ data.tar.gz: 3359efbf0d523d7e31f2153b012b993c30e8ed3617ff07e00ca5580bbc414c0c
5
5
  SHA512:
6
- metadata.gz: bdf14268aceab421308306c1d8e05a093d686ce33b704310ea6578e75632b05668e0167c55d10013cf9095e4fb54839bcc134be5f961c1d9e9fb7efb077424e9
7
- data.tar.gz: 7356e94789f4400d652554651a2255c7de88fb8d78c838db138eb8f88efdd056fcd0f62a9b223ba1a935142c77301e4b05214d8ca25c904b9c9f26361d3413e7
6
+ metadata.gz: db46f5c0c9f949924bdc8d39f53e0419bcf05c4fbd6ba60cd0b5619d692c25698a3b4611c0dd5058c8e96e270bf0c6a05806cd2ff6b0010dc494a6891588083b
7
+ data.tar.gz: 1323527f82c69f1f84a6143cd5af7514bbf4ed5626dfaedc8eae2a75107a60b19d0218da149d598a31eb6a3e9e5a9d3e6c9497f05e1c758d3513d8421de4852b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.68.0 (2026-06-17)
4
+
5
+ Full Changelog: [v0.67.0...v0.68.0](https://github.com/openai/openai-ruby/compare/v0.67.0...v0.68.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** update OpenAPI spec or Stainless config ([e127868](https://github.com/openai/openai-ruby/commit/e1278686c33b1981c7f4db0eb3c27f2cf2b155ac))
10
+
3
11
  ## 0.67.0 (2026-06-16)
4
12
 
5
13
  Full Changelog: [v0.66.1...v0.67.0](https://github.com/openai/openai-ruby/compare/v0.66.1...v0.67.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "openai", "~> 0.67.0"
18
+ gem "openai", "~> 0.68.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -34,8 +34,8 @@ module OpenAI
34
34
 
35
35
  # @!attribute connector_id
36
36
  # Identifier for service connectors, like those available in ChatGPT. One of
37
- # `server_url` or `connector_id` must be provided. Learn more about service
38
- # connectors
37
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
38
+ # service connectors
39
39
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
40
40
  #
41
41
  # Currently supported `connector_id` values are:
@@ -80,13 +80,20 @@ module OpenAI
80
80
  optional :server_description, String
81
81
 
82
82
  # @!attribute server_url
83
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
84
- # provided.
83
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
84
+ # must be provided.
85
85
  #
86
86
  # @return [String, nil]
87
87
  optional :server_url, String
88
88
 
89
- # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, type: :mcp)
89
+ # @!attribute tunnel_id
90
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
91
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
92
+ #
93
+ # @return [String, nil]
94
+ optional :tunnel_id, String
95
+
96
+ # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, tunnel_id: nil, type: :mcp)
90
97
  # Some parameter documentations has been truncated, see
91
98
  # {OpenAI::Models::Realtime::RealtimeResponseCreateMcpTool} for more details.
92
99
  #
@@ -110,7 +117,9 @@ module OpenAI
110
117
  #
111
118
  # @param server_description [String] Optional description of the MCP server, used to provide more context.
112
119
  #
113
- # @param server_url [String] The URL for the MCP server. One of `server_url` or `connector_id` must be
120
+ # @param server_url [String] The URL for the MCP server. One of `server_url`, `connector_id`, or
121
+ #
122
+ # @param tunnel_id [String] The Secure MCP Tunnel ID to use instead of a direct server URL. One of
114
123
  #
115
124
  # @param type [Symbol, :mcp] The type of the MCP tool. Always `mcp`.
116
125
 
@@ -162,8 +171,8 @@ module OpenAI
162
171
  end
163
172
 
164
173
  # Identifier for service connectors, like those available in ChatGPT. One of
165
- # `server_url` or `connector_id` must be provided. Learn more about service
166
- # connectors
174
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
175
+ # service connectors
167
176
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
168
177
  #
169
178
  # Currently supported `connector_id` values are:
@@ -760,8 +760,8 @@ module OpenAI
760
760
 
761
761
  # @!attribute connector_id
762
762
  # Identifier for service connectors, like those available in ChatGPT. One of
763
- # `server_url` or `connector_id` must be provided. Learn more about service
764
- # connectors
763
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
764
+ # service connectors
765
765
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
766
766
  #
767
767
  # Currently supported `connector_id` values are:
@@ -809,13 +809,20 @@ module OpenAI
809
809
  optional :server_description, String
810
810
 
811
811
  # @!attribute server_url
812
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
813
- # provided.
812
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
813
+ # must be provided.
814
814
  #
815
815
  # @return [String, nil]
816
816
  optional :server_url, String
817
817
 
818
- # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, type: :mcp)
818
+ # @!attribute tunnel_id
819
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
820
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
821
+ #
822
+ # @return [String, nil]
823
+ optional :tunnel_id, String
824
+
825
+ # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, tunnel_id: nil, type: :mcp)
819
826
  # Some parameter documentations has been truncated, see
820
827
  # {OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Tool::McpTool} for
821
828
  # more details.
@@ -840,7 +847,9 @@ module OpenAI
840
847
  #
841
848
  # @param server_description [String] Optional description of the MCP server, used to provide more context.
842
849
  #
843
- # @param server_url [String] The URL for the MCP server. One of `server_url` or `connector_id` must be
850
+ # @param server_url [String] The URL for the MCP server. One of `server_url`, `connector_id`, or
851
+ #
852
+ # @param tunnel_id [String] The Secure MCP Tunnel ID to use instead of a direct server URL. One of
844
853
  #
845
854
  # @param type [Symbol, :mcp] The type of the MCP tool. Always `mcp`.
846
855
 
@@ -892,8 +901,8 @@ module OpenAI
892
901
  end
893
902
 
894
903
  # Identifier for service connectors, like those available in ChatGPT. One of
895
- # `server_url` or `connector_id` must be provided. Learn more about service
896
- # connectors
904
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
905
+ # service connectors
897
906
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
898
907
  #
899
908
  # Currently supported `connector_id` values are:
@@ -48,8 +48,8 @@ module OpenAI
48
48
 
49
49
  # @!attribute connector_id
50
50
  # Identifier for service connectors, like those available in ChatGPT. One of
51
- # `server_url` or `connector_id` must be provided. Learn more about service
52
- # connectors
51
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
52
+ # service connectors
53
53
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
54
54
  #
55
55
  # Currently supported `connector_id` values are:
@@ -94,13 +94,20 @@ module OpenAI
94
94
  optional :server_description, String
95
95
 
96
96
  # @!attribute server_url
97
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
98
- # provided.
97
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
98
+ # must be provided.
99
99
  #
100
100
  # @return [String, nil]
101
101
  optional :server_url, String
102
102
 
103
- # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, type: :mcp)
103
+ # @!attribute tunnel_id
104
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
105
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
106
+ #
107
+ # @return [String, nil]
108
+ optional :tunnel_id, String
109
+
110
+ # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, tunnel_id: nil, type: :mcp)
104
111
  # Some parameter documentations has been truncated, see
105
112
  # {OpenAI::Models::Realtime::RealtimeToolsConfigUnion::Mcp} for more details.
106
113
  #
@@ -124,7 +131,9 @@ module OpenAI
124
131
  #
125
132
  # @param server_description [String] Optional description of the MCP server, used to provide more context.
126
133
  #
127
- # @param server_url [String] The URL for the MCP server. One of `server_url` or `connector_id` must be
134
+ # @param server_url [String] The URL for the MCP server. One of `server_url`, `connector_id`, or
135
+ #
136
+ # @param tunnel_id [String] The Secure MCP Tunnel ID to use instead of a direct server URL. One of
128
137
  #
129
138
  # @param type [Symbol, :mcp] The type of the MCP tool. Always `mcp`.
130
139
 
@@ -176,8 +185,8 @@ module OpenAI
176
185
  end
177
186
 
178
187
  # Identifier for service connectors, like those available in ChatGPT. One of
179
- # `server_url` or `connector_id` must be provided. Learn more about service
180
- # connectors
188
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
189
+ # service connectors
181
190
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
182
191
  #
183
192
  # Currently supported `connector_id` values are:
@@ -87,8 +87,8 @@ module OpenAI
87
87
 
88
88
  # @!attribute connector_id
89
89
  # Identifier for service connectors, like those available in ChatGPT. One of
90
- # `server_url` or `connector_id` must be provided. Learn more about service
91
- # connectors
90
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
91
+ # service connectors
92
92
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
93
93
  #
94
94
  # Currently supported `connector_id` values are:
@@ -131,13 +131,20 @@ module OpenAI
131
131
  optional :server_description, String
132
132
 
133
133
  # @!attribute server_url
134
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
135
- # provided.
134
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
135
+ # must be provided.
136
136
  #
137
137
  # @return [String, nil]
138
138
  optional :server_url, String
139
139
 
140
- # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, type: :mcp)
140
+ # @!attribute tunnel_id
141
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
142
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
143
+ #
144
+ # @return [String, nil]
145
+ optional :tunnel_id, String
146
+
147
+ # @!method initialize(server_label:, allowed_tools: nil, authorization: nil, connector_id: nil, defer_loading: nil, headers: nil, require_approval: nil, server_description: nil, server_url: nil, tunnel_id: nil, type: :mcp)
141
148
  # Some parameter documentations has been truncated, see
142
149
  # {OpenAI::Models::Responses::Tool::Mcp} for more details.
143
150
  #
@@ -161,7 +168,9 @@ module OpenAI
161
168
  #
162
169
  # @param server_description [String] Optional description of the MCP server, used to provide more context.
163
170
  #
164
- # @param server_url [String] The URL for the MCP server. One of `server_url` or `connector_id` must be
171
+ # @param server_url [String] The URL for the MCP server. One of `server_url`, `connector_id`, or
172
+ #
173
+ # @param tunnel_id [String] The Secure MCP Tunnel ID to use instead of a direct server URL. One of
165
174
  #
166
175
  # @param type [Symbol, :mcp] The type of the MCP tool. Always `mcp`.
167
176
 
@@ -213,8 +222,8 @@ module OpenAI
213
222
  end
214
223
 
215
224
  # Identifier for service connectors, like those available in ChatGPT. One of
216
- # `server_url` or `connector_id` must be provided. Learn more about service
217
- # connectors
225
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
226
+ # service connectors
218
227
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
219
228
  #
220
229
  # Currently supported `connector_id` values are:
@@ -62,6 +62,7 @@ module OpenAI
62
62
  # Optional reference asset upload or reference object that guides generation.
63
63
  variant OpenAI::Internal::Type::FileInput
64
64
 
65
+ # Optional reference asset upload or reference object that guides generation. Provide exactly one of `image_url` or `file_id` when using an object.
65
66
  variant -> { OpenAI::ImageInputReferenceParam }
66
67
 
67
68
  # @!method self.variants
@@ -33,7 +33,7 @@ module OpenAI
33
33
  # Reference to the completed video to edit.
34
34
  variant OpenAI::Internal::Type::FileInput
35
35
 
36
- # Reference to the completed video.
36
+ # Reference to the completed video to edit.
37
37
  variant -> { OpenAI::VideoEditParams::Video::VideoReferenceInputParam }
38
38
 
39
39
  class VideoReferenceInputParam < OpenAI::Internal::Type::BaseModel
@@ -44,7 +44,7 @@ module OpenAI
44
44
  required :id, String
45
45
 
46
46
  # @!method initialize(id:)
47
- # Reference to the completed video.
47
+ # Reference to the completed video to edit.
48
48
  #
49
49
  # @param id [String] The identifier of the completed video.
50
50
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.67.0"
4
+ VERSION = "0.68.0"
5
5
  end
@@ -43,8 +43,8 @@ module OpenAI
43
43
  attr_writer :authorization
44
44
 
45
45
  # Identifier for service connectors, like those available in ChatGPT. One of
46
- # `server_url` or `connector_id` must be provided. Learn more about service
47
- # connectors
46
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
47
+ # service connectors
48
48
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
49
49
  #
50
50
  # Currently supported `connector_id` values are:
@@ -106,14 +106,22 @@ module OpenAI
106
106
  sig { params(server_description: String).void }
107
107
  attr_writer :server_description
108
108
 
109
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
110
- # provided.
109
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
110
+ # must be provided.
111
111
  sig { returns(T.nilable(String)) }
112
112
  attr_reader :server_url
113
113
 
114
114
  sig { params(server_url: String).void }
115
115
  attr_writer :server_url
116
116
 
117
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
118
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
119
+ sig { returns(T.nilable(String)) }
120
+ attr_reader :tunnel_id
121
+
122
+ sig { params(tunnel_id: String).void }
123
+ attr_writer :tunnel_id
124
+
117
125
  # Give the model access to additional tools via remote Model Context Protocol
118
126
  # (MCP) servers.
119
127
  # [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
@@ -141,6 +149,7 @@ module OpenAI
141
149
  ),
142
150
  server_description: String,
143
151
  server_url: String,
152
+ tunnel_id: String,
144
153
  type: Symbol
145
154
  ).returns(T.attached_class)
146
155
  end
@@ -154,8 +163,8 @@ module OpenAI
154
163
  # OAuth authorization flow and provide the token here.
155
164
  authorization: nil,
156
165
  # Identifier for service connectors, like those available in ChatGPT. One of
157
- # `server_url` or `connector_id` must be provided. Learn more about service
158
- # connectors
166
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
167
+ # service connectors
159
168
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
160
169
  #
161
170
  # Currently supported `connector_id` values are:
@@ -178,9 +187,12 @@ module OpenAI
178
187
  require_approval: nil,
179
188
  # Optional description of the MCP server, used to provide more context.
180
189
  server_description: nil,
181
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
182
- # provided.
190
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
191
+ # must be provided.
183
192
  server_url: nil,
193
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
194
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
195
+ tunnel_id: nil,
184
196
  # The type of the MCP tool. Always `mcp`.
185
197
  type: :mcp
186
198
  )
@@ -211,7 +223,8 @@ module OpenAI
211
223
  )
212
224
  ),
213
225
  server_description: String,
214
- server_url: String
226
+ server_url: String,
227
+ tunnel_id: String
215
228
  }
216
229
  )
217
230
  end
@@ -301,8 +314,8 @@ module OpenAI
301
314
  end
302
315
 
303
316
  # Identifier for service connectors, like those available in ChatGPT. One of
304
- # `server_url` or `connector_id` must be provided. Learn more about service
305
- # connectors
317
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
318
+ # service connectors
306
319
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
307
320
  #
308
321
  # Currently supported `connector_id` values are:
@@ -1531,8 +1531,8 @@ module OpenAI
1531
1531
  attr_writer :authorization
1532
1532
 
1533
1533
  # Identifier for service connectors, like those available in ChatGPT. One of
1534
- # `server_url` or `connector_id` must be provided. Learn more about service
1535
- # connectors
1534
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
1535
+ # service connectors
1536
1536
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
1537
1537
  #
1538
1538
  # Currently supported `connector_id` values are:
@@ -1591,14 +1591,22 @@ module OpenAI
1591
1591
  sig { params(server_description: String).void }
1592
1592
  attr_writer :server_description
1593
1593
 
1594
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
1595
- # provided.
1594
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
1595
+ # must be provided.
1596
1596
  sig { returns(T.nilable(String)) }
1597
1597
  attr_reader :server_url
1598
1598
 
1599
1599
  sig { params(server_url: String).void }
1600
1600
  attr_writer :server_url
1601
1601
 
1602
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
1603
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
1604
+ sig { returns(T.nilable(String)) }
1605
+ attr_reader :tunnel_id
1606
+
1607
+ sig { params(tunnel_id: String).void }
1608
+ attr_writer :tunnel_id
1609
+
1602
1610
  # Give the model access to additional tools via remote Model Context Protocol
1603
1611
  # (MCP) servers.
1604
1612
  # [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
@@ -1626,6 +1634,7 @@ module OpenAI
1626
1634
  ),
1627
1635
  server_description: String,
1628
1636
  server_url: String,
1637
+ tunnel_id: String,
1629
1638
  type: Symbol
1630
1639
  ).returns(T.attached_class)
1631
1640
  end
@@ -1639,8 +1648,8 @@ module OpenAI
1639
1648
  # OAuth authorization flow and provide the token here.
1640
1649
  authorization: nil,
1641
1650
  # Identifier for service connectors, like those available in ChatGPT. One of
1642
- # `server_url` or `connector_id` must be provided. Learn more about service
1643
- # connectors
1651
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
1652
+ # service connectors
1644
1653
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
1645
1654
  #
1646
1655
  # Currently supported `connector_id` values are:
@@ -1663,9 +1672,12 @@ module OpenAI
1663
1672
  require_approval: nil,
1664
1673
  # Optional description of the MCP server, used to provide more context.
1665
1674
  server_description: nil,
1666
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
1667
- # provided.
1675
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
1676
+ # must be provided.
1668
1677
  server_url: nil,
1678
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
1679
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
1680
+ tunnel_id: nil,
1669
1681
  # The type of the MCP tool. Always `mcp`.
1670
1682
  type: :mcp
1671
1683
  )
@@ -1690,7 +1702,8 @@ module OpenAI
1690
1702
  OpenAI::Realtime::RealtimeSessionCreateResponse::Tool::McpTool::RequireApproval::Variants
1691
1703
  ),
1692
1704
  server_description: String,
1693
- server_url: String
1705
+ server_url: String,
1706
+ tunnel_id: String
1694
1707
  }
1695
1708
  )
1696
1709
  end
@@ -1780,8 +1793,8 @@ module OpenAI
1780
1793
  end
1781
1794
 
1782
1795
  # Identifier for service connectors, like those available in ChatGPT. One of
1783
- # `server_url` or `connector_id` must be provided. Learn more about service
1784
- # connectors
1796
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
1797
+ # service connectors
1785
1798
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
1786
1799
  #
1787
1800
  # Currently supported `connector_id` values are:
@@ -57,8 +57,8 @@ module OpenAI
57
57
  attr_writer :authorization
58
58
 
59
59
  # Identifier for service connectors, like those available in ChatGPT. One of
60
- # `server_url` or `connector_id` must be provided. Learn more about service
61
- # connectors
60
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
61
+ # service connectors
62
62
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
63
63
  #
64
64
  # Currently supported `connector_id` values are:
@@ -120,14 +120,22 @@ module OpenAI
120
120
  sig { params(server_description: String).void }
121
121
  attr_writer :server_description
122
122
 
123
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
124
- # provided.
123
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
124
+ # must be provided.
125
125
  sig { returns(T.nilable(String)) }
126
126
  attr_reader :server_url
127
127
 
128
128
  sig { params(server_url: String).void }
129
129
  attr_writer :server_url
130
130
 
131
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
132
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
133
+ sig { returns(T.nilable(String)) }
134
+ attr_reader :tunnel_id
135
+
136
+ sig { params(tunnel_id: String).void }
137
+ attr_writer :tunnel_id
138
+
131
139
  # Give the model access to additional tools via remote Model Context Protocol
132
140
  # (MCP) servers.
133
141
  # [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
@@ -155,6 +163,7 @@ module OpenAI
155
163
  ),
156
164
  server_description: String,
157
165
  server_url: String,
166
+ tunnel_id: String,
158
167
  type: Symbol
159
168
  ).returns(T.attached_class)
160
169
  end
@@ -168,8 +177,8 @@ module OpenAI
168
177
  # OAuth authorization flow and provide the token here.
169
178
  authorization: nil,
170
179
  # Identifier for service connectors, like those available in ChatGPT. One of
171
- # `server_url` or `connector_id` must be provided. Learn more about service
172
- # connectors
180
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
181
+ # service connectors
173
182
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
174
183
  #
175
184
  # Currently supported `connector_id` values are:
@@ -192,9 +201,12 @@ module OpenAI
192
201
  require_approval: nil,
193
202
  # Optional description of the MCP server, used to provide more context.
194
203
  server_description: nil,
195
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
196
- # provided.
204
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
205
+ # must be provided.
197
206
  server_url: nil,
207
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
208
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
209
+ tunnel_id: nil,
198
210
  # The type of the MCP tool. Always `mcp`.
199
211
  type: :mcp
200
212
  )
@@ -225,7 +237,8 @@ module OpenAI
225
237
  )
226
238
  ),
227
239
  server_description: String,
228
- server_url: String
240
+ server_url: String,
241
+ tunnel_id: String
229
242
  }
230
243
  )
231
244
  end
@@ -315,8 +328,8 @@ module OpenAI
315
328
  end
316
329
 
317
330
  # Identifier for service connectors, like those available in ChatGPT. One of
318
- # `server_url` or `connector_id` must be provided. Learn more about service
319
- # connectors
331
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
332
+ # service connectors
320
333
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
321
334
  #
322
335
  # Currently supported `connector_id` values are:
@@ -65,8 +65,8 @@ module OpenAI
65
65
  attr_writer :authorization
66
66
 
67
67
  # Identifier for service connectors, like those available in ChatGPT. One of
68
- # `server_url` or `connector_id` must be provided. Learn more about service
69
- # connectors
68
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
69
+ # service connectors
70
70
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
71
71
  #
72
72
  # Currently supported `connector_id` values are:
@@ -125,14 +125,22 @@ module OpenAI
125
125
  sig { params(server_description: String).void }
126
126
  attr_writer :server_description
127
127
 
128
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
129
- # provided.
128
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
129
+ # must be provided.
130
130
  sig { returns(T.nilable(String)) }
131
131
  attr_reader :server_url
132
132
 
133
133
  sig { params(server_url: String).void }
134
134
  attr_writer :server_url
135
135
 
136
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
137
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
138
+ sig { returns(T.nilable(String)) }
139
+ attr_reader :tunnel_id
140
+
141
+ sig { params(tunnel_id: String).void }
142
+ attr_writer :tunnel_id
143
+
136
144
  # Give the model access to additional tools via remote Model Context Protocol
137
145
  # (MCP) servers.
138
146
  # [Learn more about MCP](https://platform.openai.com/docs/guides/tools-remote-mcp).
@@ -159,6 +167,7 @@ module OpenAI
159
167
  ),
160
168
  server_description: String,
161
169
  server_url: String,
170
+ tunnel_id: String,
162
171
  type: Symbol
163
172
  ).returns(T.attached_class)
164
173
  end
@@ -172,8 +181,8 @@ module OpenAI
172
181
  # OAuth authorization flow and provide the token here.
173
182
  authorization: nil,
174
183
  # Identifier for service connectors, like those available in ChatGPT. One of
175
- # `server_url` or `connector_id` must be provided. Learn more about service
176
- # connectors
184
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
185
+ # service connectors
177
186
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
178
187
  #
179
188
  # Currently supported `connector_id` values are:
@@ -196,9 +205,12 @@ module OpenAI
196
205
  require_approval: nil,
197
206
  # Optional description of the MCP server, used to provide more context.
198
207
  server_description: nil,
199
- # The URL for the MCP server. One of `server_url` or `connector_id` must be
200
- # provided.
208
+ # The URL for the MCP server. One of `server_url`, `connector_id`, or `tunnel_id`
209
+ # must be provided.
201
210
  server_url: nil,
211
+ # The Secure MCP Tunnel ID to use instead of a direct server URL. One of
212
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided.
213
+ tunnel_id: nil,
202
214
  # The type of the MCP tool. Always `mcp`.
203
215
  type: :mcp
204
216
  )
@@ -229,7 +241,8 @@ module OpenAI
229
241
  )
230
242
  ),
231
243
  server_description: String,
232
- server_url: String
244
+ server_url: String,
245
+ tunnel_id: String
233
246
  }
234
247
  )
235
248
  end
@@ -317,8 +330,8 @@ module OpenAI
317
330
  end
318
331
 
319
332
  # Identifier for service connectors, like those available in ChatGPT. One of
320
- # `server_url` or `connector_id` must be provided. Learn more about service
321
- # connectors
333
+ # `server_url`, `connector_id`, or `tunnel_id` must be provided. Learn more about
334
+ # service connectors
322
335
  # [here](https://platform.openai.com/docs/guides/tools-remote-mcp#connectors).
323
336
  #
324
337
  # Currently supported `connector_id` values are:
@@ -87,7 +87,7 @@ module OpenAI
87
87
  sig { returns(String) }
88
88
  attr_accessor :id
89
89
 
90
- # Reference to the completed video.
90
+ # Reference to the completed video to edit.
91
91
  sig { params(id: String).returns(T.attached_class) }
92
92
  def self.new(
93
93
  # The identifier of the completed video.
@@ -12,7 +12,8 @@ module OpenAI
12
12
  headers: ::Hash[Symbol, String]?,
13
13
  require_approval: OpenAI::Models::Realtime::RealtimeResponseCreateMcpTool::require_approval?,
14
14
  server_description: String,
15
- server_url: String
15
+ server_url: String,
16
+ tunnel_id: String
16
17
  }
17
18
 
18
19
  class RealtimeResponseCreateMcpTool < OpenAI::Internal::Type::BaseModel
@@ -48,6 +49,10 @@ module OpenAI
48
49
 
49
50
  def server_url=: (String) -> String
50
51
 
52
+ attr_reader tunnel_id: String?
53
+
54
+ def tunnel_id=: (String) -> String
55
+
51
56
  def initialize: (
52
57
  server_label: String,
53
58
  ?allowed_tools: OpenAI::Models::Realtime::RealtimeResponseCreateMcpTool::allowed_tools?,
@@ -58,6 +63,7 @@ module OpenAI
58
63
  ?require_approval: OpenAI::Models::Realtime::RealtimeResponseCreateMcpTool::require_approval?,
59
64
  ?server_description: String,
60
65
  ?server_url: String,
66
+ ?tunnel_id: String,
61
67
  ?type: :mcp
62
68
  ) -> void
63
69
 
@@ -71,7 +77,8 @@ module OpenAI
71
77
  headers: ::Hash[Symbol, String]?,
72
78
  require_approval: OpenAI::Models::Realtime::RealtimeResponseCreateMcpTool::require_approval?,
73
79
  server_description: String,
74
- server_url: String
80
+ server_url: String,
81
+ tunnel_id: String
75
82
  }
76
83
 
77
84
  type allowed_tools =
@@ -516,7 +516,8 @@ module OpenAI
516
516
  headers: ::Hash[Symbol, String]?,
517
517
  require_approval: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Tool::McpTool::require_approval?,
518
518
  server_description: String,
519
- server_url: String
519
+ server_url: String,
520
+ tunnel_id: String
520
521
  }
521
522
 
522
523
  class McpTool < OpenAI::Internal::Type::BaseModel
@@ -552,6 +553,10 @@ module OpenAI
552
553
 
553
554
  def server_url=: (String) -> String
554
555
 
556
+ attr_reader tunnel_id: String?
557
+
558
+ def tunnel_id=: (String) -> String
559
+
555
560
  def initialize: (
556
561
  server_label: String,
557
562
  ?allowed_tools: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Tool::McpTool::allowed_tools?,
@@ -562,6 +567,7 @@ module OpenAI
562
567
  ?require_approval: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Tool::McpTool::require_approval?,
563
568
  ?server_description: String,
564
569
  ?server_url: String,
570
+ ?tunnel_id: String,
565
571
  ?type: :mcp
566
572
  ) -> void
567
573
 
@@ -575,7 +581,8 @@ module OpenAI
575
581
  headers: ::Hash[Symbol, String]?,
576
582
  require_approval: OpenAI::Models::Realtime::RealtimeSessionCreateResponse::Tool::McpTool::require_approval?,
577
583
  server_description: String,
578
- server_url: String
584
+ server_url: String,
585
+ tunnel_id: String
579
586
  }
580
587
 
581
588
  type allowed_tools =
@@ -19,7 +19,8 @@ module OpenAI
19
19
  headers: ::Hash[Symbol, String]?,
20
20
  require_approval: OpenAI::Models::Realtime::RealtimeToolsConfigUnion::Mcp::require_approval?,
21
21
  server_description: String,
22
- server_url: String
22
+ server_url: String,
23
+ tunnel_id: String
23
24
  }
24
25
 
25
26
  class Mcp < OpenAI::Internal::Type::BaseModel
@@ -55,6 +56,10 @@ module OpenAI
55
56
 
56
57
  def server_url=: (String) -> String
57
58
 
59
+ attr_reader tunnel_id: String?
60
+
61
+ def tunnel_id=: (String) -> String
62
+
58
63
  def initialize: (
59
64
  server_label: String,
60
65
  ?allowed_tools: OpenAI::Models::Realtime::RealtimeToolsConfigUnion::Mcp::allowed_tools?,
@@ -65,6 +70,7 @@ module OpenAI
65
70
  ?require_approval: OpenAI::Models::Realtime::RealtimeToolsConfigUnion::Mcp::require_approval?,
66
71
  ?server_description: String,
67
72
  ?server_url: String,
73
+ ?tunnel_id: String,
68
74
  ?type: :mcp
69
75
  ) -> void
70
76
 
@@ -78,7 +84,8 @@ module OpenAI
78
84
  headers: ::Hash[Symbol, String]?,
79
85
  require_approval: OpenAI::Models::Realtime::RealtimeToolsConfigUnion::Mcp::require_approval?,
80
86
  server_description: String,
81
- server_url: String
87
+ server_url: String,
88
+ tunnel_id: String
82
89
  }
83
90
 
84
91
  type allowed_tools =
@@ -32,7 +32,8 @@ module OpenAI
32
32
  headers: ::Hash[Symbol, String]?,
33
33
  require_approval: OpenAI::Models::Responses::Tool::Mcp::require_approval?,
34
34
  server_description: String,
35
- server_url: String
35
+ server_url: String,
36
+ tunnel_id: String
36
37
  }
37
38
 
38
39
  class Mcp < OpenAI::Internal::Type::BaseModel
@@ -68,6 +69,10 @@ module OpenAI
68
69
 
69
70
  def server_url=: (String) -> String
70
71
 
72
+ attr_reader tunnel_id: String?
73
+
74
+ def tunnel_id=: (String) -> String
75
+
71
76
  def initialize: (
72
77
  server_label: String,
73
78
  ?allowed_tools: OpenAI::Models::Responses::Tool::Mcp::allowed_tools?,
@@ -78,6 +83,7 @@ module OpenAI
78
83
  ?require_approval: OpenAI::Models::Responses::Tool::Mcp::require_approval?,
79
84
  ?server_description: String,
80
85
  ?server_url: String,
86
+ ?tunnel_id: String,
81
87
  ?type: :mcp
82
88
  ) -> void
83
89
 
@@ -91,7 +97,8 @@ module OpenAI
91
97
  headers: ::Hash[Symbol, String]?,
92
98
  require_approval: OpenAI::Models::Responses::Tool::Mcp::require_approval?,
93
99
  server_description: String,
94
- server_url: String
100
+ server_url: String,
101
+ tunnel_id: String
95
102
  }
96
103
 
97
104
  type allowed_tools =
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.67.0
4
+ version: 0.68.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-16 00:00:00.000000000 Z
11
+ date: 2026-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64