warengonzaga / magic-commit

You can do magicc, you can build anything that you desire. 🪄🔮💻
GNU General Public License v3.0
33 stars 5 forks source link

`DeprecationWarning` and also `Invalid OpenAI API key` message #5

Closed rokath closed 1 month ago

rokath commented 2 months ago
$ magicc -s="sk-proj-...oA"
(node:2900) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Invalid OpenAI API key. Please provide a valid key.
Please provide an OpenAI API key.
You can get one from https://platform.openai.com/account/api-keys
Run `magicc --setopenai=<api-key>` to save your API key and try again.

This is what I get, trying to follow your instructions.

warengonzaga commented 2 months ago

@rokath did you provide your OpenAI key with magicc --setopenai command?

warengonzaga commented 1 month ago

Hey there @rokath I updated the tool and it should work now as expected.