Closed
Description
Opencommit Version
3.1.2
Node Version
22.5.1
NPM Version
10.8.2
What OS are you seeing the problem on?
Mac
What happened?
Default undefined
value for OCO_TOKENS_MAX_OUTPUT
is throwing error.
Expected Behavior
some default value for it.
Current Behavior
expected an integer, but got a string instead.
Possible Solution
Adjusting the default value to an integer
Steps to Reproduce
I just tried to use after updating.
Relevant log output
oco -y
(node:13357) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
┌ open-commit
│
◇ 1 staged files:
*****
│
◇ 📝 Commit message generated
│
└ ✖ 400 Invalid type for 'max_tokens': expected an integer, but got a string instead.