Nutlope / aicommits

A CLI that writes your git commit messages for you with AI
https://www.npmjs.com/package/aicommits
MIT License
7.53k stars 360 forks source link

Error: Too many requests #253

Closed SivaKumarK1 closed 9 months ago

SivaKumarK1 commented 9 months ago

Bug description

I tried to create a commit using aicommits. after adding the files and proceeding to commit i recieved the followung error

│
└  ✖ OpenAI API Error: 429 - Too Many Requests

{
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details.",
        "type": "insufficient_quota",
        "param": null,
        "code": "insufficient_quota"
    }
}

aicommits version

1.11.0

Environment

System:
    OS: Linux 6.2 Ubuntu 23.04 23.04 (Lunar Lobster)
    CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz
    Memory: 1.70 GB / 15.34 GB
    Container: Yes
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.13.0 - ~/.nvm/versions/node/v18.13.0/bin/node
    Yarn: 1.22.19 - /usr/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v18.13.0/bin/npm

Can you contribute a fix?

privatenumber commented 9 months ago

As the error says, you've exceeded your Open AI API quota.