openai 0.32.0 → 0.33.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: 93eb98c219356a4e424930695d90aad0d6100f2d7547416e1ab30ccc7527e69a
4
- data.tar.gz: 6fe4f2e35ec1f2ce294eb14d92fd8fff1e872d1e2f2c93e33b0f0a7014bdda6b
3
+ metadata.gz: 3cb9e0b4c28ff23456781eee9c645f51eaf5747102a953dbbf6daf986260b6f8
4
+ data.tar.gz: 63615df1a3f18243a139ca36f39be7f05432672e30c9419f837ca8d2cab44772
5
5
  SHA512:
6
- metadata.gz: e13c1e23f3e17b8a8cbf52696205fbe81ab4d2d369d61bb327acaf9dad77673ab8adf636b109a117bd8ccf9fb619081a5e63d37493f85cfe5839a52a78653024
7
- data.tar.gz: 1ace0e832f9f9542b5d8bdd968d8cf127b9501d074846e66edcd265e362fbcef5a83a7a59d5feb4a064ab4e76c1271109070cbf2da9e3dc2d249d79691ca395e
6
+ metadata.gz: 7b747eff83bd1fafd49814aec032f793a6d2eeb40063f87be0e0dacce5eab466e8977803f2e72db4c3f77e082dedf0e9b9321d74a615e54bf60d1ba9b438451a
7
+ data.tar.gz: 00b2140c930518ad2c7d096e479ea4d7b161915197bc9cc32c5bf6b3595e8f00daa5c0fcbac243b2640701692f5973edc3a9cd5fa2d8cd09e6d8233565952896
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.33.0 (2025-10-17)
4
+
5
+ Full Changelog: [v0.32.0...v0.33.0](https://github.com/openai/openai-ruby/compare/v0.32.0...v0.33.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([2d18f16](https://github.com/openai/openai-ruby/commit/2d18f169b109857149626499832c3e345626466c))
10
+
3
11
  ## 0.32.0 (2025-10-16)
4
12
 
5
13
  Full Changelog: [v0.31.0...v0.32.0](https://github.com/openai/openai-ruby/compare/v0.31.0...v0.32.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.32.0"
18
+ gem "openai", "~> 0.33.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -10,32 +10,6 @@ module OpenAI
10
10
  # @return [OpenAI::Resources::Beta::ChatKit::Threads]
11
11
  attr_reader :threads
12
12
 
13
- # Some parameter documentations has been truncated, see
14
- # {OpenAI::Models::Beta::ChatKitUploadFileParams} for more details.
15
- #
16
- # Upload a ChatKit file
17
- #
18
- # @overload upload_file(file:, request_options: {})
19
- #
20
- # @param file [Pathname, StringIO, IO, String, OpenAI::FilePart] Binary file contents to store with the ChatKit session. Supports PDFs and PNG, J
21
- #
22
- # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}, nil]
23
- #
24
- # @return [OpenAI::Models::Beta::FilePart, OpenAI::Models::Beta::ImagePart]
25
- #
26
- # @see OpenAI::Models::Beta::ChatKitUploadFileParams
27
- def upload_file(params)
28
- parsed, options = OpenAI::Beta::ChatKitUploadFileParams.dump_request(params)
29
- @client.request(
30
- method: :post,
31
- path: "chatkit/files",
32
- headers: {"content-type" => "multipart/form-data"},
33
- body: parsed,
34
- model: OpenAI::Models::Beta::ChatKitUploadFileResponse,
35
- options: {extra_headers: {"OpenAI-Beta" => "chatkit_beta=v1"}, **options}
36
- )
37
- end
38
-
39
13
  # @api private
40
14
  #
41
15
  # @param client [OpenAI::Client]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.32.0"
4
+ VERSION = "0.33.0"
5
5
  end
data/lib/openai.rb CHANGED
@@ -142,14 +142,10 @@ require_relative "openai/models/beta/chatkit/thread_delete_response"
142
142
  require_relative "openai/models/beta/chatkit/thread_list_items_params"
143
143
  require_relative "openai/models/beta/chatkit/thread_list_params"
144
144
  require_relative "openai/models/beta/chatkit/thread_retrieve_params"
145
- require_relative "openai/models/beta/chatkit_upload_file_params"
146
- require_relative "openai/models/beta/chatkit_upload_file_response"
147
145
  require_relative "openai/models/beta/chatkit_workflow"
148
146
  require_relative "openai/models/beta/code_interpreter_tool"
149
- require_relative "openai/models/beta/file_part"
150
147
  require_relative "openai/models/beta/file_search_tool"
151
148
  require_relative "openai/models/beta/function_tool"
152
- require_relative "openai/models/beta/image_part"
153
149
  require_relative "openai/models/beta/message_stream_event"
154
150
  require_relative "openai/models/beta/run_step_stream_event"
155
151
  require_relative "openai/models/beta/run_stream_event"
@@ -10,21 +10,6 @@ module OpenAI
10
10
  sig { returns(OpenAI::Resources::Beta::ChatKit::Threads) }
11
11
  attr_reader :threads
12
12
 
13
- # Upload a ChatKit file
14
- sig do
15
- params(
16
- file: OpenAI::Internal::FileInput,
17
- request_options: OpenAI::RequestOptions::OrHash
18
- ).returns(OpenAI::Models::Beta::ChatKitUploadFileResponse::Variants)
19
- end
20
- def upload_file(
21
- # Binary file contents to store with the ChatKit session. Supports PDFs and PNG,
22
- # JPG, JPEG, GIF, or WEBP images.
23
- file:,
24
- request_options: {}
25
- )
26
- end
27
-
28
13
  # @api private
29
14
  sig { params(client: OpenAI::Client).returns(T.attached_class) }
30
15
  def self.new(client:)
@@ -6,11 +6,6 @@ module OpenAI
6
6
 
7
7
  attr_reader threads: OpenAI::Resources::Beta::ChatKit::Threads
8
8
 
9
- def upload_file: (
10
- file: OpenAI::Internal::file_input,
11
- ?request_options: OpenAI::request_opts
12
- ) -> OpenAI::Models::Beta::chatkit_upload_file_response
13
-
14
9
  def initialize: (client: OpenAI::Client) -> void
15
10
  end
16
11
  end
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.32.0
4
+ version: 0.33.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-16 00:00:00.000000000 Z
11
+ date: 2025-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -142,14 +142,10 @@ files:
142
142
  - lib/openai/models/beta/chatkit/thread_list_items_params.rb
143
143
  - lib/openai/models/beta/chatkit/thread_list_params.rb
144
144
  - lib/openai/models/beta/chatkit/thread_retrieve_params.rb
145
- - lib/openai/models/beta/chatkit_upload_file_params.rb
146
- - lib/openai/models/beta/chatkit_upload_file_response.rb
147
145
  - lib/openai/models/beta/chatkit_workflow.rb
148
146
  - lib/openai/models/beta/code_interpreter_tool.rb
149
- - lib/openai/models/beta/file_part.rb
150
147
  - lib/openai/models/beta/file_search_tool.rb
151
148
  - lib/openai/models/beta/function_tool.rb
152
- - lib/openai/models/beta/image_part.rb
153
149
  - lib/openai/models/beta/message_stream_event.rb
154
150
  - lib/openai/models/beta/run_step_stream_event.rb
155
151
  - lib/openai/models/beta/run_stream_event.rb
@@ -877,14 +873,10 @@ files:
877
873
  - rbi/openai/models/beta/chatkit/thread_list_items_params.rbi
878
874
  - rbi/openai/models/beta/chatkit/thread_list_params.rbi
879
875
  - rbi/openai/models/beta/chatkit/thread_retrieve_params.rbi
880
- - rbi/openai/models/beta/chatkit_upload_file_params.rbi
881
- - rbi/openai/models/beta/chatkit_upload_file_response.rbi
882
876
  - rbi/openai/models/beta/chatkit_workflow.rbi
883
877
  - rbi/openai/models/beta/code_interpreter_tool.rbi
884
- - rbi/openai/models/beta/file_part.rbi
885
878
  - rbi/openai/models/beta/file_search_tool.rbi
886
879
  - rbi/openai/models/beta/function_tool.rbi
887
- - rbi/openai/models/beta/image_part.rbi
888
880
  - rbi/openai/models/beta/message_stream_event.rbi
889
881
  - rbi/openai/models/beta/run_step_stream_event.rbi
890
882
  - rbi/openai/models/beta/run_stream_event.rbi
@@ -1601,14 +1593,10 @@ files:
1601
1593
  - sig/openai/models/beta/chatkit/thread_list_items_params.rbs
1602
1594
  - sig/openai/models/beta/chatkit/thread_list_params.rbs
1603
1595
  - sig/openai/models/beta/chatkit/thread_retrieve_params.rbs
1604
- - sig/openai/models/beta/chatkit_upload_file_params.rbs
1605
- - sig/openai/models/beta/chatkit_upload_file_response.rbs
1606
1596
  - sig/openai/models/beta/chatkit_workflow.rbs
1607
1597
  - sig/openai/models/beta/code_interpreter_tool.rbs
1608
- - sig/openai/models/beta/file_part.rbs
1609
1598
  - sig/openai/models/beta/file_search_tool.rbs
1610
1599
  - sig/openai/models/beta/function_tool.rbs
1611
- - sig/openai/models/beta/image_part.rbs
1612
1600
  - sig/openai/models/beta/message_stream_event.rbs
1613
1601
  - sig/openai/models/beta/run_step_stream_event.rbs
1614
1602
  - sig/openai/models/beta/run_stream_event.rbs
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- # @see OpenAI::Resources::Beta::ChatKit#upload_file
7
- class ChatKitUploadFileParams < OpenAI::Internal::Type::BaseModel
8
- extend OpenAI::Internal::Type::RequestParameters::Converter
9
- include OpenAI::Internal::Type::RequestParameters
10
-
11
- # @!attribute file
12
- # Binary file contents to store with the ChatKit session. Supports PDFs and PNG,
13
- # JPG, JPEG, GIF, or WEBP images.
14
- #
15
- # @return [Pathname, StringIO, IO, String, OpenAI::FilePart]
16
- required :file, OpenAI::Internal::Type::FileInput
17
-
18
- # @!method initialize(file:, request_options: {})
19
- # Some parameter documentations has been truncated, see
20
- # {OpenAI::Models::Beta::ChatKitUploadFileParams} for more details.
21
- #
22
- # @param file [Pathname, StringIO, IO, String, OpenAI::FilePart] Binary file contents to store with the ChatKit session. Supports PDFs and PNG, J
23
- #
24
- # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
25
- end
26
- end
27
- end
28
- end
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- # Represents either a file or image attachment.
7
- #
8
- # @see OpenAI::Resources::Beta::ChatKit#upload_file
9
- module ChatKitUploadFileResponse
10
- extend OpenAI::Internal::Type::Union
11
-
12
- discriminator :type
13
-
14
- # Metadata for a non-image file uploaded through ChatKit.
15
- variant :file, -> { OpenAI::Beta::FilePart }
16
-
17
- # Metadata for an image uploaded through ChatKit.
18
- variant :image, -> { OpenAI::Beta::ImagePart }
19
-
20
- # @!method self.variants
21
- # @return [Array(OpenAI::Models::Beta::FilePart, OpenAI::Models::Beta::ImagePart)]
22
- end
23
- end
24
- end
25
- end
@@ -1,56 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- class FilePart < OpenAI::Internal::Type::BaseModel
7
- # @!attribute id
8
- # Unique identifier for the uploaded file.
9
- #
10
- # @return [String]
11
- required :id, String
12
-
13
- # @!attribute mime_type
14
- # MIME type reported for the uploaded file. Defaults to null when unknown.
15
- #
16
- # @return [String, nil]
17
- required :mime_type, String, nil?: true
18
-
19
- # @!attribute name
20
- # Original filename supplied by the uploader. Defaults to null when unnamed.
21
- #
22
- # @return [String, nil]
23
- required :name, String, nil?: true
24
-
25
- # @!attribute type
26
- # Type discriminator that is always `file`.
27
- #
28
- # @return [Symbol, :file]
29
- required :type, const: :file
30
-
31
- # @!attribute upload_url
32
- # Signed URL for downloading the uploaded file. Defaults to null when no download
33
- # link is available.
34
- #
35
- # @return [String, nil]
36
- required :upload_url, String, nil?: true
37
-
38
- # @!method initialize(id:, mime_type:, name:, upload_url:, type: :file)
39
- # Some parameter documentations has been truncated, see
40
- # {OpenAI::Models::Beta::FilePart} for more details.
41
- #
42
- # Metadata for a non-image file uploaded through ChatKit.
43
- #
44
- # @param id [String] Unique identifier for the uploaded file.
45
- #
46
- # @param mime_type [String, nil] MIME type reported for the uploaded file. Defaults to null when unknown.
47
- #
48
- # @param name [String, nil] Original filename supplied by the uploader. Defaults to null when unnamed.
49
- #
50
- # @param upload_url [String, nil] Signed URL for downloading the uploaded file. Defaults to null when no download
51
- #
52
- # @param type [Symbol, :file] Type discriminator that is always `file`.
53
- end
54
- end
55
- end
56
- end
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- class ImagePart < OpenAI::Internal::Type::BaseModel
7
- # @!attribute id
8
- # Unique identifier for the uploaded image.
9
- #
10
- # @return [String]
11
- required :id, String
12
-
13
- # @!attribute mime_type
14
- # MIME type of the uploaded image.
15
- #
16
- # @return [String]
17
- required :mime_type, String
18
-
19
- # @!attribute name
20
- # Original filename for the uploaded image. Defaults to null when unnamed.
21
- #
22
- # @return [String, nil]
23
- required :name, String, nil?: true
24
-
25
- # @!attribute preview_url
26
- # Preview URL that can be rendered inline for the image.
27
- #
28
- # @return [String]
29
- required :preview_url, String
30
-
31
- # @!attribute type
32
- # Type discriminator that is always `image`.
33
- #
34
- # @return [Symbol, :image]
35
- required :type, const: :image
36
-
37
- # @!attribute upload_url
38
- # Signed URL for downloading the uploaded image. Defaults to null when no download
39
- # link is available.
40
- #
41
- # @return [String, nil]
42
- required :upload_url, String, nil?: true
43
-
44
- # @!method initialize(id:, mime_type:, name:, preview_url:, upload_url:, type: :image)
45
- # Some parameter documentations has been truncated, see
46
- # {OpenAI::Models::Beta::ImagePart} for more details.
47
- #
48
- # Metadata for an image uploaded through ChatKit.
49
- #
50
- # @param id [String] Unique identifier for the uploaded image.
51
- #
52
- # @param mime_type [String] MIME type of the uploaded image.
53
- #
54
- # @param name [String, nil] Original filename for the uploaded image. Defaults to null when unnamed.
55
- #
56
- # @param preview_url [String] Preview URL that can be rendered inline for the image.
57
- #
58
- # @param upload_url [String, nil] Signed URL for downloading the uploaded image. Defaults to null when no download
59
- #
60
- # @param type [Symbol, :image] Type discriminator that is always `image`.
61
- end
62
- end
63
- end
64
- end
@@ -1,50 +0,0 @@
1
- # typed: strong
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- class ChatKitUploadFileParams < OpenAI::Internal::Type::BaseModel
7
- extend OpenAI::Internal::Type::RequestParameters::Converter
8
- include OpenAI::Internal::Type::RequestParameters
9
-
10
- OrHash =
11
- T.type_alias do
12
- T.any(
13
- OpenAI::Beta::ChatKitUploadFileParams,
14
- OpenAI::Internal::AnyHash
15
- )
16
- end
17
-
18
- # Binary file contents to store with the ChatKit session. Supports PDFs and PNG,
19
- # JPG, JPEG, GIF, or WEBP images.
20
- sig { returns(OpenAI::Internal::FileInput) }
21
- attr_accessor :file
22
-
23
- sig do
24
- params(
25
- file: OpenAI::Internal::FileInput,
26
- request_options: OpenAI::RequestOptions::OrHash
27
- ).returns(T.attached_class)
28
- end
29
- def self.new(
30
- # Binary file contents to store with the ChatKit session. Supports PDFs and PNG,
31
- # JPG, JPEG, GIF, or WEBP images.
32
- file:,
33
- request_options: {}
34
- )
35
- end
36
-
37
- sig do
38
- override.returns(
39
- {
40
- file: OpenAI::Internal::FileInput,
41
- request_options: OpenAI::RequestOptions
42
- }
43
- )
44
- end
45
- def to_hash
46
- end
47
- end
48
- end
49
- end
50
- end
@@ -1,25 +0,0 @@
1
- # typed: strong
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- # Represents either a file or image attachment.
7
- module ChatKitUploadFileResponse
8
- extend OpenAI::Internal::Type::Union
9
-
10
- Variants =
11
- T.type_alias do
12
- T.any(OpenAI::Beta::FilePart, OpenAI::Beta::ImagePart)
13
- end
14
-
15
- sig do
16
- override.returns(
17
- T::Array[OpenAI::Models::Beta::ChatKitUploadFileResponse::Variants]
18
- )
19
- end
20
- def self.variants
21
- end
22
- end
23
- end
24
- end
25
- end
@@ -1,74 +0,0 @@
1
- # typed: strong
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- class FilePart < OpenAI::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(OpenAI::Beta::FilePart, OpenAI::Internal::AnyHash)
10
- end
11
-
12
- # Unique identifier for the uploaded file.
13
- sig { returns(String) }
14
- attr_accessor :id
15
-
16
- # MIME type reported for the uploaded file. Defaults to null when unknown.
17
- sig { returns(T.nilable(String)) }
18
- attr_accessor :mime_type
19
-
20
- # Original filename supplied by the uploader. Defaults to null when unnamed.
21
- sig { returns(T.nilable(String)) }
22
- attr_accessor :name
23
-
24
- # Type discriminator that is always `file`.
25
- sig { returns(Symbol) }
26
- attr_accessor :type
27
-
28
- # Signed URL for downloading the uploaded file. Defaults to null when no download
29
- # link is available.
30
- sig { returns(T.nilable(String)) }
31
- attr_accessor :upload_url
32
-
33
- # Metadata for a non-image file uploaded through ChatKit.
34
- sig do
35
- params(
36
- id: String,
37
- mime_type: T.nilable(String),
38
- name: T.nilable(String),
39
- upload_url: T.nilable(String),
40
- type: Symbol
41
- ).returns(T.attached_class)
42
- end
43
- def self.new(
44
- # Unique identifier for the uploaded file.
45
- id:,
46
- # MIME type reported for the uploaded file. Defaults to null when unknown.
47
- mime_type:,
48
- # Original filename supplied by the uploader. Defaults to null when unnamed.
49
- name:,
50
- # Signed URL for downloading the uploaded file. Defaults to null when no download
51
- # link is available.
52
- upload_url:,
53
- # Type discriminator that is always `file`.
54
- type: :file
55
- )
56
- end
57
-
58
- sig do
59
- override.returns(
60
- {
61
- id: String,
62
- mime_type: T.nilable(String),
63
- name: T.nilable(String),
64
- type: Symbol,
65
- upload_url: T.nilable(String)
66
- }
67
- )
68
- end
69
- def to_hash
70
- end
71
- end
72
- end
73
- end
74
- end
@@ -1,82 +0,0 @@
1
- # typed: strong
2
-
3
- module OpenAI
4
- module Models
5
- module Beta
6
- class ImagePart < OpenAI::Internal::Type::BaseModel
7
- OrHash =
8
- T.type_alias do
9
- T.any(OpenAI::Beta::ImagePart, OpenAI::Internal::AnyHash)
10
- end
11
-
12
- # Unique identifier for the uploaded image.
13
- sig { returns(String) }
14
- attr_accessor :id
15
-
16
- # MIME type of the uploaded image.
17
- sig { returns(String) }
18
- attr_accessor :mime_type
19
-
20
- # Original filename for the uploaded image. Defaults to null when unnamed.
21
- sig { returns(T.nilable(String)) }
22
- attr_accessor :name
23
-
24
- # Preview URL that can be rendered inline for the image.
25
- sig { returns(String) }
26
- attr_accessor :preview_url
27
-
28
- # Type discriminator that is always `image`.
29
- sig { returns(Symbol) }
30
- attr_accessor :type
31
-
32
- # Signed URL for downloading the uploaded image. Defaults to null when no download
33
- # link is available.
34
- sig { returns(T.nilable(String)) }
35
- attr_accessor :upload_url
36
-
37
- # Metadata for an image uploaded through ChatKit.
38
- sig do
39
- params(
40
- id: String,
41
- mime_type: String,
42
- name: T.nilable(String),
43
- preview_url: String,
44
- upload_url: T.nilable(String),
45
- type: Symbol
46
- ).returns(T.attached_class)
47
- end
48
- def self.new(
49
- # Unique identifier for the uploaded image.
50
- id:,
51
- # MIME type of the uploaded image.
52
- mime_type:,
53
- # Original filename for the uploaded image. Defaults to null when unnamed.
54
- name:,
55
- # Preview URL that can be rendered inline for the image.
56
- preview_url:,
57
- # Signed URL for downloading the uploaded image. Defaults to null when no download
58
- # link is available.
59
- upload_url:,
60
- # Type discriminator that is always `image`.
61
- type: :image
62
- )
63
- end
64
-
65
- sig do
66
- override.returns(
67
- {
68
- id: String,
69
- mime_type: String,
70
- name: T.nilable(String),
71
- preview_url: String,
72
- type: Symbol,
73
- upload_url: T.nilable(String)
74
- }
75
- )
76
- end
77
- def to_hash
78
- end
79
- end
80
- end
81
- end
82
- end
@@ -1,26 +0,0 @@
1
- module OpenAI
2
- module Models
3
- module Beta
4
- type chatkit_upload_file_params =
5
- { file: OpenAI::Internal::file_input }
6
- & OpenAI::Internal::Type::request_parameters
7
-
8
- class ChatKitUploadFileParams < OpenAI::Internal::Type::BaseModel
9
- extend OpenAI::Internal::Type::RequestParameters::Converter
10
- include OpenAI::Internal::Type::RequestParameters
11
-
12
- attr_accessor file: OpenAI::Internal::file_input
13
-
14
- def initialize: (
15
- file: OpenAI::Internal::file_input,
16
- ?request_options: OpenAI::request_opts
17
- ) -> void
18
-
19
- def to_hash: -> {
20
- file: OpenAI::Internal::file_input,
21
- request_options: OpenAI::RequestOptions
22
- }
23
- end
24
- end
25
- end
26
- end
@@ -1,14 +0,0 @@
1
- module OpenAI
2
- module Models
3
- module Beta
4
- type chatkit_upload_file_response =
5
- OpenAI::Beta::FilePart | OpenAI::Beta::ImagePart
6
-
7
- module ChatKitUploadFileResponse
8
- extend OpenAI::Internal::Type::Union
9
-
10
- def self?.variants: -> ::Array[OpenAI::Models::Beta::chatkit_upload_file_response]
11
- end
12
- end
13
- end
14
- end
@@ -1,42 +0,0 @@
1
- module OpenAI
2
- module Models
3
- module Beta
4
- type file_part =
5
- {
6
- id: String,
7
- mime_type: String?,
8
- name: String?,
9
- type: :file,
10
- upload_url: String?
11
- }
12
-
13
- class FilePart < OpenAI::Internal::Type::BaseModel
14
- attr_accessor id: String
15
-
16
- attr_accessor mime_type: String?
17
-
18
- attr_accessor name: String?
19
-
20
- attr_accessor type: :file
21
-
22
- attr_accessor upload_url: String?
23
-
24
- def initialize: (
25
- id: String,
26
- mime_type: String?,
27
- name: String?,
28
- upload_url: String?,
29
- ?type: :file
30
- ) -> void
31
-
32
- def to_hash: -> {
33
- id: String,
34
- mime_type: String?,
35
- name: String?,
36
- type: :file,
37
- upload_url: String?
38
- }
39
- end
40
- end
41
- end
42
- end
@@ -1,47 +0,0 @@
1
- module OpenAI
2
- module Models
3
- module Beta
4
- type image_part =
5
- {
6
- id: String,
7
- mime_type: String,
8
- name: String?,
9
- preview_url: String,
10
- type: :image,
11
- upload_url: String?
12
- }
13
-
14
- class ImagePart < OpenAI::Internal::Type::BaseModel
15
- attr_accessor id: String
16
-
17
- attr_accessor mime_type: String
18
-
19
- attr_accessor name: String?
20
-
21
- attr_accessor preview_url: String
22
-
23
- attr_accessor type: :image
24
-
25
- attr_accessor upload_url: String?
26
-
27
- def initialize: (
28
- id: String,
29
- mime_type: String,
30
- name: String?,
31
- preview_url: String,
32
- upload_url: String?,
33
- ?type: :image
34
- ) -> void
35
-
36
- def to_hash: -> {
37
- id: String,
38
- mime_type: String,
39
- name: String?,
40
- preview_url: String,
41
- type: :image,
42
- upload_url: String?
43
- }
44
- end
45
- end
46
- end
47
- end