Skip to content

Commit

Permalink
chores: name style
Browse files Browse the repository at this point in the history
  • Loading branch information
yetone committed Aug 15, 2024
1 parent 1634abb commit b1d7deb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/avante/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b1d7deb

Please sign in to comment.