Closed pritishpattanaik closed 3 weeks ago
@pritishpattanaik As mentioned in the error, you have to update the plan at Open AI.
This error message indicates that you hit your monthly usage limit for the API, or for prepaid credits customers that you've consumed all your credits. You can view your maximum usage limit on the limits page. This could happen for several reasons, such as:
- You are using a high-volume or complex service that consumes a lot of credits or tokens.
- Your monthly budget is set too low for your organization’s usage.
- Your monthly budget is set too low for your project's usage.
To resolve this error, please follow these steps:
Check your current usage of your account, and compare that to your account's limits. If you are on a free plan, consider upgrading to a paid plan to get higher limits. Reach out to your organization owner to increase the budgets for your project
Closing this here as the issue is not related to Chatwoot.
Describe the bug
I have previously integrated OpenAI with chatwoot but this time with version 3.8, I am facing issue with AI assistant, in logs it says "You exceeded your current quota".
To Reproduce
rails-1 | I, [2024-05-14T07:21:16.142248 #1] INFO -- : [4d42550f-aa01-40a6-a430-c6c7bd8d8304] Parameters: {"event"=>{"name"=>"reply_suggestion", "data"=>{"conversation_display_id"=>3}}, "account_id"=>"1", "id"=>"3", "hook"=>{"event"=>{"name"=>"reply_suggestion", "data"=>{"conversation_display_id"=>3}}}} rails-1 | I, [2024-05-14T07:21:16.174489 #1] INFO -- : [4d42550f-aa01-40a6-a430-c6c7bd8d8304] OpenAI API request: {"model":"gpt-3.5-turbo","messages":[{"role":"system","content":"Please suggest a reply to the following conversation between support agents and customer. Don't expose that you are an AI model, respond \"Couldn't generate the reply\" in cases where you can't answer. Reply in the user\'s language.\n"},{"role":"user","content":"need help"},{"role":"user","content":"I am having issue with my cloud gaming account. please help to check. "}]} rails-1 | I, [2024-05-14T07:21:16.473835 #1] INFO -- : [4d42550f-aa01-40a6-a430-c6c7bd8d8304] OpenAI API response: { rails-1 | "error": { rails-1 | "message": "You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.", rails-1 | "type": "insufficient_quota", rails-1 | "param": null, rails-1 | "code": "insufficient_quota" rails-1 | } rails-1 | } rails-1 |
Expected behavior
No response
Environment
Docker
Cloud Provider
None
Platform
Browser
Operating system
RHEL 9
Browser and version
Chrome
Docker (if applicable)
docker version - 26.1.0 Client: Docker Engine - Community Version: 26.1.0 Context: default Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.14.0 Path: /usr/libexec/docker/cli-plugins/docker-buildx compose: Docker Compose (Docker Inc.) Version: v2.26.1 Path: /usr/libexec/docker/cli-plugins/docker-compose
Server: Containers: 5 Running: 4 Paused: 0 Stopped: 1 Images: 3 Server Version: 26.1.0 Storage Driver: overlay2 Backing Filesystem: xfs Supports d_type: true Using metacopy: false Native Overlay Diff: true userxattr: false Logging Driver: json-file Cgroup Driver: systemd Cgroup Version: 2 Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog Swarm: inactive Runtimes: io.containerd.runc.v2 runc Default Runtime: runc Init Binary: docker-init containerd version: e377cd56a71523140ca6ae87e30244719194a521 runc version: v1.1.12-0-g51d5e94 init version: de40ad0 Security Options: seccomp Profile: builtin cgroupns Kernel Version: 5.14.0-362.24.1.el9_3.x86_64 Operating System: Red Hat Enterprise Linux 9.3 (Plow) OSType: linux Architecture: x86_64 CPUs: 4 Total Memory: 3.571GiB Name: chatwood.iot.yes ID: bbd7b6dc-bdf7-4bea-af53-a52e900f9fa6 Docker Root Dir: /var/lib/docker Debug Mode: false Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
Additional context