add native Bedrock Converse provider

Made-with: Cursor
This commit is contained in:
Xubin Ren
2026-05-01 18:52:03 +08:00
committed by Xubin Ren
parent 3c20d16117
commit 306958d6e6
11 changed files with 1226 additions and 4 deletions
+1 -1
View File
@@ -118,7 +118,7 @@ class Session:
if include_timestamps:
content = self._annotate_message_time(message, content)
entry: dict[str, Any] = {"role": message["role"], "content": content}
for key in ("tool_calls", "tool_call_id", "name", "reasoning_content"):
for key in ("tool_calls", "tool_call_id", "name", "reasoning_content", "thinking_blocks"):
if key in message:
entry[key] = message[key]
out.append(entry)