Skip to content
Closed
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

agent_profiles_router = APIRouter(prefix="/agent-profiles", tags=["Agent Profiles"])

MAX_AGENT_PROFILES = 50
MAX_AGENT_PROFILES = 500

ProfileName = Annotated[
str,
Expand Down
3 changes: 3 additions & 0 deletions openhands-agent-server/openhands/agent_server/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
init_router,
require_initialized,
)
from openhands.agent_server.llm_providers import providers_router
from openhands.agent_server.llm_router import llm_router
from openhands.agent_server.mcp_router import mcp_router
from openhands.agent_server.middleware import CORSDispatcher
Expand Down Expand Up @@ -440,6 +441,7 @@ def _add_api_routes(app: FastAPI) -> None:
api_router.include_router(plugins_router)
api_router.include_router(hooks_router)
api_router.include_router(llm_router)
api_router.include_router(providers_router)
api_router.include_router(mcp_router)
api_router.include_router(settings_router)
api_router.include_router(workspaces_router)
Expand Down Expand Up @@ -694,6 +696,7 @@ def create_app(config: Config | None = None) -> FastAPI:

_add_api_routes(app)
_setup_static_files(app, config)

app.add_middleware(
CORSDispatcher,
allow_origins=config.allow_cors_origins,
Expand Down
Loading