https://promptfoo.dev/ logo
How do I add my api Key?
# ❓|questions
d
Probably a stupid question. I'm just starting to work with similar projects. It's not entirely clear how to add my api Key. Could someone please share a more illustrative example? https://cdn.discordapp.com/attachments/1228235295246385182/1228235295477075978/image.png?ex=662b4e41&is=6618d941&hm=6e8eaa46a5b01d292b29453fefc8f2a9e5b95039f135d0ce3c8ea9cbd4a2be3b&
h
You could write it directly in your .bashrc or .zhrsc or whatever shell you are using. Or do like i am doing : use a .env file
and then you read them directly using os.getenv(YOUR_API_KEY_NAME)
d
Thank you!
4 Views