Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 Request Exception when trying to generate commit #110

Closed
RONNCC opened this issue Mar 14, 2024 · 5 comments
Closed

400 Request Exception when trying to generate commit #110

RONNCC opened this issue Mar 14, 2024 · 5 comments
Assignees
Labels
bug Something isn't working no-issue-activity

Comments

@RONNCC
Copy link

RONNCC commented Mar 14, 2024

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 RONNCC added the bug Something isn't working label Mar 14, 2024
Copy link

Copy link

welcome bot commented Mar 14, 2024

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

@RONNCC
Copy link
Author

RONNCC commented Mar 14, 2024

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

@guanguans
Copy link
Owner

guanguans commented Mar 14, 2024

@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

Copy link
Contributor

Stale issue message

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working no-issue-activity
Projects
None yet
Development

No branches or pull requests

2 participants