Skip to content

gptel--handle-error not triggering on HTTP/2 429 error #1309

@QiangF

Description

@QiangF

IF your feature request is related to a problem
I'd like to automatically change api-key on error, I have tried to hook into gptel--handle-error. But quota expiring response does not trigger the error handler.

Additional context
A gptel-log snippet and the current code to rotate api key is here:
https://gist.github.com/QiangF/5080eb98fa3c70379aa9517720b7f8f1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions