aicommits: OpenAI API Error: 400 - Bad Request

Bug description

image OpenAI API Error: 400 - Bad Request

This one started to happen as soon as I updated from 1.2.0 to 1.3.0. It is a weird one because it happens some of the times, but not always, so reproducing it is just luck. I even changed the API key, but that doesn’t seem to be the issue.

aicommits version

v1.3.0

Environment

System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
    Memory: 42.57 GB / 63.83 GB
    Shell: PowerShell 7.3.3
  Binaries:
    Node: 14.21.2 - C:\Program Files\nodejs\node.EXE    
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD      
    npm: 6.14.17 - C:\Program Files\nodejs\npm.CMD

Can you contribute a fix?

  • I’m interested in opening a pull request for this issue.

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 2
  • Comments: 17

Most upvoted comments

1.5.0 solved this for me, try running npm update -g aicommits Thanks @privatenumber