Clarify OpenHands naming (replace “OSS” wording in docs and backend) (#12235)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Engel Nyst
2026-01-07 07:24:27 +01:00
committed by GitHub
parent b816d0448b
commit 08df955ba7
23 changed files with 60 additions and 48 deletions

View File

@@ -96,7 +96,7 @@ app.include_router(conversation_api_router)
app.include_router(manage_conversation_api_router)
app.include_router(settings_router)
app.include_router(secrets_router)
if server_config.app_mode == AppMode.OSS:
if server_config.app_mode == AppMode.OPENHANDS:
app.include_router(git_api_router)
if server_config.enable_v1:
app.include_router(v1_router.router)

View File

@@ -15,7 +15,7 @@ from openhands.utils.import_utils import get_impl
class ServerConfig(ServerConfigInterface):
config_cls = os.environ.get('OPENHANDS_CONFIG_CLS', None)
app_mode = AppMode.OSS
app_mode = AppMode.OPENHANDS
posthog_client_key = 'phc_3ESMmY9SgqEAGBB6sMGK5ayYHkeUuknH2vP6FmWH9RA'
github_client_id = os.environ.get('GITHUB_APP_CLIENT_ID', '')
enable_billing = os.environ.get('ENABLE_BILLING', 'false') == 'true'

View File

@@ -12,9 +12,12 @@ from typing import Any, ClassVar, Protocol
class AppMode(Enum):
OSS = 'oss'
OPENHANDS = 'oss'
SAAS = 'saas'
# Backwards-compatible alias (deprecated): prefer AppMode.OPENHANDS
OSS = 'oss'
class SessionMiddlewareInterface(Protocol):
"""Protocol for session middleware classes."""