File size: 464 Bytes
39fc36b
 
 
 
 
 
 
f490f11
 
 
 
39fc36b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import sys
import os
import django

# Configura o Django
# Adiciona o diretório raiz do projeto ao sys.path
sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
os.environ["LANGCHAIN_TRACING_V2"] = "true"
os.environ["LANGCHAIN_ENDPOINT"] = "https://api.smith.langchain.com"
os.environ.get("LANGCHAIN_API_KEY")
os.environ["LANGCHAIN_PROJECT"] = "VELLA"
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "setup.settings")
django.setup()