Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /li-boxuan_OpenDevin /openhands /server /routes /health.py
| # IMPORTANT: LEGACY V0 CODE | |
| # This file is part of the legacy (V0) implementation of OpenHands and will be removed soon as we complete the migration to V1. | |
| # OpenHands V1 uses the Software Agent SDK for the agentic core and runs a new application server. Please refer to: | |
| # - V1 agentic core (SDK): https://github.com/OpenHands/software-agent-sdk | |
| # - V1 application server (in this repo): openhands/app_server/ | |
| # Unless you are working on deprecation, please avoid extending this legacy file and consult the V1 codepaths above. | |
| # Tag: Legacy-V0 | |
| # This module belongs to the old V0 web server. The V1 application server lives under openhands/app_server/. | |
| from fastapi import FastAPI | |
| from openhands.runtime.utils.system_stats import get_system_info | |
| def add_health_endpoints(app: FastAPI): | |
| async def alive(): | |
| return {'status': 'ok'} | |
| async def health() -> str: | |
| return 'OK' | |
| async def get_server_info(): | |
| return get_system_info() | |
Xet Storage Details
- Size:
- 1.04 kB
- Xet hash:
- dc79661c46bb340b671f4922d597c0311b6589c833df2746887c8d0bf5e44a5d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.