mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-10 07:18:10 -05:00
Clarify OpenHands naming (replace “OSS” wording in docs and backend) (#12235)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user