LangChain / app /main.py
dcd018's picture
Initial commit.
b88c922
Raw
History Blame Contribute Delete
416 Bytes
from fastapi import FastAPI
from app.api.api_v1.api import api_router
from app.core.config import settings
import sentry_sdk
import os
sentry_sdk.init(
dsn=settings.SENTRY_DSN,
environment=os.environ['PYTHON_ENV'],
traces_sample_rate=1.0,
)
app = FastAPI(
title=settings.PROJECT_NAME, openapi_url=f"{settings.API_V1_STR}/openapi.json"
)
app.include_router(api_router, prefix=settings.API_V1_STR)