fix(providers): sanitize thinking_blocks by provider and harden content normalization

This commit is contained in:
Re-bin
2026-03-02 06:58:10 +00:00
parent 1601470436
commit 3c79404194
2 changed files with 22 additions and 6 deletions

View File

@@ -78,6 +78,12 @@ class LLMProvider(ABC):
result.append(clean)
continue
if isinstance(content, dict):
clean = dict(msg)
clean["content"] = [content]
result.append(clean)
continue
result.append(msg)
return result