We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f398923 commit b7131a8Copy full SHA for b7131a8
src/chatbot/config.py
@@ -29,3 +29,15 @@
29
30
if any(config is None for config in required_configs):
31
raise ValueError("Missing required configuration in config.json")
32
+
33
+# Set LangChain tracing and API key from the config file
34
+os.environ["LANGCHAIN_TRACING_V2"] = "true"
35
+os.environ["LANGCHAIN_PROJECT"] = "Indian-Tax-Advisor"
36
37
+# Retrieve and validate the API key from the environment variables
38
+langchain_api_key = os.getenv("LANGCHAIN_API_KEY")
39
+if langchain_api_key is None:
40
+ raise ValueError("LANGCHAIN_API_KEY is not set in the environment variables.")
41
42
+os.environ["LANGCHAIN_API_KEY"] = langchain_api_key
43
0 commit comments