socketteer / loom

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

Location for Openai and AI21 keys #4

Closed Marcus-Arcadius closed 2 years ago

Marcus-Arcadius commented 2 years ago

In order to use loom, where do I save my OpenAI key and AI21 keys?

socketteer commented 2 years ago

Set the environmental variable (don't include curly brackets)

export OPENAI_API_KEY={your api key} or export AI21_API_KEY={your api key}

You can also set the keys by going to Settings > Model config in loom, but this will not be saved when you close the program. If you want to do this make sure to pull the latest version because I just fixed a related bug.