Skip to content

Commit 83bdb51

Browse files
committed
added protection
1 parent f76247a commit 83bdb51

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

codetide/agents/tide/ui/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ async def loadAgentTideUi()->AgentTideUi:
146146
agent_tide_ui = AgentTideUi(
147147
os.getenv("AGENT_TIDE_PROJECT_PATH", "./"),
148148
history=cl.user_session.get("chat_history"),
149-
llm_config=cl.user_session.get("settings")
149+
llm_config=cl.user_session.get("settings") or None
150150
)
151151
await agent_tide_ui.load()
152152

examples/hf_demo_space/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ async def start_chatr():
103103
agent_tide_ui = AgentTideUi(
104104
DEFAULT_SESSIONS_WORKSPACE / session_id,
105105
history=cl.user_session.get("chat_history"),
106-
llm_config=cl.user_session.get("settings"),
106+
llm_config=cl.user_session.get("settings") or None,
107107
session_id=session_id
108108
)
109109
await agent_tide_ui.load()

0 commit comments

Comments
 (0)