feat: support acp (#2649)

This commit is contained in:
yetone
2025-08-31 07:41:19 +08:00
committed by GitHub
parent 9008fc4f41
commit 5e0aa7e5c0
12 changed files with 1653 additions and 42 deletions

View File

@@ -26,7 +26,7 @@ function Tokens.calculate_tokens(content)
elseif type(item) == "table" and item.type == "image" then
text = text .. item.source.data
elseif type(item) == "table" and item.type == "tool_result" then
text = text .. item.content
if type(item.content) == "string" then text = text .. item.content end
end
end
end