saulpw / aipl

Array-Inspired Pipeline Language
MIT License
119 stars 7 forks source link

How to provide API token? #53

Closed justinwiley closed 1 year ago

justinwiley commented 1 year ago

Neat project! This may be obvious or I missed it in the README but how do you provide the chat gpt API token? I don't see an argument or env bar or something similar.

saulpw commented 1 year ago

Hey @justinwiley! It's just the same envvar that the openai library uses: OPENAI_API_KEY (and OPENAI_API_ORG). I think the library should even give an error saying that it needs to be set if it's missing? If not then we should add that.