From d08987d1c2427f6408dfe3d6b3a80fa77633f609 Mon Sep 17 00:00:00 2001 From: Wei Lee Date: Thu, 2 Nov 2023 15:18:14 +0800 Subject: [PATCH] fix: add missing langsmith env var (#74) related #66 --- api/ask_astro/config.py | 3 +++ scripts/local_dev.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/api/ask_astro/config.py b/api/ask_astro/config.py index e505a562..cebcae82 100644 --- a/api/ask_astro/config.py +++ b/api/ask_astro/config.py @@ -46,6 +46,9 @@ class LangSmithConfig: """Contains the config variables for the Langsmith API.""" project_name = os.environ.get("LANGCHAIN_PROJECT") + tracing_v2 = os.environ.get("LANGCHAIN_TRACING_V2") + endpoint = os.environ.get("LANGCHAIN_ENDPOINT") + api_key = os.environ.get("LANGCHAIN_API_KEY") class WeaviateConfig: diff --git a/scripts/local_dev.py b/scripts/local_dev.py index dd8b8131..acd2265d 100644 --- a/scripts/local_dev.py +++ b/scripts/local_dev.py @@ -42,6 +42,9 @@ def generate_api_env_template(): "SLACK_CLIENT_SECRET": "< >", "SLACK_SIGNING_SECRET": "< >", "LANGCHAIN_PROJECT": "< >", + "LANGCHAIN_TRACING_V2": "< >", + "LANGCHAIN_ENDPOINT": "< >", + "LANGCHAIN_API_KEY": "< >", "OPENAI_API_KEY": "< >", "WEAVIATE_URL": "< >", "WEAVIATE_API_KEY": "< >",