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
31 changes: 31 additions & 0 deletions rbi/lib/openai/models/beta/assistant_update_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,37 @@ module OpenAI
abstract!

Variants = type_template(:out) { {fixed: T.any(String, Symbol)} }

O3_MINI = :"o3-mini"
O3_MINI_2025_01_31 = :"o3-mini-2025-01-31"
O1 = :o1
O1_2024_12_17 = :"o1-2024-12-17"
GPT_4O = :"gpt-4o"
GPT_4O_2024_11_20 = :"gpt-4o-2024-11-20"
GPT_4O_2024_08_06 = :"gpt-4o-2024-08-06"
GPT_4O_2024_05_13 = :"gpt-4o-2024-05-13"
GPT_4O_MINI = :"gpt-4o-mini"
GPT_4O_MINI_2024_07_18 = :"gpt-4o-mini-2024-07-18"
GPT_4_5_PREVIEW = :"gpt-4.5-preview"
GPT_4_5_PREVIEW_2025_02_27 = :"gpt-4.5-preview-2025-02-27"
GPT_4_TURBO = :"gpt-4-turbo"
GPT_4_TURBO_2024_04_09 = :"gpt-4-turbo-2024-04-09"
GPT_4_0125_PREVIEW = :"gpt-4-0125-preview"
GPT_4_TURBO_PREVIEW = :"gpt-4-turbo-preview"
GPT_4_1106_PREVIEW = :"gpt-4-1106-preview"
GPT_4_VISION_PREVIEW = :"gpt-4-vision-preview"
GPT_4 = :"gpt-4"
GPT_4_0314 = :"gpt-4-0314"
GPT_4_0613 = :"gpt-4-0613"
GPT_4_32K = :"gpt-4-32k"
GPT_4_32K_0314 = :"gpt-4-32k-0314"
GPT_4_32K_0613 = :"gpt-4-32k-0613"
GPT_3_5_TURBO = :"gpt-3.5-turbo"
GPT_3_5_TURBO_16K = :"gpt-3.5-turbo-16k"
GPT_3_5_TURBO_0613 = :"gpt-3.5-turbo-0613"
GPT_3_5_TURBO_1106 = :"gpt-3.5-turbo-1106"
GPT_3_5_TURBO_0125 = :"gpt-3.5-turbo-0125"
GPT_3_5_TURBO_16K_0613 = :"gpt-3.5-turbo-16k-0613"
end

class ToolResources < OpenAI::BaseModel
Expand Down
4 changes: 4 additions & 0 deletions rbi/lib/openai/models/completion_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,10 @@ module OpenAI
abstract!

Variants = type_template(:out) { {fixed: T.any(String, Symbol)} }

GPT_3_5_TURBO_INSTRUCT = :"gpt-3.5-turbo-instruct"
DAVINCI_002 = :"davinci-002"
BABBAGE_002 = :"babbage-002"
end

# The prompt(s) to generate completions for, encoded as a string, array of
Expand Down
5 changes: 5 additions & 0 deletions rbi/lib/openai/models/fine_tuning/job_create_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,11 @@ module OpenAI
abstract!

Variants = type_template(:out) { {fixed: T.any(String, Symbol)} }

BABBAGE_002 = :"babbage-002"
DAVINCI_002 = :"davinci-002"
GPT_3_5_TURBO = :"gpt-3.5-turbo"
GPT_4O_MINI = :"gpt-4o-mini"
end

class Hyperparameters < OpenAI::BaseModel
Expand Down
31 changes: 31 additions & 0 deletions sig/openai/models/beta/assistant_update_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,37 @@ module OpenAI
| :"gpt-3.5-turbo-16k-0613"

class Model < OpenAI::Union
O3_MINI: :"o3-mini"
O3_MINI_2025_01_31: :"o3-mini-2025-01-31"
O1: :o1
O1_2024_12_17: :"o1-2024-12-17"
GPT_4O: :"gpt-4o"
GPT_4O_2024_11_20: :"gpt-4o-2024-11-20"
GPT_4O_2024_08_06: :"gpt-4o-2024-08-06"
GPT_4O_2024_05_13: :"gpt-4o-2024-05-13"
GPT_4O_MINI: :"gpt-4o-mini"
GPT_4O_MINI_2024_07_18: :"gpt-4o-mini-2024-07-18"
GPT_4_5_PREVIEW: :"gpt-4.5-preview"
GPT_4_5_PREVIEW_2025_02_27: :"gpt-4.5-preview-2025-02-27"
GPT_4_TURBO: :"gpt-4-turbo"
GPT_4_TURBO_2024_04_09: :"gpt-4-turbo-2024-04-09"
GPT_4_0125_PREVIEW: :"gpt-4-0125-preview"
GPT_4_TURBO_PREVIEW: :"gpt-4-turbo-preview"
GPT_4_1106_PREVIEW: :"gpt-4-1106-preview"
GPT_4_VISION_PREVIEW: :"gpt-4-vision-preview"
GPT_4: :"gpt-4"
GPT_4_0314: :"gpt-4-0314"
GPT_4_0613: :"gpt-4-0613"
GPT_4_32K: :"gpt-4-32k"
GPT_4_32K_0314: :"gpt-4-32k-0314"
GPT_4_32K_0613: :"gpt-4-32k-0613"
GPT_3_5_TURBO: :"gpt-3.5-turbo"
GPT_3_5_TURBO_16K: :"gpt-3.5-turbo-16k"
GPT_3_5_TURBO_0613: :"gpt-3.5-turbo-0613"
GPT_3_5_TURBO_1106: :"gpt-3.5-turbo-1106"
GPT_3_5_TURBO_0125: :"gpt-3.5-turbo-0125"
GPT_3_5_TURBO_16K_0613: :"gpt-3.5-turbo-16k-0613"

def self.variants: -> [String, (:"o3-mini"
| :"o3-mini-2025-01-31"
| :o1
Expand Down
4 changes: 4 additions & 0 deletions sig/openai/models/completion_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ module OpenAI
String | :"gpt-3.5-turbo-instruct" | :"davinci-002" | :"babbage-002"

class Model < OpenAI::Union
GPT_3_5_TURBO_INSTRUCT: :"gpt-3.5-turbo-instruct"
DAVINCI_002: :"davinci-002"
BABBAGE_002: :"babbage-002"

def self.variants: -> [String, (:"gpt-3.5-turbo-instruct"
| :"davinci-002"
| :"babbage-002")]
Expand Down
5 changes: 5 additions & 0 deletions sig/openai/models/fine_tuning/job_create_params.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ module OpenAI
| :"gpt-4o-mini"

class Model < OpenAI::Union
BABBAGE_002: :"babbage-002"
DAVINCI_002: :"davinci-002"
GPT_3_5_TURBO: :"gpt-3.5-turbo"
GPT_4O_MINI: :"gpt-4o-mini"

def self.variants: -> [String, (:"babbage-002"
| :"davinci-002"
| :"gpt-3.5-turbo"
Expand Down