jedi4ever / learning-llms-and-genai-for-dev-sec-ops

A set of lessons aimed at anyone learning LLM and generative AI concepts, with sections on operations and security, as well as development.
251 stars 41 forks source link

dotenv everywhere #1

Open frbayart opened 1 year ago

frbayart commented 1 year ago

I don't know how my vscode is configured but I need to paste the dotenv part on all playbook to have my OPENAI key loaded.

%pip install python-dotenv
from dotenv import load_dotenv
load_dotenv()
jedi4ever commented 1 year ago

in vscode - I believe when you install the python extension you will get the following setting

image
jedi4ever commented 1 year ago

we could add it though to each file - would not hurt things

DavidS-ovm commented 1 year ago

... or add the setting to https://github.com/jedi4ever/learning-llms-and-genai-for-dev-sec-ops/blob/75d93998ac44492aadcd7a9a5a716dc1b0c1ab67/.devcontainer/devcontainer.json#L14