Skip to content

Commit e2cca18

Browse files
fix: sorbet class aliases are not type aliases (#40)
1 parent e72abca commit e2cca18

File tree

45 files changed

+92
-93
lines changed

Some content is hidden

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

45 files changed

+92
-93
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7-
RunStep = T.type_alias { Runs::RunStep }
8-
97
module Runs
108
class RunStep < OpenAI::BaseModel
119
# The identifier of the run step, which can be referenced in API endpoints.
@@ -392,6 +390,8 @@ module OpenAI
392390
end
393391
end
394392
end
393+
394+
RunStep = Runs::RunStep
395395
end
396396
end
397397
end

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7-
RunStepDelta = T.type_alias { Runs::RunStepDelta }
8-
97
module Runs
108
class RunStepDelta < OpenAI::BaseModel
119
# The details of the run step.
@@ -82,6 +80,8 @@ module OpenAI
8280
end
8381
end
8482
end
83+
84+
RunStepDelta = Runs::RunStepDelta
8585
end
8686
end
8787
end

rbi/lib/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,8 +4,6 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7-
RunStepDeltaEvent = T.type_alias { Runs::RunStepDeltaEvent }
8-
97
module Runs
108
class RunStepDeltaEvent < OpenAI::BaseModel
119
# The identifier of the run step, which can be referenced in API endpoints.
@@ -52,6 +50,8 @@ module OpenAI
5250
end
5351
end
5452
end
53+
54+
RunStepDeltaEvent = Runs::RunStepDeltaEvent
5555
end
5656
end
5757
end

rbi/lib/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,8 +4,6 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7-
RunStepDeltaMessageDelta = T.type_alias { Runs::RunStepDeltaMessageDelta }
8-
97
module Runs
108
class RunStepDeltaMessageDelta < OpenAI::BaseModel
119
# Always `message_creation`.
@@ -71,6 +69,8 @@ module OpenAI
7169
end
7270
end
7371
end
72+
73+
RunStepDeltaMessageDelta = Runs::RunStepDeltaMessageDelta
7474
end
7575
end
7676
end

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ module OpenAI
44
module Models
55
module Beta
66
module Threads
7-
RunStepInclude = T.type_alias { Runs::RunStepInclude }
8-
97
module Runs
108
class RunStepInclude < OpenAI::Enum
119
abstract!
@@ -16,6 +14,8 @@ module OpenAI
1614
:"step_details.tool_calls[*].file_search.results[*].content"
1715
end
1816
end
17+
18+
RunStepInclude = Runs::RunStepInclude
1919
end
2020
end
2121
end

rbi/lib/openai/models/chat/chat_completion.rbi

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

33
module OpenAI
44
module Models
5-
ChatCompletion = T.type_alias { Chat::ChatCompletion }
6-
75
module Chat
86
class ChatCompletion < OpenAI::BaseModel
97
# A unique identifier for the chat completion.
@@ -282,5 +280,7 @@ module OpenAI
282280
end
283281
end
284282
end
283+
284+
ChatCompletion = Chat::ChatCompletion
285285
end
286286
end

rbi/lib/openai/models/chat/chat_completion_assistant_message_param.rbi

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

33
module OpenAI
44
module Models
5-
ChatCompletionAssistantMessageParam = T.type_alias { Chat::ChatCompletionAssistantMessageParam }
6-
75
module Chat
86
class ChatCompletionAssistantMessageParam < OpenAI::BaseModel
97
# The role of the messages author, in this case `assistant`.
@@ -278,5 +276,7 @@ module OpenAI
278276
end
279277
end
280278
end
279+
280+
ChatCompletionAssistantMessageParam = Chat::ChatCompletionAssistantMessageParam
281281
end
282282
end

rbi/lib/openai/models/chat/chat_completion_audio.rbi

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

33
module OpenAI
44
module Models
5-
ChatCompletionAudio = T.type_alias { Chat::ChatCompletionAudio }
6-
75
module Chat
86
class ChatCompletionAudio < OpenAI::BaseModel
97
# Unique identifier for this audio response.
@@ -58,5 +56,7 @@ module OpenAI
5856
end
5957
end
6058
end
59+
60+
ChatCompletionAudio = Chat::ChatCompletionAudio
6161
end
6262
end

rbi/lib/openai/models/chat/chat_completion_audio_param.rbi

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

33
module OpenAI
44
module Models
5-
ChatCompletionAudioParam = T.type_alias { Chat::ChatCompletionAudioParam }
6-
75
module Chat
86
class ChatCompletionAudioParam < OpenAI::BaseModel
97
# Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`,
@@ -69,5 +67,7 @@ module OpenAI
6967
end
7068
end
7169
end
70+
71+
ChatCompletionAudioParam = Chat::ChatCompletionAudioParam
7272
end
7373
end

rbi/lib/openai/models/chat/chat_completion_chunk.rbi

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

33
module OpenAI
44
module Models
5-
ChatCompletionChunk = T.type_alias { Chat::ChatCompletionChunk }
6-
75
module Chat
86
class ChatCompletionChunk < OpenAI::BaseModel
97
# A unique identifier for the chat completion. Each chunk has the same ID.
@@ -524,5 +522,7 @@ module OpenAI
524522
end
525523
end
526524
end
525+
526+
ChatCompletionChunk = Chat::ChatCompletionChunk
527527
end
528528
end

0 commit comments

Comments
 (0)