mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-13 21:01:16 +08:00
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 |
||
|---|---|---|
| .. | ||
| email_templates | ||
| integrations | ||
| redis | ||
| webhooks | ||
| base_markdown_renderer_spec.rb | ||
| chatwoot_captcha_spec.rb | ||
| chatwoot_exception_tracker_spec.rb | ||
| chatwoot_hub_spec.rb | ||
| chatwoot_markdown_renderer_spec.rb | ||
| config_loader_spec.rb | ||
| custom_markdown_renderer_spec.rb | ||
| dyte_spec.rb | ||
| global_config_service_spec.rb | ||
| global_config_spec.rb | ||
| linear_spec.rb | ||
| online_status_tracker_spec.rb | ||
| vapid_service_spec.rb | ||