Module: RubyCoded::Chat::CodexModels
- Defined in:
- lib/ruby_coded/chat/codex_models.rb
Overview
Local catalog of models available through the ChatGPT Codex backend. These models are not listed in RubyLLM.models because they use a different API (Responses API via chatgpt.com/backend-api).
Defined Under Namespace
Classes: CodexModel
Constant Summary collapse
- MODELS =
[ CodexModel.new(id: "gpt-5.4", display_name: "GPT 5.4 (Recommended)", context_window: 272_000, max_output: 128_000), CodexModel.new(id: "gpt-5.4-mini", display_name: "GPT 5.4 Mini", context_window: 272_000, max_output: 128_000), CodexModel.new(id: "gpt-5.3-codex-spark", display_name: "GPT 5.3 Codex Spark (Pro only)", context_window: 272_000, max_output: 128_000), CodexModel.new(id: "gpt-5.2-codex", display_name: "GPT 5.2 Codex", context_window: 272_000, max_output: 128_000), CodexModel.new(id: "gpt-5.2", display_name: "GPT 5.2", context_window: 272_000, max_output: 128_000) ].freeze
Class Method Summary collapse
Class Method Details
.all ⇒ Object
28 29 30 |
# File 'lib/ruby_coded/chat/codex_models.rb', line 28 def self.all MODELS end |
.codex_model?(id) ⇒ Boolean
36 37 38 |
# File 'lib/ruby_coded/chat/codex_models.rb', line 36 def self.codex_model?(id) MODELS.any? { |m| m.id == id } end |
.find(id) ⇒ Object
32 33 34 |
# File 'lib/ruby_coded/chat/codex_models.rb', line 32 def self.find(id) MODELS.find { |m| m.id == id } end |