iachat/config/initializers
Rodribm10 26290c34a7 feat(captain): feature flag CAPTAIN_LLM_PROVIDER + ProviderConfig central
Adiciona o toggle openai_api | openai_codex_oauth. Por padrão mantém
comportamento legado (API key OpenAI tradicional). Quando mudamos pra
openai_codex_oauth, os clientes (RubyLLM + Agents gem) passam a
apontar para o proxy interno em http://localhost:3000/codex,
configurável via CAPTAIN_CODEX_PROXY_URL.

- Captain::Llm::ProviderConfig: single source of truth de api_key,
  api_base e model, baseado em CAPTAIN_LLM_PROVIDER
- config/initializers/ai_agents.rb refatorado
- lib/llm/config.rb refatorado
- 8 specs do ProviderConfig passando
- Fallback seguro: api_key dummy ('codex-oauth') quando usando proxy
  (o proxy ignora Authorization e usa OAuth interno)

NÃO mexe no Llm::LegacyBaseOpenAiService (PDF/Files API). Esse
continua sempre na API tradicional porque o endpoint Codex não
expõe Files API.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-22 15:29:52 -03:00
..
monkey_patches feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
00_init.rb
01_inject_enterprise_edition_module.rb
01_redis.rb fix: velma connection limit (#13395) 2026-01-29 20:53:41 +05:30
actioncable.rb
active_record_query_trace.rb
active_storage_opus_fix.rb fix: normalize audio/opus content type to audio/ogg for WhatsApp attachments (#223) 2026-02-24 22:01:18 -03:00
ai_agents.rb feat(captain): feature flag CAPTAIN_LLM_PROVIDER + ProviderConfig central 2026-04-22 15:29:52 -03:00
application_controller_renderer.rb
assets.rb
audited.rb
backtrace_silencers.rb
content_security_policy.rb feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
cookies_serializer.rb
cors.rb feat: Allow CORS api access (#11546) 2025-05-22 10:13:15 +05:30
custom_error_codes.rb
datadog.rb
devise_token_auth.rb
devise.rb
event_handlers.rb
facebook_messenger.rb fix: Add delay to instagram/messenger echo events to prevent duplicate messages (#12032) 2025-07-24 21:11:02 +04:00
feature_policy.rb
filter_parameter_logging.rb feat: MFA (#12290) 2025-09-18 20:19:24 +05:30
geocoder.rb fix: ip-lookup database lazy loading for all environments (#8052) 2024-10-22 23:18:30 -07:00
git_sha.rb
inflections.rb
languages.rb chore: Add bulgarian (bg) language (#12189) 2025-08-13 10:23:25 -07:00
liquid_handler.rb
lograge.rb fix: Lograge issue on non api pages (#10193) 2024-10-01 16:53:27 -07:00
mailer.rb Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
mime_types.rb
omniauth.rb feat: SAML authentication controllers [CW-2958] (#12319) 2025-09-10 20:02:27 +05:30
permissions_policy.rb
rack_attack.rb feat: add lightweight /health endpoint (#13386) 2026-01-29 00:24:01 +05:30
rack_profiler.rb chore: Improvements for codespace (#11667) 2025-06-04 00:21:23 -05:00
rack_timeout.rb chore: Set rack-timeout to log at ERROR level (#10400) 2024-11-11 12:35:05 -08:00
resend.rb feat: add Resend email delivery method and configuration (#11) 2025-04-03 23:28:38 -03:00
searchkick.rb feat(ee): Setup advanced, performant message search (#12193) 2025-08-28 10:10:28 +05:30
secure_password.rb
sentry.rb
session_store.rb
sidekiq.rb feat: mensagens agendadas (#198) 2026-01-30 22:08:16 -03:00
stripe.rb
warden_hooks.rb
wrap_parameters.rb