fix: increase history max_tokens (#1609)

This commit is contained in:
yetone
2025-03-17 04:38:08 +08:00
committed by GitHub
parent e05312f83b
commit 63605a55a3
4 changed files with 19 additions and 19 deletions

View File

@@ -25,10 +25,8 @@ function Tokens.calculate_tokens(content)
text = text .. item.text
elseif type(item) == "table" and item.type == "image" then
text = text .. item.source.data
elseif type(item) == "table" and item.type == "tool_use" then
text = text .. item.name .. item.id
elseif type(item) == "table" and item.type == "tool_result" then
text = text .. item.tool_use_id .. item.content
text = text .. item.content
end
end
end