Spaces:
Running
Running
File size: 617 Bytes
06e6988 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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)
|