Avatar-chat / src /config.py
Ephraimmm's picture
Upload 16 files
06e6988 verified
raw
history blame contribute delete
617 Bytes
import os
from dotenv import load_dotenv
from langsmith import Client, traceable
# ---------------------------------------------------------------------
# CONFIG
# ---------------------------------------------------------------------
class Config:
def __init__(self):
load_dotenv(override=True)
self.openai_api_key = os.getenv("OPENAI_API_KEY")
self.langsmith_api_key = os.getenv("LANGSMITH_API_KEY")
self.langsmith_endpoint = os.getenv("LANGSMITH_ENDPOINT")
# Initialize LangSmith
self.langsmith_client = Client(api_key=self.langsmith_api_key)