Open liblaf opened 10 months ago
possible relevant issues: #8, #89, #120, #158, #170.
This continues to be annoying and for large files changes (especially ipynb) since they mix code changes and output changes.
My current solution is to just create the .opencommitignore
file with *.ipynb
and that handles most of my errors. However it isn't great that it just skips the I believe a different approach should be used.
This issue will be slightly alleviated when the new gpt-4 longer context windows implemented here https://github.com/di-sukharev/opencommit/pull/274
This continues to be annoying and for large files changes (especially ipynb) since they mix code changes and output changes.
My current solution is to just create the
.opencommitignore
file with*.ipynb
and that handles most of my errors. However it isn't great that it just skips the I believe a different approach should be used.This issue will be slightly alleviated when the new gpt-4 longer context windows implemented here #274
@closedLoop I believe it's not due to large file changes in my case because my git diff
is less than 1k tokens as I stated above. No matter how small the changes I make, I still receive a code 400.
I tried to log more error info. Here is the response body I got:
<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>cloudflare</center>
</body>
</html>
I suspect there is a misbehavior when under proxy because node.js doesn't have built-in support for environment-defined proxy.
I believe it has something to do with environment-defined proxy (env: https_proxy
) because after I switched to TNU mode the problem is solved. We should add support for proxy based on environment variables.
Stale issue message
reopening, will take a look at this
we now support gpt-4 turbo, try use it, or dont commit extremely large files at once, commit in batches
Opencommit Version
3.0.4
Node Version
v20.9.0
NPM Version
pnpm@10.1.0
What OS are you seeing the problem on?
Other Linux Distro
What happened?
A bug happened!
I am having bad request 400 all the time. I have confirmed that:
git diff
is not too long (less then 1k tokens)gpt-3.5-turbo
,gpt-3.5-turbo-16k
,gpt-4
will not work for meExpected Behavior
Commit messages is generated successfully.
Current Behavior
Request failed with status code 400.
Possible Solution
No response
Steps to Reproduce
No response
Relevant log output