chores: name style

This commit is contained in:
yetone 2024-08-15 13:43:42 +08:00
parent 1634abb9cd
commit b1d7debd49
No known key found for this signature in database
GPG Key ID: 222BA52B342D52AA

View File

@ -220,7 +220,7 @@ local function call_claude_api_stream(question, code_lang, code_content, on_chun
user_prompt_obj.cache_control = { type = "ephemeral" }
end
local params = {
local body = {
model = M.config.claude.model,
system = system_prompt,
messages = {
@ -278,7 +278,7 @@ local function call_claude_api_stream(question, code_lang, code_content, on_chun
end
end,
headers = headers,
body = fn.json_encode(params),
body = fn.json_encode(body),
})
end