Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/beta/threads/runs/run_step.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module OpenAI
module Models
module Beta
module Threads
RunStep = T.type_alias { Runs::RunStep }

module Runs
class RunStep < OpenAI::BaseModel
# The identifier of the run step, which can be referenced in API endpoints.
Expand Down Expand Up @@ -392,6 +390,8 @@ module OpenAI
end
end
end

RunStep = Runs::RunStep
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/beta/threads/runs/run_step_delta.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module OpenAI
module Models
module Beta
module Threads
RunStepDelta = T.type_alias { Runs::RunStepDelta }

module Runs
class RunStepDelta < OpenAI::BaseModel
# The details of the run step.
Expand Down Expand Up @@ -82,6 +80,8 @@ module OpenAI
end
end
end

RunStepDelta = Runs::RunStepDelta
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module OpenAI
module Models
module Beta
module Threads
RunStepDeltaEvent = T.type_alias { Runs::RunStepDeltaEvent }

module Runs
class RunStepDeltaEvent < OpenAI::BaseModel
# The identifier of the run step, which can be referenced in API endpoints.
Expand Down Expand Up @@ -52,6 +50,8 @@ module OpenAI
end
end
end

RunStepDeltaEvent = Runs::RunStepDeltaEvent
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module OpenAI
module Models
module Beta
module Threads
RunStepDeltaMessageDelta = T.type_alias { Runs::RunStepDeltaMessageDelta }

module Runs
class RunStepDeltaMessageDelta < OpenAI::BaseModel
# Always `message_creation`.
Expand Down Expand Up @@ -71,6 +69,8 @@ module OpenAI
end
end
end

RunStepDeltaMessageDelta = Runs::RunStepDeltaMessageDelta
end
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ module OpenAI
module Models
module Beta
module Threads
RunStepInclude = T.type_alias { Runs::RunStepInclude }

module Runs
class RunStepInclude < OpenAI::Enum
abstract!
Expand All @@ -16,6 +14,8 @@ module OpenAI
:"step_details.tool_calls[*].file_search.results[*].content"
end
end

RunStepInclude = Runs::RunStepInclude
end
end
end
Expand Down
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletion = T.type_alias { Chat::ChatCompletion }

module Chat
class ChatCompletion < OpenAI::BaseModel
# A unique identifier for the chat completion.
Expand Down Expand Up @@ -282,5 +280,7 @@ module OpenAI
end
end
end

ChatCompletion = Chat::ChatCompletion
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionAssistantMessageParam = T.type_alias { Chat::ChatCompletionAssistantMessageParam }

module Chat
class ChatCompletionAssistantMessageParam < OpenAI::BaseModel
# The role of the messages author, in this case `assistant`.
Expand Down Expand Up @@ -278,5 +276,7 @@ module OpenAI
end
end
end

ChatCompletionAssistantMessageParam = Chat::ChatCompletionAssistantMessageParam
end
end
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion_audio.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionAudio = T.type_alias { Chat::ChatCompletionAudio }

module Chat
class ChatCompletionAudio < OpenAI::BaseModel
# Unique identifier for this audio response.
Expand Down Expand Up @@ -58,5 +56,7 @@ module OpenAI
end
end
end

ChatCompletionAudio = Chat::ChatCompletionAudio
end
end
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion_audio_param.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionAudioParam = T.type_alias { Chat::ChatCompletionAudioParam }

module Chat
class ChatCompletionAudioParam < OpenAI::BaseModel
# Specifies the output audio format. Must be one of `wav`, `mp3`, `flac`, `opus`,
Expand Down Expand Up @@ -69,5 +67,7 @@ module OpenAI
end
end
end

ChatCompletionAudioParam = Chat::ChatCompletionAudioParam
end
end
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion_chunk.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionChunk = T.type_alias { Chat::ChatCompletionChunk }

module Chat
class ChatCompletionChunk < OpenAI::BaseModel
# A unique identifier for the chat completion. Each chunk has the same ID.
Expand Down Expand Up @@ -524,5 +522,7 @@ module OpenAI
end
end
end

ChatCompletionChunk = Chat::ChatCompletionChunk
end
end
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion_content_part.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionContentPart = T.type_alias { Chat::ChatCompletionContentPart }

module Chat
# Learn about
# [text inputs](https://platform.openai.com/docs/guides/text-generation).
Expand Down Expand Up @@ -96,5 +94,7 @@ module OpenAI
end
end
end

ChatCompletionContentPart = Chat::ChatCompletionContentPart
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionContentPartImage = T.type_alias { Chat::ChatCompletionContentPartImage }

module Chat
class ChatCompletionContentPartImage < OpenAI::BaseModel
sig { returns(OpenAI::Models::Chat::ChatCompletionContentPartImage::ImageURL) }
Expand Down Expand Up @@ -82,5 +80,7 @@ module OpenAI
end
end
end

ChatCompletionContentPartImage = Chat::ChatCompletionContentPartImage
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionContentPartInputAudio = T.type_alias { Chat::ChatCompletionContentPartInputAudio }

module Chat
class ChatCompletionContentPartInputAudio < OpenAI::BaseModel
sig { returns(OpenAI::Models::Chat::ChatCompletionContentPartInputAudio::InputAudio) }
Expand Down Expand Up @@ -82,5 +80,7 @@ module OpenAI
end
end
end

ChatCompletionContentPartInputAudio = Chat::ChatCompletionContentPartInputAudio
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionContentPartRefusal = T.type_alias { Chat::ChatCompletionContentPartRefusal }

module Chat
class ChatCompletionContentPartRefusal < OpenAI::BaseModel
# The refusal message generated by the model.
Expand Down Expand Up @@ -33,5 +31,7 @@ module OpenAI
end
end
end

ChatCompletionContentPartRefusal = Chat::ChatCompletionContentPartRefusal
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionContentPartText = T.type_alias { Chat::ChatCompletionContentPartText }

module Chat
class ChatCompletionContentPartText < OpenAI::BaseModel
# The text content.
Expand Down Expand Up @@ -35,5 +33,7 @@ module OpenAI
end
end
end

ChatCompletionContentPartText = Chat::ChatCompletionContentPartText
end
end
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion_deleted.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionDeleted = T.type_alias { Chat::ChatCompletionDeleted }

module Chat
class ChatCompletionDeleted < OpenAI::BaseModel
# The ID of the chat completion that was deleted.
Expand Down Expand Up @@ -42,5 +40,7 @@ module OpenAI
end
end
end

ChatCompletionDeleted = Chat::ChatCompletionDeleted
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionDeveloperMessageParam = T.type_alias { Chat::ChatCompletionDeveloperMessageParam }

module Chat
class ChatCompletionDeveloperMessageParam < OpenAI::BaseModel
# The contents of the developer message.
Expand Down Expand Up @@ -76,5 +74,7 @@ module OpenAI
end
end
end

ChatCompletionDeveloperMessageParam = Chat::ChatCompletionDeveloperMessageParam
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionFunctionCallOption = T.type_alias { Chat::ChatCompletionFunctionCallOption }

module Chat
class ChatCompletionFunctionCallOption < OpenAI::BaseModel
# The name of the function to call.
Expand All @@ -26,5 +24,7 @@ module OpenAI
end
end
end

ChatCompletionFunctionCallOption = Chat::ChatCompletionFunctionCallOption
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionFunctionMessageParam = T.type_alias { Chat::ChatCompletionFunctionMessageParam }

module Chat
class ChatCompletionFunctionMessageParam < OpenAI::BaseModel
# The contents of the function message.
Expand Down Expand Up @@ -42,5 +40,7 @@ module OpenAI
end
end
end

ChatCompletionFunctionMessageParam = Chat::ChatCompletionFunctionMessageParam
end
end
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion_message.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionMessage = T.type_alias { Chat::ChatCompletionMessage }

module Chat
class ChatCompletionMessage < OpenAI::BaseModel
# The contents of the message.
Expand Down Expand Up @@ -246,5 +244,7 @@ module OpenAI
end
end
end

ChatCompletionMessage = Chat::ChatCompletionMessage
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionMessageParam = T.type_alias { Chat::ChatCompletionMessageParam }

module Chat
# Developer-provided instructions that the model should follow, regardless of
# messages sent by the user. With o1 models and newer, `developer` messages
Expand All @@ -26,5 +24,7 @@ module OpenAI
end
end
end

ChatCompletionMessageParam = Chat::ChatCompletionMessageParam
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionMessageToolCall = T.type_alias { Chat::ChatCompletionMessageToolCall }

module Chat
class ChatCompletionMessageToolCall < OpenAI::BaseModel
# The ID of the tool call.
Expand Down Expand Up @@ -85,5 +83,7 @@ module OpenAI
end
end
end

ChatCompletionMessageToolCall = Chat::ChatCompletionMessageToolCall
end
end
4 changes: 2 additions & 2 deletions rbi/lib/openai/models/chat/chat_completion_modality.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module OpenAI
module Models
ChatCompletionModality = T.type_alias { Chat::ChatCompletionModality }

module Chat
class ChatCompletionModality < OpenAI::Enum
abstract!
Expand All @@ -14,5 +12,7 @@ module OpenAI
AUDIO = :audio
end
end

ChatCompletionModality = Chat::ChatCompletionModality
end
end
Loading