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

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

Closed
PMassicotte opened this issue Apr 29, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@PMassicotte
Copy link

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 PMassicotte added the bug Something isn't working label Apr 29, 2024
@di-sukharev
Copy link
Owner

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

PMassicotte added a commit to PMassicotte/opencommit that referenced this issue May 2, 2024
…li.cjs and out/github-action.cjs and remove the 51 characters limit on the config file. (closes di-sukharev#326)
PMassicotte added a commit to PMassicotte/opencommit that referenced this issue May 2, 2024
@PMassicotte
Copy link
Author

PMassicotte commented May 2, 2024

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

@di-sukharev
Copy link
Owner

pls keep it opened before new version is published

@di-sukharev
Copy link
Owner

update the latest version just merged #412

run npm i -g opencommit@latest

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
Development

No branches or pull requests

2 participants