Skip to content

Commit

Permalink
Fix: API meta for OpenHands (#6295)
Browse files Browse the repository at this point in the history
  • Loading branch information
tofarr authored Jan 20, 2025
1 parent 03e496f commit 541a445
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion openhands/server/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
)

import openhands.agenthub # noqa F401 (we import this to get the agents registered)
from openhands import __version__
from openhands.server.middleware import (
AttachConversationMiddleware,
InMemoryRateLimiter,
Expand Down Expand Up @@ -36,7 +37,12 @@ async def _lifespan(app: FastAPI):
yield


app = FastAPI(lifespan=_lifespan)
app = FastAPI(
title='OpenHands',
description='OpenHands: Code Less, Make More',
version=__version__,
lifespan=_lifespan,
)
app.add_middleware(
LocalhostCORSMiddleware,
allow_credentials=True,
Expand Down

0 comments on commit 541a445

Please sign in to comment.