Skip to content

Commit 24f0cfb

Browse files
committed
Fix name for reasoning_context for openai provider
1 parent fde9a52 commit 24f0cfb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lua/avante/providers/openai.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -427,18 +427,18 @@ function M:add_text_message(ctx, text, state, opts)
427427
end
428428

429429
function M:add_thinking_message(ctx, text, state, opts)
430-
if ctx.reasonging_content == nil then ctx.reasonging_content = "" end
431-
ctx.reasonging_content = ctx.reasonging_content .. text
430+
if ctx.reasoning_content == nil then ctx.reasoning_content = "" end
431+
ctx.reasoning_content = ctx.reasoning_content .. text
432432
local msg = HistoryMessage:new("assistant", {
433433
type = "thinking",
434-
thinking = ctx.reasonging_content,
434+
thinking = ctx.reasoning_content,
435435
signature = "",
436436
}, {
437437
state = state,
438-
uuid = ctx.reasonging_content_uuid,
438+
uuid = ctx.reasoning_content_uuid,
439439
turn_id = ctx.turn_id,
440440
})
441-
ctx.reasonging_content_uuid = msg.uuid
441+
ctx.reasoning_content_uuid = msg.uuid
442442
if opts.on_messages_add then opts.on_messages_add({ msg }) end
443443
end
444444

0 commit comments

Comments
 (0)