From bad46dd6e0fe7fd99ffe72c462a47508090f7d9a Mon Sep 17 00:00:00 2001 From: BrunoV21 Date: Mon, 8 Sep 2025 23:38:47 +0100 Subject: [PATCH 1/2] skip auth --- codetide/agents/tide/ui/__init__.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/codetide/agents/tide/ui/__init__.py b/codetide/agents/tide/ui/__init__.py index 79d5c80..99851ab 100644 --- a/codetide/agents/tide/ui/__init__.py +++ b/codetide/agents/tide/ui/__init__.py @@ -1,5 +1,8 @@ -from .app import main +import os -__all__ = [ - "main" -] \ No newline at end of file +if os.getenv("SKIP_AUTH"): + from .app import main + + __all__ = [ + "main" + ] \ No newline at end of file From d255b186ec980b2f5b8beef7c0aadefbf669a6b0 Mon Sep 17 00:00:00 2001 From: BrunoV21 Date: Mon, 8 Sep 2025 23:39:43 +0100 Subject: [PATCH 2/2] skip auth --- examples/hf_demo_space/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/hf_demo_space/app.py b/examples/hf_demo_space/app.py index c587a6d..feb5259 100644 --- a/examples/hf_demo_space/app.py +++ b/examples/hf_demo_space/app.py @@ -4,14 +4,15 @@ import os os.environ.setdefault("CHAINLIT_APP_ROOT", str(Path(os.path.abspath(__file__)).parent)) +os.environ.setdefault("SKIP_AUTH", "1") from codetide.agents.tide.ui.defaults import AICORE_CONFIG_EXAMPLE, EXCEPTION_MESSAGE, MISSING_CONFIG_MESSAGE, STARTERS from codetide.agents.tide.ui.stream_processor import StreamProcessor, MarkerConfig from codetide.agents.tide.ui.utils import run_concurrent_tasks, send_reasoning_msg from codetide.agents.tide.ui.agent_tide_ui import AgentTideUi from codetide.core.defaults import DEFAULT_ENCODING -from codetide.core.logs import logger from codetide.agents.tide.models import Step +from codetide.core.logs import logger from aicore.const import STREAM_END_TOKEN, STREAM_START_TOKEN from aicore.models import AuthenticationError, ModelError