File size: 499 Bytes
fa84b58 |
1 2 3 4 5 6 7 8 9 |
import os
def setup_langsmith_config():
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com" # Update with your API URL if using a hosted instance of Langsmith.
os.environ["LANGCHAIN_API_KEY"] = os.environ["LANGCHAIN_API_KEY"] # Update with your API key
os.environ["LANGCHAIN_TRACING_V2"] = "true"
project_name = "qa-chainlit-langchain-demo" # Update with your project name
os.environ["LANGCHAIN_PROJECT"] = project_name # Optional: "default" is used if not set
|