iachat/enterprise/app/controllers/api/v1/accounts/captain
Tanmay Deep Sharma 811eb66615
feat: Add support for image files in Captain (#11730)
# Pull Request Template

## Linear links:
-
https://linear.app/chatwoot/issue/CW-4479/if-image-is-sent-by-the-customer-send-it-to-openai

## Description

This pull request adds “Captain image support” to Chatwoot. It
introduces multimodal message handling so that when a customer sends an
image, Captain can forward the file to OpenAI’s vision endpoint,
generate a caption/analysis
## Type of change

Please delete options that are not relevant.

- [x] New feature (non-breaking change which adds functionality)

## How Has This Been Tested?

<img width="891" alt="image"
src="https://github.com/user-attachments/assets/c7cc98ed-cc44-4865-a53a-83d129e2fe2c"
/>



## Checklist:

- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my code
- [ ] I have commented on my code, particularly in hard-to-understand
areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream
modules

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
2025-06-25 19:16:09 -07:00
..
assistant_responses_controller.rb feat: Add support for the references in FAQs (#10699) 2025-01-16 15:27:30 +05:30
assistants_controller.rb feat: Add support for image files in Captain (#11730) 2025-06-25 19:16:09 -07:00
bulk_actions_controller.rb feat: Add support for bulk action for Captain FAQs (#10905) 2025-02-27 17:05:33 -08:00
copilot_messages_controller.rb fix: Update specs, add background response job implementation for copilot threads (#11600) 2025-05-27 14:10:27 -06:00
copilot_threads_controller.rb fix: Update specs, add background response job implementation for copilot threads (#11600) 2025-05-27 14:10:27 -06:00
documents_controller.rb feat: setup captain limits (#10713) 2025-01-23 01:23:18 +05:30
inboxes_controller.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00