opencommit icon indicating copy to clipboard operation
opencommit copied to clipboard

[Bug]: Unsupported config key OCO_OPENAI_API_KEY: Must be 51 characters long

Open PMassicotte opened this issue 1 year ago • 3 comments

Opencommit Version

1.0.2

Node Version

18.20.2

NPM Version

10.5.0

What OS are you seeing the problem on?

Other Linux Distro

What happened?

openai pushing to use project based keys which are longer than the 51 characters expected by opencommit

image

Expected Behavior

Able to use the new key format

Current Behavior

Unsupported config key OCO_OPENAI_API_KEY: Must be 51 characters long

Possible Solution

No response

Steps to Reproduce

No response

Relevant log output

No response

PMassicotte avatar Apr 29 '24 15:04 PMassicotte

true, looks like new openai tokens can now be larger than 51 chars, we should get rid of the 51 length validation, any volunteers for a PR? should be a 1 liner, will look into it on the weekend myself if no PR is opened earlier

di-sukharev avatar May 01 '24 14:05 di-sukharev

Looks like another PR was merged, I will close mine.

PMassicotte avatar May 02 '24 11:05 PMassicotte

pls keep it opened before new version is published

di-sukharev avatar May 02 '24 15:05 di-sukharev

update the latest version just merged https://github.com/di-sukharev/opencommit/pull/412

run npm i -g opencommit@latest

di-sukharev avatar Sep 06 '24 11:09 di-sukharev