rikhuijzer / ata

Ask the Terminal Anything (ATA): ChatGPT in the terminal
MIT License
274 stars 17 forks source link

Automatically retry `server_error` #14

Closed rikhuijzer closed 1 year ago

rikhuijzer commented 1 year ago

This currently fails immediately:

Error:
{
  "error": {
    "message": "The server had an error while processing your request. Sorry about that!",
    "type": "server_error",
    "param": null,
    "code": null
  }
}

Given that this happens quite frequently in my experience and that it is solved by doing another request, ata should probably try again after a second