ai-commit icon indicating copy to clipboard operation
ai-commit copied to clipboard

400 Request Exception when trying to generate commit

Open RONNCC opened this issue 1 year ago • 5 comments

Describe the bug

  [Illuminate\Http\Client\RequestException (400)]
  HTTP request returned status code 400

To Reproduce Steps to reproduce the behavior:

  1. Configure ai-commit
  2. Run ai-commit commit -v
  3. See error

Expected behavior I expected the function to work similar to the demo

Screenshots image

Additional context

RONNCC avatar Mar 14 '24 00:03 RONNCC

Thanks for opening your first issue here! Be sure to follow the issue template!

welcome[bot] avatar Mar 14 '24 00:03 welcome[bot]

Would be helpful to see the request it's submitting to the OpenAI API here to help debug the bad request

RONNCC avatar Mar 14 '24 00:03 RONNCC

@RONNCC

Try to configure request parameters:

./ai-commit config set generators.openai.parameters.stream false
./ai-commit config set generators.openai_chat.parameters.stream false

Or update to the latest:

./ai-commit self-update

guanguans avatar Mar 14 '24 03:03 guanguans

Stale issue message

github-actions[bot] avatar May 13 '24 08:05 github-actions[bot]