fix(backend): remove duplicate _THINKING_BLOCK_TYPES definition in transcript.py

The constant was already defined at module level (line 48) and used by both
_strip_thinking_from_non_last_assistant and _flatten_assistant_content. The
duplicate added at line 692 was redundant.
This commit is contained in:
Zamil Majdy
2026-04-02 14:34:03 +02:00
parent c26ff22f9c
commit 7800af1835

View File

@@ -689,9 +689,6 @@ COMPACT_MSG_ID_PREFIX = "msg_compact_"
ENTRY_TYPE_MESSAGE = "message"
_THINKING_BLOCK_TYPES = frozenset({"thinking", "redacted_thinking"})
def _flatten_assistant_content(blocks: list) -> str:
"""Flatten assistant content blocks into a single plain-text string.