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

HTTPStatus Expception: Client error '400 Bad Request' #35

Closed
JoseAlbDR opened this issue Aug 9, 2023 · 3 comments · Fixed by #68
Closed

HTTPStatus Expception: Client error '400 Bad Request' #35

JoseAlbDR opened this issue Aug 9, 2023 · 3 comments · Fixed by #68
Labels
bug Something isn't working

Comments

@JoseAlbDR
Copy link

JoseAlbDR commented Aug 9, 2023

Getting that error after Processing all files prompts, here is a snippet:

`INFO

Processing prompt: src\utils\helpers.js

Response: ...

ERROR HTTPStatus Exception:
Client error '400 Bad Request' for url 'https://api.openai.com/v1/chat/completions'
For more information check: https://httpstatuses.com/400

ERROR HTTPStatus Exception:
Client error '400 Bad Request' for url 'https://api.openai.com/v1/chat/completions'
For more information check: https://httpstatuses.com/400`

Im not used to python, so tell me if you need more info about the error, awesome work by the way.

errorReadmeai

In the generated README.md

readmeError

@eli64s
Copy link
Owner

eli64s commented Sep 27, 2023

Hey @JoseAlbDR! I took a look at this error and was able to reproduce it on my machine using your repository.

I think its related to my OpenAI API implementation and the size of your codebase. I'll need to spend more time here debugging, but great catch.

Thanks for reporting this!

Eli

@JoseAlbDR
Copy link
Author

Thanks to you! I wish I could help but my Python skills are awful

eli64s added a commit that referenced this issue Oct 21, 2023
#68)

* fix: Update tokenization logic causing API errors #35

* chore: Update project documentation.

* chore: Update project documentation.
@eli64s
Copy link
Owner

eli64s commented Oct 21, 2023

Hey @JoseAlbDR, this should be fixed but let me know if you face anymore issues. Thank you!

Eli

@eli64s eli64s added the bug Something isn't working label Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants