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

Set up environment variable #3

Closed
UtkarshM-hub opened this issue Mar 3, 2023 · 10 comments
Closed

Set up environment variable #3

UtkarshM-hub opened this issue Mar 3, 2023 · 10 comments

Comments

@UtkarshM-hub
Copy link

UtkarshM-hub commented Mar 3, 2023

How do I even set up the OPENAI_API_TOKEN environment variable.
It will be great if you guys include the steps to setup the environment variable into your README.md file

@nguyenvanduocit
Copy link
Owner

Setup env is depend on you os.

@UtkarshM-hub
Copy link
Author

@nguyenvanduocit Even after setting the env it is showing me this
image

@nguyenvanduocit
Copy link
Owner

nguyenvanduocit commented Mar 4, 2023

I will try to improve the prompt. I got this result sometimes

@anridev24
Copy link

Screenshot_1

Windows 10

after setting the API_KEY i get this message, any ideas?

@nguyenvanduocit
Copy link
Owner

There an mistake on the readme. The correct env key is OPENAI_API_KEY, not OPENAI_API_TOKEN. Sorry about that.

@UtkarshM-hub
Copy link
Author

@nguyenvanduocit I've used the correct env but somehow still getting the same msg

@anridev24
Copy link

Same Error

@InternetJohnny
Copy link

Same error, zsh: command not found: ai-commit

@nguyenvanduocit
Copy link
Owner

Sorry, I was distract from this project, I am back, I think it's because ChatGPT can not under stand the diff

@InternetJohnny "Command not found: ai-commit" maybe because your PATH is not contains the binary

@nguyenvanduocit
Copy link
Owner

Just release new version. The new version will show more details about the error. I think it's because of usage or setup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants