use fastgpt python sdk
This commit is contained in:
@@ -1,11 +1,17 @@
|
||||
from fastapi import FastAPI
|
||||
import sys
|
||||
from .api.endpoints import router as api_router
|
||||
from .core.fastgpt_client import lifespan
|
||||
from .core.logging_config import setup_logging
|
||||
|
||||
# Setup logging first
|
||||
setup_logging()
|
||||
|
||||
app = FastAPI(
|
||||
title="AI Accident Information Collection API",
|
||||
description="AI Accident Information Collection API",
|
||||
version="1.0.0"
|
||||
version="1.0.0",
|
||||
lifespan=lifespan
|
||||
)
|
||||
|
||||
@app.get("/")
|
||||
|
||||
Reference in New Issue
Block a user