Skip to content

Commit

Permalink
chore: update api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryQW committed Dec 8, 2024
1 parent 741c1b7 commit 4d71ff3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions openagent/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@
from openagent.router import openai_router, widget_router, health_router

load_dotenv()
app = FastAPI(title="OpenAgent", description="")
app = FastAPI(
title="OpenAgent API",
description="OpenAgent is a framework for building AI applications leveraging the power of blockchains.",
license_info={
"name": "MIT",
"url": "https://github.com/webisopen/OpenAgent/blob/main/LICENSE",
},
)

app.add_middleware(
CORSMiddleware,
Expand Down Expand Up @@ -51,8 +58,5 @@ async def global_exception_handler(request: Request, exc: Exception):
logger.error(error_msg)
return JSONResponse(
status_code=500,
content={
"error": str(exc),
"traceback": traceback.format_exc()
}
content={"error": str(exc), "traceback": traceback.format_exc()},
)

0 comments on commit 4d71ff3

Please sign in to comment.