fix: help cmd (#1963)

This commit is contained in:
yetone
2025-05-02 00:53:55 +08:00
committed by GitHub
parent 3a43621e17
commit d3094d6c9f
2 changed files with 6 additions and 7 deletions

View File

@@ -87,7 +87,7 @@ function M:parse_messages(opts)
vim.iter(opts.messages):each(function(msg)
if type(msg.content) == "string" then
table.insert(messages, { role = self.role_map[msg.role], content = msg.content })
else
elseif type(msg.content) == "table" then
local content = {}
local tool_calls = {}
local tool_results = {}