shell_gpt icon indicating copy to clipboard operation
shell_gpt copied to clipboard

Too many requests for url

Open markkhusid opened this issue 3 years ago • 2 comments

Getting this error:

raise_for_status │ │ │ │ 1018 │ │ │ ) │ │ 1019 │ │ │ │ 1020 │ │ if http_error_msg: │ │ ❱ 1021 │ │ │ raise HTTPError(http_error_msg, response=self) │ │ 1022 │ │ │ 1023 │ def close(self): │ │ 1024 │ │ """Releases the connection back to the pool. Once this method has b │ │ │ │ ╭──────────────────────────────────── locals ────────────────────────────────────╮ │ │ │ http_error_msg = '429 Client Error: Too Many Requests for url: │ │ │ │ https://api.openai.com/v1/completio'+2 │ │ │ │ reason = 'Too Many Requests' │ │ │ │ self = <Response [429]> │ │ │ ╰────────────────────────────────────────────────────────────────────────────────╯ │ ╰────────────────────────────────────────────────────────────────────────────────────╯ HTTPError: 429 Client Error: Too Many Requests for url: https://api.openai.com/v1/completions

Is the server too busy?

markkhusid avatar Feb 12 '23 23:02 markkhusid

Usually it happens because of OpenAI API limitations. You can read more about request limits here You can track your usage in the dashboard Note that limitation applies on both OpenAI's playground and this tools which is using their API. You can still use sgpt after a while, when daily limits will be refreshed.

Duplicate https://github.com/TheR1D/shell_gpt/issues/13

TheR1D avatar Feb 13 '23 03:02 TheR1D

I was having the same issue. Checked my dashboard, turns out I had an 18$ free trial for the API, which expired last year... so to use this you would need to register and buy more API credit. Oh well.

mudomau avatar Feb 13 '23 14:02 mudomau