aicommit2
aicommit2 copied to clipboard
maxContentLength size of -1 exceeded
trafficstars
Bug description
When I make minor code changes, the generated commit message is perfect. However, if I modify many files at once and then run aicommit2, I encounter an error message: "✘ [DeepSeek] maxContentLength size of -1 exceeded". I am using DeepSeek and have not added any special configurations.
My configuration:
locale=zh
[DEEPSEEK]
key=sk-***
model=deepseek-chat
temperature=1
includeBody=true
aicommit2 version
2.1.2
Environment
System:
OS: Windows 11 10.0.22631
CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11400 @ 2.60GHz
Memory: 1.54 GB / 15.73 GB
Binaries:
Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
pnpm: 9.9.0 - C:\Program Files\nodejs\pnpm.CMD
Can you contribute a fix?
- [ ] I’m interested in opening a pull request for this issue.
Thank you for raising the issue. It seems that when passing a large number of tokens, an error occurs in Deepseek. I'll look into it.
After upgrading to version 2.1.5 and setting maxTokens to 4096, it works fine.