MicroFish/backend/app
MiroFish Contributor 1d96b09875 fix: strip fabricated tool_result blocks to prevent LLM hallucination
When the LLM generates a <tool_call> block followed by a self-generated
<tool_result> block in the same response, the fake result must be stripped
before appending to message history. The real tool result will be injected
separately by the system.

This fixes a React Hallucination bug where models could fabricate tool
results that didn't actually come from tool invocations.
2026-07-22 19:46:23 +08:00
..
api Fix silent data loss when platform defaults to reddit for Twitter-only simulations 2026-07-22 19:45:30 +08:00
models feat(i18n): replace hardcoded Chinese in backend SSE progress messages 2026-04-01 16:32:10 +08:00
services fix: strip fabricated tool_result blocks to prevent LLM hallucination 2026-07-22 19:46:23 +08:00
utils fix: preserve edge paging call compatibility 2026-07-22 19:42:00 +08:00
__init__.py Implement Report Agent for automated report generation and interaction 2025-12-09 15:10:55 +08:00
config.py Merge pull request #445: disable Flask debug mode by default 2026-07-22 19:40:39 +08:00