fix(providers): sanitize thinking_blocks by provider and harden content normalization
This commit is contained in:
1 parent
1601470436
commit
3c79404194
2 files changed
+22
-6
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user