Skip to content

Commit de52d3d

Browse files
committed
feat(langfuse): add sample secrets
1 parent 257e506 commit de52d3d

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,13 @@ Add your following API keys and value to the respective file: `./envs/backend.en
199199
```bash
200200
OPENAI_API_KEY=sk-proj-...
201201
POSTGRES_DSN=postgresql://postgres...
202+
203+
LANGFUSE_PUBLIC_KEY=pk-lf-...
204+
LANGFUSE_SECRET_KEY=sk-lf-...
205+
LANGFUSE_HOST=https://cloud.langfuse.com
206+
207+
ENVIRONMENT=production
208+
202209
YOUTUBE_API_KEY=...
203210
```
204211

backend/api/core/config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,11 @@ def checkpoint_conn_str(self) -> str:
3333
# with specifying psycopg driver explicitly
3434
return self.postgres_dsn.encoded_string()
3535

36+
langfuse_public_key: str = ""
37+
langfuse_secret_key: str = ""
38+
langfuse_host: str = "https://cloud.langfuse.com"
39+
40+
environment: str = "development"
41+
3642

3743
settings = Settings()

envs/backend.env

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
OPENAI_API_KEY=
22
# do not specify driver (do not specify `+psycopg`)
33
POSTGRES_DSN=
4+
5+
LANGFUSE_PUBLIC_KEY=pk-lf-
6+
LANGFUSE_SECRET_KEY=sk-lf-
7+
LANGFUSE_HOST=https://cloud.langfuse.com
8+
9+
ENVIRONMENT=production

0 commit comments

Comments
 (0)