enhance SSE parsing, add stream error/truncation detection, fix tool_call fallback extraction

This commit is contained in:
Liang Jiaqing
2026-03-26 18:42:09 +08:00
parent 650c14dc1a
commit 47ad98239f
2 changed files with 38 additions and 6 deletions

View File

@@ -18,7 +18,7 @@ def get_screen_width():
def start_streamlit(port):
global proc
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true", "--theme.base", "dark"] # 暗黑模式
cmd = [sys.executable, "-m", "streamlit", "run", os.path.join(frontends_dir, "stapp.py"), "--server.port", str(port), "--server.address", "localhost", "--server.headless", "true"]
proc = subprocess.Popen(cmd)
atexit.register(proc.kill)