guywaldman / magic-cli

Command line utility to make you a magician in the terminal
https://guywaldman.com/posts/introducing-magic-cli
MIT License
725 stars 18 forks source link

API Key not set #29

Closed MrAshRhodes closed 4 months ago

MrAshRhodes commented 4 months ago

Howdy, im probably missing something real simple.

I updated the config file to have my openai api key, when running commands it says this isnt set

ive also done magic-cli config set -k openai.api_key -v sk-proj-ABC

When i list the config it shows the key has a value. image

Sys Info

❯ magic-cli sys-info
System information as detected by the CLI:

OS: Darwin
OS version: 15.0
CPU architecture: arm64
Shell: zsh

The config file exists, i can see it and it has all the settings set.

There's gonna be something simple im missing right...

thiswillbeyourgithub commented 4 months ago

Same here

guywaldman commented 4 months ago

Hi there, taking a look.

guywaldman commented 4 months ago

@MrAshRhodes @thiswillbeyourgithub Fixed in release 0.0.4 (being pushed out now). Apologies for the inconvenience, added test coverage to avoid such regressions in the future.