iachat/config
Shivam Mishra 3b366f43e6
feat: setup captain limits (#10713)
This pull request introduces several changes to implement and manage
usage limits for the Captain AI service. The key changes include adding
configuration for plan limits, updating error messages, modifying
controllers and models to handle usage limits, and updating tests to
ensure the new functionality works correctly.

## Implementation Checklist

- [x] Ability to configure captain limits per check
- [x] Update response for `usage_limits` to include captain limits
- [x] Methods to increment or reset captain responses limits in the
`limits` column for the `Account` model
- [x] Check documents limit using a count query
- [x] Ensure Captain hand-off if a limit is reached
- [x] Ensure limits are enforced for Copilot Chat
- [x] Ensure limits are reset when stripe webhook comes in 
- [x] Increment usage for FAQ generation and Contact notes
- [x] Ensure documents limit is enforced

These changes ensure that the Captain AI service operates within the defined usage limits for different subscription plans, providing appropriate error messages and handling when limits are exceeded.
2025-01-23 01:23:18 +05:30
..
environments feat: add lograge to improve logging (#5423) 2023-04-07 13:44:30 +05:30
initializers feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
integration feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
languages feat: Updated public portal header design (#8089) 2023-11-08 17:56:59 -08:00
locales feat: setup captain limits (#10713) 2025-01-23 01:23:18 +05:30
app.yml Bump version to 4.0.1 2025-01-17 01:11:35 +05:30
application.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
boot.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
cable.yml fix: Redis 6 on Heroku breaks ActionCable config (#4269) 2022-03-24 19:25:07 +05:30
database.yml fix: Quote database env variables (#7216) 2023-06-05 14:19:35 +05:30
elastic_apm.yml chore: Support for Elastic APM (#5004) 2022-07-22 11:39:37 +02:00
environment.rb Initial Commit 2019-08-14 15:18:44 +05:30
features.yml feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00
installation_config.yml feat: setup captain limits (#10713) 2025-01-23 01:23:18 +05:30
newrelic.yml fix: logic error when setting new relic logging forwarding (#8687) 2024-01-11 21:05:04 +05:30
puma.rb chore: Fix puma configuration (#5023) 2022-07-12 12:27:33 +02:00
rds-ca-2019-root.pem chore: add aws rds root cert for tls connection (#3812) 2022-02-01 16:01:25 +05:30
routes.rb feat(ee): Add Captain features (#10665) 2025-01-14 16:15:47 -08:00
schedule.yml fix: Re-enable scheduled jobs (#10708) 2025-01-16 10:59:09 -08:00
scout_apm.yml chore: Load only required APMs (#6497) 2023-03-01 14:31:51 +05:30
secrets.yml Use secret_key_base from env 2019-08-15 23:08:36 +05:30
sidekiq.yml chore: Upgrade to Rails 7 (#6719) 2023-05-06 10:44:52 +05:30
spring.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
storage.yml fix: GCS credentials dont need to be parsed as JSON (#1429) 2020-11-27 14:39:25 +05:30
vite.json feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00