mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
33 lines
968 B
Python
33 lines
968 B
Python
from datetime import datetime
|
|
|
|
from pydantic import BaseModel
|
|
|
|
from openhands.agent_server.env_parser import DiscriminatedUnionMixin
|
|
from openhands.integrations.service_types import ProviderType
|
|
from openhands.server.types import AppMode
|
|
|
|
|
|
class WebClientFeatureFlags(BaseModel):
|
|
enable_billing: bool = False
|
|
hide_llm_settings: bool = False
|
|
enable_jira: bool = False
|
|
enable_jira_dc: bool = False
|
|
enable_linear: bool = False
|
|
hide_users_page: bool = False
|
|
hide_billing_page: bool = False
|
|
hide_integrations_page: bool = False
|
|
|
|
|
|
class WebClientConfig(DiscriminatedUnionMixin):
|
|
app_mode: AppMode
|
|
posthog_client_key: str | None
|
|
feature_flags: WebClientFeatureFlags
|
|
providers_configured: list[ProviderType]
|
|
maintenance_start_time: datetime | None
|
|
auth_url: str | None
|
|
recaptcha_site_key: str | None
|
|
faulty_models: list[str]
|
|
error_message: str | None
|
|
updated_at: datetime
|
|
github_app_slug: str | None
|