Skip to content

Commit 1815c45

Browse files
chore: reorganize type aliases
1 parent 2306cb4 commit 1815c45

File tree

50 files changed

+112
-92
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+112
-92
lines changed

lib/openai.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@
251251
require_relative "openai/models/eval_update_response"
252252
require_relative "openai/models/file_chunking_strategy"
253253
require_relative "openai/models/file_chunking_strategy_param"
254+
require_relative "openai/models/file_content"
254255
require_relative "openai/models/file_content_params"
255256
require_relative "openai/models/file_create_params"
256257
require_relative "openai/models/file_deleted"

lib/openai/models/file_content.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
module OpenAI
4+
module Models
5+
FileContent = String
6+
end
7+
end

rbi/openai/models/beta/threads/runs/run_step.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7+
RunStep = Runs::RunStep
8+
79
module Runs
810
class RunStep < OpenAI::Internal::Type::BaseModel
911
# The identifier of the run step, which can be referenced in API endpoints.
@@ -337,8 +339,6 @@ module OpenAI
337339
end
338340
end
339341
end
340-
341-
RunStep = Runs::RunStep
342342
end
343343
end
344344
end

rbi/openai/models/beta/threads/runs/run_step_delta.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7+
RunStepDelta = Runs::RunStepDelta
8+
79
module Runs
810
class RunStepDelta < OpenAI::Internal::Type::BaseModel
911
# The details of the run step.
@@ -73,8 +75,6 @@ module OpenAI
7375
end
7476
end
7577
end
76-
77-
RunStepDelta = Runs::RunStepDelta
7878
end
7979
end
8080
end

rbi/openai/models/beta/threads/runs/run_step_delta_event.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7+
RunStepDeltaEvent = Runs::RunStepDeltaEvent
8+
79
module Runs
810
class RunStepDeltaEvent < OpenAI::Internal::Type::BaseModel
911
# The identifier of the run step, which can be referenced in API endpoints.
@@ -43,8 +45,6 @@ module OpenAI
4345
def to_hash; end
4446
end
4547
end
46-
47-
RunStepDeltaEvent = Runs::RunStepDeltaEvent
4848
end
4949
end
5050
end

rbi/openai/models/beta/threads/runs/run_step_delta_message_delta.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7+
RunStepDeltaMessageDelta = Runs::RunStepDeltaMessageDelta
8+
79
module Runs
810
class RunStepDeltaMessageDelta < OpenAI::Internal::Type::BaseModel
911
# Always `message_creation`.
@@ -69,8 +71,6 @@ module OpenAI
6971
end
7072
end
7173
end
72-
73-
RunStepDeltaMessageDelta = Runs::RunStepDeltaMessageDelta
7474
end
7575
end
7676
end

rbi/openai/models/beta/threads/runs/run_step_include.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7+
RunStepInclude = Runs::RunStepInclude
8+
79
module Runs
810
module RunStepInclude
911
extend OpenAI::Internal::Type::Enum
@@ -21,8 +23,6 @@ module OpenAI
2123
def self.values; end
2224
end
2325
end
24-
25-
RunStepInclude = Runs::RunStepInclude
2626
end
2727
end
2828
end

rbi/openai/models/chat/chat_completion.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module OpenAI
44
module Models
5+
ChatCompletion = Chat::ChatCompletion
6+
57
module Chat
68
class ChatCompletion < OpenAI::Internal::Type::BaseModel
79
# A unique identifier for the chat completion.
@@ -294,7 +296,5 @@ module OpenAI
294296
end
295297
end
296298
end
297-
298-
ChatCompletion = Chat::ChatCompletion
299299
end
300300
end

rbi/openai/models/chat/chat_completion_assistant_message_param.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module OpenAI
44
module Models
5+
ChatCompletionAssistantMessageParam = Chat::ChatCompletionAssistantMessageParam
6+
57
module Chat
68
class ChatCompletionAssistantMessageParam < OpenAI::Internal::Type::BaseModel
79
# The role of the messages author, in this case `assistant`.
@@ -242,7 +244,5 @@ module OpenAI
242244
end
243245
end
244246
end
245-
246-
ChatCompletionAssistantMessageParam = Chat::ChatCompletionAssistantMessageParam
247247
end
248248
end

rbi/openai/models/chat/chat_completion_audio.rbi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
module OpenAI
44
module Models
5+
ChatCompletionAudio = Chat::ChatCompletionAudio
6+
57
module Chat
68
class ChatCompletionAudio < OpenAI::Internal::Type::BaseModel
79
# Unique identifier for this audio response.
@@ -44,7 +46,5 @@ module OpenAI
4446
def to_hash; end
4547
end
4648
end
47-
48-
ChatCompletionAudio = Chat::ChatCompletionAudio
4949
end
5050
end

0 commit comments

Comments
 (0)