Skip to content

Commit 1ad0e25

Browse files
committed
fix(inline): setting placement from prompt library
1 parent 6f07c06 commit 1ad0e25

File tree

1 file changed

+2
-1
lines changed
  • lua/codecompanion/strategies/inline

1 file changed

+2
-1
lines changed

lua/codecompanion/strategies/inline/init.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ function Inline:done(output)
436436
end
437437

438438
-- There should always be a placement whether that's from the LLM or the user's prompt
439-
local placement = xml and string.lower(xml.placement) or string.lower(self.classification.placement)
439+
local placement = xml and xml.placement or self.classification.placement
440+
placement = string.lower(placement)
440441
if not placement then
441442
log:error("[%s] No placement returned", adapter_name)
442443
return self:reset()

0 commit comments

Comments
 (0)