This repository is for Group 7 of the AI and GPT Bootcamp hosted by Encode Club. It contains all weekend homework assignments and the final project.
- Each weekend's homework is organized into its respective folder.
- The final project will be located in the
final_project
folder.
To manage environment variables securely and efficiently, we recommend using direnv
. Below are the instructions for setting up direnv
and configuring your OpenAI API keys.
For detailed instructions on installing direnv
, refer to the direnv installation guide.
-
Install Windows Subsystem for Linux (WSL) if not already installed:
- Open PowerShell as Administrator and run:
wsl --install
- Restart your computer if prompted.
- Open PowerShell as Administrator and run:
-
Open WSL (Linux terminal) and install
direnv
:- Open a WSL terminal (e.g., Ubuntu) and run:
sudo apt update sudo apt install direnv
- Open a WSL terminal (e.g., Ubuntu) and run:
-
Configure
direnv
in your shell (Bash, Zsh, etc.):- Add the following to your shell configuration file (e.g.,
~/.bashrc
for Bash or~/.zshrc
for Zsh):eval "$(direnv hook bash)" # or use "zsh" if using Zsh
- Reload the shell configuration:
source ~/.bashrc # or ~/.zshrc
- Add the following to your shell configuration file (e.g.,
-
Install
direnv
using Homebrew:- Open a terminal and run:
brew install direnv
- Open a terminal and run:
-
Configure
direnv
in your shell:- Add the following line to your shell configuration file (e.g.,
~/.bashrc
for Bash or~/.zshrc
for Zsh):eval "$(direnv hook bash)" # or "zsh" for Zsh
- Then reload the shell configuration:
source ~/.bashrc # or ~/.zshrc
- Add the following line to your shell configuration file (e.g.,
For detailed instructions on setting up your OpenAI API keys, refer to the OpenAI API key setup instructions.
-
Navigate to the folder where you want to use
direnv
:cd /path/to/your/folder
-
Create an
.envrc
file in the folder and add your OpenAI API key:echo 'export OPEN_AI_KEY="Your Key"' > .envrc
-
Allow the
.envrc
file by running the following command:direnv allow
Now, every time you enter this folder, direnv
will automatically load the environment variables and commands specified in .envrc
. If you make changes to .envrc
, run direnv allow
again to apply them.
For more detailed instructions, refer to the direnv_installation_guide.md
file.
Let us know if you have any questions or need further assistance!