Spaces:
Running
Running
Update agent_langchain.py
Browse files- agent_langchain.py +2 -1
agent_langchain.py
CHANGED
@@ -4,7 +4,8 @@ from datetime import date
|
|
4 |
from langchain.agents import AgentType, initialize_agent, load_tools, tool
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
|
7 |
-
os.environ["LANGCHAIN_API_KEY"]
|
|
|
8 |
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|
9 |
os.environ["LANGCHAIN_PROJECT"] = "default"
|
10 |
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|
|
|
4 |
from langchain.agents import AgentType, initialize_agent, load_tools, tool
|
5 |
from langchain.chat_models import ChatOpenAI
|
6 |
|
7 |
+
print(os.environ["LANGCHAIN_API_KEY"])
|
8 |
+
os.environ["LANGCHAIN_API_KEY"] = os.environ["LANGSMITH_API_KEY"]
|
9 |
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
|
10 |
os.environ["LANGCHAIN_PROJECT"] = "default"
|
11 |
os.environ["LANGCHAIN_TRACING_V2"] = "true"
|