summaryrefslogtreecommitdiff
path: root/backend/config.py
diff options
context:
space:
mode:
authorhaoyuren <13851610112@163.com>2026-02-12 12:45:24 -0600
committerhaoyuren <13851610112@163.com>2026-02-12 12:45:24 -0600
commitc8fae0256c91a0ebe495270aa15baa2f27211268 (patch)
treeefc908a9fb259a18809ab5151a15fc0f1e10fdf1 /backend/config.py
parent92e1fccb1bdcf1bab7221aa9ed90f9dc72529131 (diff)
Multi-turn conversation, stop generation, SSE fix, and UI improvements
- Multi-turn context: all council stages now receive conversation history (user messages + Stage 3 chairman responses) for coherent follow-ups - Stop generation: abort streaming mid-request, recover query to input box - SSE parsing: buffer-based chunking to prevent JSON split across packets - Atomic storage: user + assistant messages saved together after completion, preventing dangling messages on abort - GFM markdown: tables, strikethrough via remark-gfm plugin + table styles - Performance: memo user messages and completed assistant messages, only re-render the active streaming message - Model config: gpt-5.2, claude-opus-4.6 as chairman - Always show input box for multi-turn conversations Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'backend/config.py')
-rw-r--r--backend/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/config.py b/backend/config.py
index a9cf7c4..cf8fcb4 100644
--- a/backend/config.py
+++ b/backend/config.py
@@ -10,14 +10,14 @@ OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY")
# Council members - list of OpenRouter model identifiers
COUNCIL_MODELS = [
- "openai/gpt-5.1",
+ "openai/gpt-5.2",
"google/gemini-3-pro-preview",
- "anthropic/claude-sonnet-4.5",
+ "anthropic/claude-opus-4.6",
"x-ai/grok-4",
]
# Chairman model - synthesizes final response
-CHAIRMAN_MODEL = "google/gemini-3-pro-preview"
+CHAIRMAN_MODEL = "anthropic/claude-opus-4.6"
# OpenRouter API endpoint
OPENROUTER_API_URL = "https://openrouter.ai/api/v1/chat/completions"