mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 05:37:20 +08:00
Add GitHub and Replicated app slugs to web client config (#12724)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user