tom-doerr / codex-readme

Revolutionize your project documentation with the Codex-README generator, utilizing OpenAI's Codex for intelligent README creation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No mention of how to get an API key

allywilson opened this issue · comments

The script requires an OpenAI key, but it's not mentioned anywhere that it is needed, or how to obtain one (additionally, no mention of the modules needed to install as well).

Yes, the reason for this is that the readme was autogenerated and serves as an example for autogenerated readmes.
I just updated the script so it tells you what module to install and where to register for Codex.

Here's the information:
You can obtain the API key after you get accepted for Codex (https://openai.com/blog/openai-codex/) and install the openai module using pip3 install openai.

commented

How do I use/apply the key once obtained? I tried using --tokens but that didn't seem to be it.

It should generate a config file for you where you can enter the key once you run it. The files should be at ~/.config/openaiapirc .

commented

I had to do python3 -m pip install openai, just pip install openai didn't work...