Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve env initialization for dev environment #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .env

This file was deleted.

18 changes: 18 additions & 0 deletions .env.exemple
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
OPENAI_API_KEY=placeholder
ANTHROPIC_API_KEY=placeholder

LANGCHAIN_TRACING_V2="true"
LANGCHAIN_PROJECT="langserve-launch-example"
LANGCHAIN_API_KEY="your_secret_here"

REDIS_URL="your_secret_here"
TAVILY_API_KEY="your_secret_here"
FIREWORKS_API_KEY="your_secret_here"
YDC_API_KEY="your_secret_here"
AWS_ACCESS_KEY_ID="your_secret_here"
AWS_SECRET_ACCESS_KEY="your_secret_here"
AZURE_OPENAI_DEPLOYMENT_NAME="your_secret_here"
AZURE_OPENAI_API_BASE="your_secret_here"
AZURE_OPENAI_API_VERSION="your_secret_here"
AZURE_OPENAI_API_KEY="your_secret_here"
KAY_API_KEY="your_secret_here"
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
.env.gcp.yaml

# Allow use of local .env file
.env.local

# vscode extension for local history
.history

dump.rdb
```
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ cd backend
pip install -r requirements.txt
```

**Set up environment variables**

Copy the `.env.example` file to `.env.local` at the root of the project and fill in the values.
Load the environment variables :
```shell
export $(cat .env.local | xargs)
```
They will live in the environment of the current shell session.

**Set up persistence layer**

The backed by default uses Redis for saving agent configurations and chat message history.
Expand Down