Module: RubyCoded::Chat::CodexBridge::ErrorHandling

Included in:
RubyCoded::Chat::CodexBridge
Defined in:
lib/ruby_coded/chat/codex_bridge/error_handling.rb

Overview

Retry logic and error message formatting for the Codex API client. rubocop:disable Metrics/ModuleLength

Constant Summary collapse

AGENT_SWITCH_PATTERN =
/
  \b(implement|go[ ]ahead|proceed|execut|ejecutar?|comenz|
  comienz|hazlo|constru[iy]|adelante|dale|do[ ]it|build[ ]it)\b
/ix
UNSUPPORTED_MODEL_PATTERN =
/not supported when using Codex with a ChatGPT account/i