Class: Raif::Evals::CliJudges::Codex

Inherits:
Base
  • Object
show all
Defined in:
app/models/raif/evals/cli_judges/codex.rb

Constant Summary collapse

NOT_SIGNED_IN =
/not logged in|codex login|401|unauthorized|authentication/i
USAGE_LIMITED =
/usage limit|quota|hit your limit/i
RATE_LIMITED =
/rate limit|429|too many requests/i
DISABLED_FEATURES =

Features that give the model tools or add their instructions to the prompt.

%w[apps plugins multi_agent shell_tool unified_exec image_generation browser_use computer_use hooks skill_search].freeze

Constants inherited from Base

Base::STRIPPED_ENV

Constants inherited from Llm

Llm::UNSENT_TEMPERATURE_WARNINGS, Llm::VALID_RESPONSE_FORMATS

Instance Attribute Summary

Attributes inherited from Llm

#api_name, #batch_max_completion_tokens, #capabilities, #default_max_completion_tokens, #default_temperature, #deprecated, #display_name, #input_token_cost, #key, #lifecycle, #migration_note, #non_streaming_max_completion_tokens, #output_token_cost, #pricing, #provider_settings, #replacement_key, #retirement_date, #supported_provider_managed_tools, #supports_native_tool_use

Class Method Summary collapse

Methods inherited from Base

eval_judge_only?, #format_messages, kept_env, llm_configs, #perform_model_completion!, reset_version_check!

Methods inherited from Llm

#accepts_reasoning_effort?, #added_on, batch_inference_cost_multiplier, #build_forced_tool_choice, #build_pending_model_completion, #build_required_tool_choice, cache_creation_input_token_cost_multiplier, cache_read_input_token_cost_multiplier, #chat, #deprecated?, #deprecated_on, deprecation_details, #deprecation_message, eval_judge_only?, #initialize, #lifecycle_status, #name, #pending_model_completion_attributes, #perform_model_completion!, prompt_tokens_include_cached_tokens?, #reasoning_effort_levels, #streaming_supported?, streaming_supported_for_key?, supports_batch_inference?, #supports_batch_inference?, #supports_encrypted_reasoning?, #supports_faithful_required_tool_choice?, #supports_forced_tool_choice?, #supports_parallel_tool_calls?, #supports_provider_managed_tool?, supports_reasoning_effort?, #supports_required_tool_choice?, #supports_strict_structured_outputs?, #supports_structured_outputs?, #supports_temperature?, valid_response_formats, #validate_provider_managed_tool_support!, #validate_tool_choice_support!

Constructor Details

This class inherits a constructor from Raif::Llm

Class Method Details

.executable ⇒ Object



19
# File 'app/models/raif/evals/cli_judges/codex.rb', line 19

def self.executable = "codex"

.minimum_version ⇒ Object

The oldest version the flags in #argv were checked against.



22
# File 'app/models/raif/evals/cli_judges/codex.rb', line 22

def self.minimum_version = "0.172.0"

.models ⇒ Object



13
14
15
16
17
# File 'app/models/raif/evals/cli_judges/codex.rb', line 13

def self.models
  [
    { key: :codex_cli_gpt_6_2_sol, api_name: "gpt-6.2-sol", display_name: "GPT-6.2 Sol (codex CLI)", effort: "high" }
  ]
end