socketteer / loom

Multiversal tree writing interface for human-AI collaboration
1.02k stars 75 forks source link

Api key input? #1

Closed djhashh closed 2 years ago

djhashh commented 3 years ago

Hi, I know this is dumb...but

I don't know where to input my API..

I tried EXPORT=

I can't figure it out...otherwise, looks amazing! Great work.

Also, do I need tensor installed? I notice the terminal have a warning ⚠️ about it. While the gui launched, everything looked fine to me. Good work

socketteer commented 2 years ago

Sorry for the late reply.

Make sure the environmental variable is called OPENAI_API_KEY or AI21_API_KEY, and make sure it's set in the environment that you're running Loom.

To see if the environmental variable is accessible by Loom, you can try this: Press Ctrl+Shift+B or in the top menu bar go to Developer -> run code and run os.environ.get("OPENAI_API_KEY", None) It should print the API key to the command line.

You shouldn't have to have anything else installed for the API key to work.

djhashh commented 2 years ago

Thanks, I figured it out..I just wasn't trying very hard..kinda good that you didn't answer right away.. I really should have known the export function.. I'm a noob 🎃

On Mon, Sep 20, 2021, 11:01 AM λarai @.***> wrote:

Sorry for the late reply.

Make sure the environmental variable is called OPENAI_API_KEY or AI21_API_KEY, and make sure it's set in the environment that you're running Loom.

To see if the environmental variable is accessible by Loom, you can try this: Press Ctrl+Shift+B or in the top menu bar go to Developer -> run code and run os.environ.get("OPENAI_API_JEY", None) It should print the API key to the command line.

You shouldn't have to have anything else installed for the API key to work.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/socketteer/loom/issues/1#issuecomment-923108815, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK4RSLYHVUN6XTQ54NJ67T3UC5SGNANCNFSM5AZDCWDQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

socketteer commented 2 years ago

No problem, glad it's working for you now!