Add GitHub and Replicated app slugs to web client config (#12724)

This commit is contained in:
Tim O'Farrell
2026-02-02 15:53:52 -07:00
committed by GitHub
parent 682465a862
commit 7b0589ad40
2 changed files with 3 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ class DefaultWebClientConfigInjector(WebClientConfigInjector):
recaptcha_site_key: str | None = None
faulty_models: list[str] = Field(default_factory=list)
error_message: str | None = None
github_app_slug: str | None = None
async def get_web_client_config(self) -> WebClientConfig:
from openhands.app_server.config import get_global_config
@@ -36,5 +37,6 @@ class DefaultWebClientConfigInjector(WebClientConfigInjector):
recaptcha_site_key=self.recaptcha_site_key,
faulty_models=self.faulty_models,
error_message=self.error_message,
github_app_slug=self.github_app_slug,
)
return result

View File

@@ -25,3 +25,4 @@ class WebClientConfig(DiscriminatedUnionMixin):
recaptcha_site_key: str | None
faulty_models: list[str]
error_message: str | None
github_app_slug: str | None