deerflow2/backend/app/gateway/routers
Octopus 9909a28e69 fix: use SystemMessage+HumanMessage for follow-up question generation (#1751)
* fix: use SystemMessage+HumanMessage for follow-up question generation (fixes #1697)

Some models (e.g. MiniMax-M2.7) require the system prompt and user
content to be passed as separate message objects rather than a single
combined string. Invoking with a plain string sends everything as a
HumanMessage, which causes these models to ignore the generation
instructions and fail to produce valid follow-up questions.

* test: verify model is invoked with SystemMessage and HumanMessage
2026-04-03 20:09:01 +08:00
..
__init__.py feat(gateway): implement LangGraph Platform API in Gateway, replace langgraph-cli (#1403) 2026-03-30 16:02:23 +08:00
agents.py refactor: split backend into harness (deerflow.*) and app (app.*) (#1131) 2026-03-14 22:55:52 +08:00
artifacts.py fix(gateway): enforce safe download for active artifact MIME types to mitigate stored XSS (#1389) 2026-03-26 17:44:25 +08:00
assistants_compat.py feat(gateway): implement LangGraph Platform API in Gateway, replace langgraph-cli (#1403) 2026-03-30 16:02:23 +08:00
channels.py refactor: split backend into harness (deerflow.*) and app (app.*) (#1131) 2026-03-14 22:55:52 +08:00
mcp.py fix: issue 1138 windows encoding (#1139) 2026-03-16 16:53:12 +08:00
memory.py feat(memory): structured reflection + correction detection in MemoryMiddleware (#1620) (#1668) 2026-04-01 16:45:29 +08:00
models.py fix: improve MiniMax code plan integration (#1169) 2026-03-20 17:18:59 +08:00
runs.py feat(gateway): implement LangGraph Platform API in Gateway, replace langgraph-cli (#1403) 2026-03-30 16:02:23 +08:00
skills.py refactor: extract shared skill installer and upload manager to harness (#1202) 2026-03-25 16:28:33 +08:00
suggestions.py fix: use SystemMessage+HumanMessage for follow-up question generation (#1751) 2026-04-03 20:09:01 +08:00
thread_runs.py fix(gateway): merge context field into configurable for langgraph-compat runs (#1699) (#1707) 2026-04-01 17:17:09 +08:00
threads.py Improve Python reliability in channel retries and thread typing (#1776) 2026-04-03 07:50:11 +08:00
uploads.py ci: enforce code formatting checks for backend and frontend (#1536) 2026-03-29 15:34:38 +08:00