openai 0.48.0 → 0.49.1
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 +33 -0
- data/README.md +1 -1
- data/lib/openai/models/chat/completion_create_params.rb +3 -2
- data/lib/openai/models/chat/completion_list_params.rb +3 -6
- data/lib/openai/models/container_create_params.rb +44 -1
- data/lib/openai/models/container_create_response.rb +44 -1
- data/lib/openai/models/container_list_params.rb +9 -1
- data/lib/openai/models/container_list_response.rb +44 -1
- data/lib/openai/models/container_retrieve_response.rb +44 -1
- data/lib/openai/models/responses/response.rb +3 -2
- data/lib/openai/models/responses/response_create_params.rb +3 -2
- data/lib/openai/models/responses/responses_client_event.rb +590 -0
- data/lib/openai/models/responses/responses_server_event.rb +201 -0
- data/lib/openai/models/vector_stores/file_batch_create_params.rb +4 -2
- data/lib/openai/resources/audio/speech.rb +2 -0
- data/lib/openai/resources/audio/transcriptions.rb +6 -0
- data/lib/openai/resources/beta/chatkit/sessions.rb +4 -2
- data/lib/openai/resources/beta/chatkit/threads.rb +4 -4
- data/lib/openai/resources/chat/completions.rb +7 -1
- data/lib/openai/resources/completions.rb +6 -0
- data/lib/openai/resources/containers/files.rb +0 -1
- data/lib/openai/resources/containers.rb +8 -2
- data/lib/openai/resources/realtime/client_secrets.rb +14 -0
- data/lib/openai/resources/responses/input_tokens.rb +4 -1
- data/lib/openai/resources/responses.rb +6 -1
- data/lib/openai/resources/skills/content.rb +1 -1
- data/lib/openai/resources/skills/versions/content.rb +1 -1
- data/lib/openai/resources/skills/versions.rb +4 -4
- data/lib/openai/resources/skills.rb +5 -5
- data/lib/openai/resources/uploads.rb +7 -1
- data/lib/openai/resources/videos.rb +8 -6
- data/lib/openai/version.rb +1 -1
- data/lib/openai.rb +2 -0
- data/rbi/openai/models/chat/completion_create_params.rbi +6 -4
- data/rbi/openai/models/chat/completion_list_params.rbi +4 -10
- data/rbi/openai/models/container_create_params.rbi +121 -0
- data/rbi/openai/models/container_create_response.rbi +113 -3
- data/rbi/openai/models/container_list_params.rbi +11 -0
- data/rbi/openai/models/container_list_response.rbi +110 -3
- data/rbi/openai/models/container_retrieve_response.rbi +113 -3
- data/rbi/openai/models/responses/response.rbi +6 -4
- data/rbi/openai/models/responses/response_create_params.rbi +6 -4
- data/rbi/openai/models/responses/responses_client_event.rbi +1122 -0
- data/rbi/openai/models/responses/responses_server_event.rbi +79 -0
- data/rbi/openai/models/vector_stores/file_batch_create_params.rbi +8 -4
- data/rbi/openai/resources/audio/speech.rbi +2 -0
- data/rbi/openai/resources/audio/transcriptions.rbi +6 -0
- data/rbi/openai/resources/beta/chatkit/sessions.rbi +4 -2
- data/rbi/openai/resources/beta/chatkit/threads.rbi +4 -4
- data/rbi/openai/resources/chat/completions.rbi +14 -9
- data/rbi/openai/resources/completions.rbi +6 -0
- data/rbi/openai/resources/containers.rbi +19 -0
- data/rbi/openai/resources/realtime/client_secrets.rbi +14 -0
- data/rbi/openai/resources/responses/input_tokens.rbi +4 -1
- data/rbi/openai/resources/responses.rbi +12 -5
- data/rbi/openai/resources/skills/content.rbi +1 -1
- data/rbi/openai/resources/skills/versions/content.rbi +1 -1
- data/rbi/openai/resources/skills/versions.rbi +4 -4
- data/rbi/openai/resources/skills.rbi +5 -5
- data/rbi/openai/resources/uploads.rbi +7 -1
- data/rbi/openai/resources/vector_stores/file_batches.rbi +4 -2
- data/rbi/openai/resources/videos.rbi +8 -6
- data/sig/openai/models/container_create_params.rbs +38 -1
- data/sig/openai/models/container_create_response.rbs +47 -3
- data/sig/openai/models/container_list_params.rbs +7 -0
- data/sig/openai/models/container_list_response.rbs +47 -3
- data/sig/openai/models/container_retrieve_response.rbs +47 -3
- data/sig/openai/models/responses/responses_client_event.rbs +286 -0
- data/sig/openai/models/responses/responses_server_event.rbs +66 -0
- data/sig/openai/resources/containers.rbs +3 -0
- metadata +8 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f34d18042a6ab2826128026a9c7fb5bd1a93abf9ee6c475a5d168560094677b
|
|
4
|
+
data.tar.gz: aa73e8a5f85adfd6b5b6436cfc02cb07d8dea6443a74cf8b755b4298991176b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8910aed1db556d26ba8372b674c799936dd12f30c4c00d7c2ca3bbd09fd2df5743e33fae034087d81cfa239ebfe2b0f12821e3884b019c8c6609179489daceeb
|
|
7
|
+
data.tar.gz: 8aeabebae2ca9742924adf7dc71037da21ad33b713c0e0c0773f9dcd58b46afa49de0c05fd4dfb636442aa73c357583225e2ee3539396437a0db4680066f6760
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.49.1 (2026-02-23)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.49.0...v0.49.1](https://github.com/openai/openai-ruby/compare/v0.49.0...v0.49.1)
|
|
6
|
+
|
|
7
|
+
### Bug Fixes
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([6d59acd](https://github.com/openai/openai-ruby/commit/6d59acd6875dad00aa7abefc9b8629e68d4068ff))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* update mock server docs ([4ab9773](https://github.com/openai/openai-ruby/commit/4ab97731fd3d59dde01eae01ad6b09b962475724))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* **api:** add batch size limit to vector_stores file_batch_create_params ([f8f915b](https://github.com/openai/openai-ruby/commit/f8f915b791433e804256e27e76d48f61fefd0aa3))
|
|
20
|
+
* **api:** add length limit to safety_identifier in chat/responses ([f76fd6f](https://github.com/openai/openai-ruby/commit/f76fd6fd8ac3c4d63199e71fcfd9ae20bd9050d0))
|
|
21
|
+
* **api:** enhance method descriptions and return value docs across resources ([6ac3366](https://github.com/openai/openai-ruby/commit/6ac336621101468f74758c5b7eff56a8b14cb69d))
|
|
22
|
+
|
|
23
|
+
## 0.49.0 (2026-02-13)
|
|
24
|
+
|
|
25
|
+
Full Changelog: [v0.48.0...v0.49.0](https://github.com/openai/openai-ruby/compare/v0.48.0...v0.49.0)
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* **api:** container network_policy and skills ([0bad2bd](https://github.com/openai/openai-ruby/commit/0bad2bdedc9c940829297d093c1b891f96a14510))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Documentation
|
|
33
|
+
|
|
34
|
+
* update comment ([b4f6392](https://github.com/openai/openai-ruby/commit/b4f639284210e2b4f3aa55b515b7914d6b78d78e))
|
|
35
|
+
|
|
3
36
|
## 0.48.0 (2026-02-10)
|
|
4
37
|
|
|
5
38
|
Full Changelog: [v0.47.0...v0.48.0](https://github.com/openai/openai-ruby/compare/v0.47.0...v0.48.0)
|
data/README.md
CHANGED
|
@@ -237,8 +237,9 @@ module OpenAI
|
|
|
237
237
|
# @!attribute safety_identifier
|
|
238
238
|
# A stable identifier used to help detect users of your application that may be
|
|
239
239
|
# violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
240
|
-
# identifies each user
|
|
241
|
-
# order to avoid sending us any
|
|
240
|
+
# identifies each user, with a maximum length of 64 characters. We recommend
|
|
241
|
+
# hashing their username or email address, in order to avoid sending us any
|
|
242
|
+
# identifying information.
|
|
242
243
|
# [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
243
244
|
#
|
|
244
245
|
# @return [String, nil]
|
|
@@ -21,12 +21,9 @@ module OpenAI
|
|
|
21
21
|
optional :limit, Integer
|
|
22
22
|
|
|
23
23
|
# @!attribute metadata
|
|
24
|
-
#
|
|
25
|
-
# for storing additional information about the object in a structured format, and
|
|
26
|
-
# querying for objects via API or the dashboard.
|
|
24
|
+
# A list of metadata keys to filter the Chat Completions by. Example:
|
|
27
25
|
#
|
|
28
|
-
#
|
|
29
|
-
# a maximum length of 512 characters.
|
|
26
|
+
# `metadata[key1]=value1&metadata[key2]=value2`
|
|
30
27
|
#
|
|
31
28
|
# @return [Hash{Symbol=>String}, nil]
|
|
32
29
|
optional :metadata, OpenAI::Internal::Type::HashOf[String], nil?: true
|
|
@@ -52,7 +49,7 @@ module OpenAI
|
|
|
52
49
|
#
|
|
53
50
|
# @param limit [Integer] Number of Chat Completions to retrieve.
|
|
54
51
|
#
|
|
55
|
-
# @param metadata [Hash{Symbol=>String}, nil]
|
|
52
|
+
# @param metadata [Hash{Symbol=>String}, nil] A list of metadata keys to filter the Chat Completions by. Example:
|
|
56
53
|
#
|
|
57
54
|
# @param model [String] The model used to generate the Chat Completions.
|
|
58
55
|
#
|
|
@@ -31,7 +31,19 @@ module OpenAI
|
|
|
31
31
|
# @return [Symbol, OpenAI::Models::ContainerCreateParams::MemoryLimit, nil]
|
|
32
32
|
optional :memory_limit, enum: -> { OpenAI::ContainerCreateParams::MemoryLimit }
|
|
33
33
|
|
|
34
|
-
# @!
|
|
34
|
+
# @!attribute network_policy
|
|
35
|
+
# Network access policy for the container.
|
|
36
|
+
#
|
|
37
|
+
# @return [OpenAI::Models::Responses::ContainerNetworkPolicyDisabled, OpenAI::Models::Responses::ContainerNetworkPolicyAllowlist, nil]
|
|
38
|
+
optional :network_policy, union: -> { OpenAI::ContainerCreateParams::NetworkPolicy }
|
|
39
|
+
|
|
40
|
+
# @!attribute skills
|
|
41
|
+
# An optional list of skills referenced by id or inline data.
|
|
42
|
+
#
|
|
43
|
+
# @return [Array<OpenAI::Models::Responses::SkillReference, OpenAI::Models::Responses::InlineSkill>, nil]
|
|
44
|
+
optional :skills, -> { OpenAI::Internal::Type::ArrayOf[union: OpenAI::ContainerCreateParams::Skill] }
|
|
45
|
+
|
|
46
|
+
# @!method initialize(name:, expires_after: nil, file_ids: nil, memory_limit: nil, network_policy: nil, skills: nil, request_options: {})
|
|
35
47
|
# @param name [String] Name of the container to create.
|
|
36
48
|
#
|
|
37
49
|
# @param expires_after [OpenAI::Models::ContainerCreateParams::ExpiresAfter] Container expiration time in seconds relative to the 'anchor' time.
|
|
@@ -40,6 +52,10 @@ module OpenAI
|
|
|
40
52
|
#
|
|
41
53
|
# @param memory_limit [Symbol, OpenAI::Models::ContainerCreateParams::MemoryLimit] Optional memory limit for the container. Defaults to "1g".
|
|
42
54
|
#
|
|
55
|
+
# @param network_policy [OpenAI::Models::Responses::ContainerNetworkPolicyDisabled, OpenAI::Models::Responses::ContainerNetworkPolicyAllowlist] Network access policy for the container.
|
|
56
|
+
#
|
|
57
|
+
# @param skills [Array<OpenAI::Models::Responses::SkillReference, OpenAI::Models::Responses::InlineSkill>] An optional list of skills referenced by id or inline data.
|
|
58
|
+
#
|
|
43
59
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
44
60
|
|
|
45
61
|
class ExpiresAfter < OpenAI::Internal::Type::BaseModel
|
|
@@ -91,6 +107,33 @@ module OpenAI
|
|
|
91
107
|
# @!method self.values
|
|
92
108
|
# @return [Array<Symbol>]
|
|
93
109
|
end
|
|
110
|
+
|
|
111
|
+
# Network access policy for the container.
|
|
112
|
+
module NetworkPolicy
|
|
113
|
+
extend OpenAI::Internal::Type::Union
|
|
114
|
+
|
|
115
|
+
discriminator :type
|
|
116
|
+
|
|
117
|
+
variant :disabled, -> { OpenAI::Responses::ContainerNetworkPolicyDisabled }
|
|
118
|
+
|
|
119
|
+
variant :allowlist, -> { OpenAI::Responses::ContainerNetworkPolicyAllowlist }
|
|
120
|
+
|
|
121
|
+
# @!method self.variants
|
|
122
|
+
# @return [Array(OpenAI::Models::Responses::ContainerNetworkPolicyDisabled, OpenAI::Models::Responses::ContainerNetworkPolicyAllowlist)]
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
module Skill
|
|
126
|
+
extend OpenAI::Internal::Type::Union
|
|
127
|
+
|
|
128
|
+
discriminator :type
|
|
129
|
+
|
|
130
|
+
variant :skill_reference, -> { OpenAI::Responses::SkillReference }
|
|
131
|
+
|
|
132
|
+
variant :inline, -> { OpenAI::Responses::InlineSkill }
|
|
133
|
+
|
|
134
|
+
# @!method self.variants
|
|
135
|
+
# @return [Array(OpenAI::Models::Responses::SkillReference, OpenAI::Models::Responses::InlineSkill)]
|
|
136
|
+
end
|
|
94
137
|
end
|
|
95
138
|
end
|
|
96
139
|
end
|
|
@@ -54,7 +54,13 @@ module OpenAI
|
|
|
54
54
|
# @return [Symbol, OpenAI::Models::ContainerCreateResponse::MemoryLimit, nil]
|
|
55
55
|
optional :memory_limit, enum: -> { OpenAI::Models::ContainerCreateResponse::MemoryLimit }
|
|
56
56
|
|
|
57
|
-
# @!
|
|
57
|
+
# @!attribute network_policy
|
|
58
|
+
# Network access policy for the container.
|
|
59
|
+
#
|
|
60
|
+
# @return [OpenAI::Models::ContainerCreateResponse::NetworkPolicy, nil]
|
|
61
|
+
optional :network_policy, -> { OpenAI::Models::ContainerCreateResponse::NetworkPolicy }
|
|
62
|
+
|
|
63
|
+
# @!method initialize(id:, created_at:, name:, object:, status:, expires_after: nil, last_active_at: nil, memory_limit: nil, network_policy: nil)
|
|
58
64
|
# Some parameter documentations has been truncated, see
|
|
59
65
|
# {OpenAI::Models::ContainerCreateResponse} for more details.
|
|
60
66
|
#
|
|
@@ -73,6 +79,8 @@ module OpenAI
|
|
|
73
79
|
# @param last_active_at [Integer] Unix timestamp (in seconds) when the container was last active.
|
|
74
80
|
#
|
|
75
81
|
# @param memory_limit [Symbol, OpenAI::Models::ContainerCreateResponse::MemoryLimit] The memory limit configured for the container.
|
|
82
|
+
#
|
|
83
|
+
# @param network_policy [OpenAI::Models::ContainerCreateResponse::NetworkPolicy] Network access policy for the container.
|
|
76
84
|
|
|
77
85
|
# @see OpenAI::Models::ContainerCreateResponse#expires_after
|
|
78
86
|
class ExpiresAfter < OpenAI::Internal::Type::BaseModel
|
|
@@ -124,6 +132,41 @@ module OpenAI
|
|
|
124
132
|
# @!method self.values
|
|
125
133
|
# @return [Array<Symbol>]
|
|
126
134
|
end
|
|
135
|
+
|
|
136
|
+
# @see OpenAI::Models::ContainerCreateResponse#network_policy
|
|
137
|
+
class NetworkPolicy < OpenAI::Internal::Type::BaseModel
|
|
138
|
+
# @!attribute type
|
|
139
|
+
# The network policy mode.
|
|
140
|
+
#
|
|
141
|
+
# @return [Symbol, OpenAI::Models::ContainerCreateResponse::NetworkPolicy::Type]
|
|
142
|
+
required :type, enum: -> { OpenAI::Models::ContainerCreateResponse::NetworkPolicy::Type }
|
|
143
|
+
|
|
144
|
+
# @!attribute allowed_domains
|
|
145
|
+
# Allowed outbound domains when `type` is `allowlist`.
|
|
146
|
+
#
|
|
147
|
+
# @return [Array<String>, nil]
|
|
148
|
+
optional :allowed_domains, OpenAI::Internal::Type::ArrayOf[String]
|
|
149
|
+
|
|
150
|
+
# @!method initialize(type:, allowed_domains: nil)
|
|
151
|
+
# Network access policy for the container.
|
|
152
|
+
#
|
|
153
|
+
# @param type [Symbol, OpenAI::Models::ContainerCreateResponse::NetworkPolicy::Type] The network policy mode.
|
|
154
|
+
#
|
|
155
|
+
# @param allowed_domains [Array<String>] Allowed outbound domains when `type` is `allowlist`.
|
|
156
|
+
|
|
157
|
+
# The network policy mode.
|
|
158
|
+
#
|
|
159
|
+
# @see OpenAI::Models::ContainerCreateResponse::NetworkPolicy#type
|
|
160
|
+
module Type
|
|
161
|
+
extend OpenAI::Internal::Type::Enum
|
|
162
|
+
|
|
163
|
+
ALLOWLIST = :allowlist
|
|
164
|
+
DISABLED = :disabled
|
|
165
|
+
|
|
166
|
+
# @!method self.values
|
|
167
|
+
# @return [Array<Symbol>]
|
|
168
|
+
end
|
|
169
|
+
end
|
|
127
170
|
end
|
|
128
171
|
end
|
|
129
172
|
end
|
|
@@ -23,6 +23,12 @@ module OpenAI
|
|
|
23
23
|
# @return [Integer, nil]
|
|
24
24
|
optional :limit, Integer
|
|
25
25
|
|
|
26
|
+
# @!attribute name
|
|
27
|
+
# Filter results by container name.
|
|
28
|
+
#
|
|
29
|
+
# @return [String, nil]
|
|
30
|
+
optional :name, String
|
|
31
|
+
|
|
26
32
|
# @!attribute order
|
|
27
33
|
# Sort order by the `created_at` timestamp of the objects. `asc` for ascending
|
|
28
34
|
# order and `desc` for descending order.
|
|
@@ -30,7 +36,7 @@ module OpenAI
|
|
|
30
36
|
# @return [Symbol, OpenAI::Models::ContainerListParams::Order, nil]
|
|
31
37
|
optional :order, enum: -> { OpenAI::ContainerListParams::Order }
|
|
32
38
|
|
|
33
|
-
# @!method initialize(after: nil, limit: nil, order: nil, request_options: {})
|
|
39
|
+
# @!method initialize(after: nil, limit: nil, name: nil, order: nil, request_options: {})
|
|
34
40
|
# Some parameter documentations has been truncated, see
|
|
35
41
|
# {OpenAI::Models::ContainerListParams} for more details.
|
|
36
42
|
#
|
|
@@ -38,6 +44,8 @@ module OpenAI
|
|
|
38
44
|
#
|
|
39
45
|
# @param limit [Integer] A limit on the number of objects to be returned. Limit can range between 1 and 1
|
|
40
46
|
#
|
|
47
|
+
# @param name [String] Filter results by container name.
|
|
48
|
+
#
|
|
41
49
|
# @param order [Symbol, OpenAI::Models::ContainerListParams::Order] Sort order by the `created_at` timestamp of the objects. `asc` for ascending ord
|
|
42
50
|
#
|
|
43
51
|
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
|
|
@@ -54,7 +54,13 @@ module OpenAI
|
|
|
54
54
|
# @return [Symbol, OpenAI::Models::ContainerListResponse::MemoryLimit, nil]
|
|
55
55
|
optional :memory_limit, enum: -> { OpenAI::Models::ContainerListResponse::MemoryLimit }
|
|
56
56
|
|
|
57
|
-
# @!
|
|
57
|
+
# @!attribute network_policy
|
|
58
|
+
# Network access policy for the container.
|
|
59
|
+
#
|
|
60
|
+
# @return [OpenAI::Models::ContainerListResponse::NetworkPolicy, nil]
|
|
61
|
+
optional :network_policy, -> { OpenAI::Models::ContainerListResponse::NetworkPolicy }
|
|
62
|
+
|
|
63
|
+
# @!method initialize(id:, created_at:, name:, object:, status:, expires_after: nil, last_active_at: nil, memory_limit: nil, network_policy: nil)
|
|
58
64
|
# Some parameter documentations has been truncated, see
|
|
59
65
|
# {OpenAI::Models::ContainerListResponse} for more details.
|
|
60
66
|
#
|
|
@@ -73,6 +79,8 @@ module OpenAI
|
|
|
73
79
|
# @param last_active_at [Integer] Unix timestamp (in seconds) when the container was last active.
|
|
74
80
|
#
|
|
75
81
|
# @param memory_limit [Symbol, OpenAI::Models::ContainerListResponse::MemoryLimit] The memory limit configured for the container.
|
|
82
|
+
#
|
|
83
|
+
# @param network_policy [OpenAI::Models::ContainerListResponse::NetworkPolicy] Network access policy for the container.
|
|
76
84
|
|
|
77
85
|
# @see OpenAI::Models::ContainerListResponse#expires_after
|
|
78
86
|
class ExpiresAfter < OpenAI::Internal::Type::BaseModel
|
|
@@ -124,6 +132,41 @@ module OpenAI
|
|
|
124
132
|
# @!method self.values
|
|
125
133
|
# @return [Array<Symbol>]
|
|
126
134
|
end
|
|
135
|
+
|
|
136
|
+
# @see OpenAI::Models::ContainerListResponse#network_policy
|
|
137
|
+
class NetworkPolicy < OpenAI::Internal::Type::BaseModel
|
|
138
|
+
# @!attribute type
|
|
139
|
+
# The network policy mode.
|
|
140
|
+
#
|
|
141
|
+
# @return [Symbol, OpenAI::Models::ContainerListResponse::NetworkPolicy::Type]
|
|
142
|
+
required :type, enum: -> { OpenAI::Models::ContainerListResponse::NetworkPolicy::Type }
|
|
143
|
+
|
|
144
|
+
# @!attribute allowed_domains
|
|
145
|
+
# Allowed outbound domains when `type` is `allowlist`.
|
|
146
|
+
#
|
|
147
|
+
# @return [Array<String>, nil]
|
|
148
|
+
optional :allowed_domains, OpenAI::Internal::Type::ArrayOf[String]
|
|
149
|
+
|
|
150
|
+
# @!method initialize(type:, allowed_domains: nil)
|
|
151
|
+
# Network access policy for the container.
|
|
152
|
+
#
|
|
153
|
+
# @param type [Symbol, OpenAI::Models::ContainerListResponse::NetworkPolicy::Type] The network policy mode.
|
|
154
|
+
#
|
|
155
|
+
# @param allowed_domains [Array<String>] Allowed outbound domains when `type` is `allowlist`.
|
|
156
|
+
|
|
157
|
+
# The network policy mode.
|
|
158
|
+
#
|
|
159
|
+
# @see OpenAI::Models::ContainerListResponse::NetworkPolicy#type
|
|
160
|
+
module Type
|
|
161
|
+
extend OpenAI::Internal::Type::Enum
|
|
162
|
+
|
|
163
|
+
ALLOWLIST = :allowlist
|
|
164
|
+
DISABLED = :disabled
|
|
165
|
+
|
|
166
|
+
# @!method self.values
|
|
167
|
+
# @return [Array<Symbol>]
|
|
168
|
+
end
|
|
169
|
+
end
|
|
127
170
|
end
|
|
128
171
|
end
|
|
129
172
|
end
|
|
@@ -54,7 +54,13 @@ module OpenAI
|
|
|
54
54
|
# @return [Symbol, OpenAI::Models::ContainerRetrieveResponse::MemoryLimit, nil]
|
|
55
55
|
optional :memory_limit, enum: -> { OpenAI::Models::ContainerRetrieveResponse::MemoryLimit }
|
|
56
56
|
|
|
57
|
-
# @!
|
|
57
|
+
# @!attribute network_policy
|
|
58
|
+
# Network access policy for the container.
|
|
59
|
+
#
|
|
60
|
+
# @return [OpenAI::Models::ContainerRetrieveResponse::NetworkPolicy, nil]
|
|
61
|
+
optional :network_policy, -> { OpenAI::Models::ContainerRetrieveResponse::NetworkPolicy }
|
|
62
|
+
|
|
63
|
+
# @!method initialize(id:, created_at:, name:, object:, status:, expires_after: nil, last_active_at: nil, memory_limit: nil, network_policy: nil)
|
|
58
64
|
# Some parameter documentations has been truncated, see
|
|
59
65
|
# {OpenAI::Models::ContainerRetrieveResponse} for more details.
|
|
60
66
|
#
|
|
@@ -73,6 +79,8 @@ module OpenAI
|
|
|
73
79
|
# @param last_active_at [Integer] Unix timestamp (in seconds) when the container was last active.
|
|
74
80
|
#
|
|
75
81
|
# @param memory_limit [Symbol, OpenAI::Models::ContainerRetrieveResponse::MemoryLimit] The memory limit configured for the container.
|
|
82
|
+
#
|
|
83
|
+
# @param network_policy [OpenAI::Models::ContainerRetrieveResponse::NetworkPolicy] Network access policy for the container.
|
|
76
84
|
|
|
77
85
|
# @see OpenAI::Models::ContainerRetrieveResponse#expires_after
|
|
78
86
|
class ExpiresAfter < OpenAI::Internal::Type::BaseModel
|
|
@@ -124,6 +132,41 @@ module OpenAI
|
|
|
124
132
|
# @!method self.values
|
|
125
133
|
# @return [Array<Symbol>]
|
|
126
134
|
end
|
|
135
|
+
|
|
136
|
+
# @see OpenAI::Models::ContainerRetrieveResponse#network_policy
|
|
137
|
+
class NetworkPolicy < OpenAI::Internal::Type::BaseModel
|
|
138
|
+
# @!attribute type
|
|
139
|
+
# The network policy mode.
|
|
140
|
+
#
|
|
141
|
+
# @return [Symbol, OpenAI::Models::ContainerRetrieveResponse::NetworkPolicy::Type]
|
|
142
|
+
required :type, enum: -> { OpenAI::Models::ContainerRetrieveResponse::NetworkPolicy::Type }
|
|
143
|
+
|
|
144
|
+
# @!attribute allowed_domains
|
|
145
|
+
# Allowed outbound domains when `type` is `allowlist`.
|
|
146
|
+
#
|
|
147
|
+
# @return [Array<String>, nil]
|
|
148
|
+
optional :allowed_domains, OpenAI::Internal::Type::ArrayOf[String]
|
|
149
|
+
|
|
150
|
+
# @!method initialize(type:, allowed_domains: nil)
|
|
151
|
+
# Network access policy for the container.
|
|
152
|
+
#
|
|
153
|
+
# @param type [Symbol, OpenAI::Models::ContainerRetrieveResponse::NetworkPolicy::Type] The network policy mode.
|
|
154
|
+
#
|
|
155
|
+
# @param allowed_domains [Array<String>] Allowed outbound domains when `type` is `allowlist`.
|
|
156
|
+
|
|
157
|
+
# The network policy mode.
|
|
158
|
+
#
|
|
159
|
+
# @see OpenAI::Models::ContainerRetrieveResponse::NetworkPolicy#type
|
|
160
|
+
module Type
|
|
161
|
+
extend OpenAI::Internal::Type::Enum
|
|
162
|
+
|
|
163
|
+
ALLOWLIST = :allowlist
|
|
164
|
+
DISABLED = :disabled
|
|
165
|
+
|
|
166
|
+
# @!method self.values
|
|
167
|
+
# @return [Array<Symbol>]
|
|
168
|
+
end
|
|
169
|
+
end
|
|
127
170
|
end
|
|
128
171
|
end
|
|
129
172
|
end
|
|
@@ -222,8 +222,9 @@ module OpenAI
|
|
|
222
222
|
# @!attribute safety_identifier
|
|
223
223
|
# A stable identifier used to help detect users of your application that may be
|
|
224
224
|
# violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
225
|
-
# identifies each user
|
|
226
|
-
# order to avoid sending us any
|
|
225
|
+
# identifies each user, with a maximum length of 64 characters. We recommend
|
|
226
|
+
# hashing their username or email address, in order to avoid sending us any
|
|
227
|
+
# identifying information.
|
|
227
228
|
# [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
228
229
|
#
|
|
229
230
|
# @return [String, nil]
|
|
@@ -180,8 +180,9 @@ module OpenAI
|
|
|
180
180
|
# @!attribute safety_identifier
|
|
181
181
|
# A stable identifier used to help detect users of your application that may be
|
|
182
182
|
# violating OpenAI's usage policies. The IDs should be a string that uniquely
|
|
183
|
-
# identifies each user
|
|
184
|
-
# order to avoid sending us any
|
|
183
|
+
# identifies each user, with a maximum length of 64 characters. We recommend
|
|
184
|
+
# hashing their username or email address, in order to avoid sending us any
|
|
185
|
+
# identifying information.
|
|
185
186
|
# [Learn more](https://platform.openai.com/docs/guides/safety-best-practices#safety-identifiers).
|
|
186
187
|
#
|
|
187
188
|
# @return [String, nil]
|