Compare commits

...

2 Commits

Author SHA1 Message Date
Yuhong Sun
c313329b9a k 2025-12-23 15:41:27 -08:00
Yuhong Sun
d421e6687e k 2025-12-23 14:49:21 -08:00
4 changed files with 4 additions and 9 deletions

View File

@@ -1,4 +1,3 @@
import os
import re
import traceback
from collections.abc import Callable
@@ -545,10 +544,7 @@ def stream_chat_message_objects(
# for stop signals. run_llm_loop itself doesn't know about stopping.
# Note: DB session is not thread safe but nothing else uses it and the
# reference is passed directly so it's ok.
if (
new_msg_req.deep_research
or os.environ.get("FORCE_DEEP_RESEARCH_LOOP", "false").lower() == "true"
):
if new_msg_req.deep_research:
if chat_session.project_id:
raise RuntimeError("Deep research is not supported for projects")

View File

@@ -63,7 +63,7 @@ from shared_configs.contextvars import get_current_tenant_id
logger = setup_logger()
MAX_USER_MESSAGES_FOR_CONTEXT = 5
MAX_FINAL_REPORT_TOKENS = 10000
MAX_FINAL_REPORT_TOKENS = 20000
# Might be something like (this gives a lot of leeway for change but typically the models don't do this):
# 0. Research topics 1-3

View File

@@ -284,7 +284,7 @@ export function SettingsForm() {
<Checkbox
label="Deep Research"
sublabel="If set, users will be able to use Deep Research."
sublabel="Deep Research is in Alpha. Not recommended to be turned on. Use at your own risk."
checked={settings.deep_research_enabled ?? true}
onChange={(e) =>
handleToggleSettingsField("deep_research_enabled", e.target.checked)

View File

@@ -629,8 +629,7 @@ const ChatInputBar = React.memo(
disabled={disabled}
/>
)}
{/* Temporarily disabled - to re-enable, change false to showDeepResearch */}
{false && showDeepResearch && (
{showDeepResearch && (
<SelectButton
leftIcon={SvgHourglass}
onClick={toggleDeepResearch}