iachat/enterprise/app/models
Shivam Mishra 75c57ad039
feat: use captain endpoint config in legacy OpenAI base service (#12060)
This PR migrates the legacy OpenAI integration (where users provide
their own API keys) from using hardcoded `https://api.openai.com`
endpoints to use the configurable `CAPTAIN_OPEN_AI_ENDPOINT` from the
captain configuration. This ensures consistency across all OpenAI
integrations in the platform.

## Changes

- Updated `lib/integrations/openai_base_service.rb` to use captain
endpoint config
- Updated `enterprise/app/models/enterprise/concerns/article.rb` to use
captain endpoint config
- Removed unused `enterprise/lib/chat_gpt.rb` class
- Added tests for endpoint configuration behavior
2025-07-30 08:58:27 +04:00
..
captain feat: scenario tools [CW-4597] (#11908) 2025-07-21 16:42:12 +05:30
channel feat: Whatsapp embedded signup (#11612) 2025-07-14 21:37:06 -07:00
concerns feat: scenario tools [CW-4597] (#11908) 2025-07-21 16:42:12 +05:30
enterprise feat: use captain endpoint config in legacy OpenAI base service (#12060) 2025-07-30 08:58:27 +04:00
applied_sla.rb feat: SLA report filter (#9218) 2024-04-12 11:03:18 +05:30
article_embedding.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
captain_inbox.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
copilot_message.rb feat: Update UI for Copilot (#11561) 2025-06-02 22:02:03 -05:00
copilot_thread.rb feat: Add support for more tool, standardize copilot chat service (#11560) 2025-05-23 01:07:07 -07:00
custom_role.rb feat: Add APIs to manage custom roles in Chatwoot (#9995) 2024-08-23 17:18:28 +05:30
sla_event.rb feat: Conversation API to return applied_sla and sla_events (#9174) 2024-04-01 23:30:07 +05:30
sla_policy.rb feat: Conversation update API for sla_policy_id (#8973) 2024-03-14 17:22:32 +05:30