File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lua/codecompanion/strategies/inline Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -434,12 +434,12 @@ function Inline:done(output)
434434 log :error (" [%s] %s" , adapter_name , xml .error )
435435 return self :reset ()
436436 end
437- if xml and not xml .code and xml .placement ~= " chat" then
437+ if xml and not xml .code and string.lower ( xml .placement ) ~= " chat" then
438438 log :error (" [%s] Returned no code" , adapter_name )
439439 return self :reset ()
440440 end
441441
442- local placement = xml and xml .placement or self .classification .placement
442+ local placement = xml and string.lower ( xml .placement ) or string.lower ( self .classification .placement )
443443 log :debug (" [Inline] Placement: %s" , placement )
444444 if not placement then
445445 log :error (" [%s] No placement returned" , adapter_name )
You can’t perform that action at this time.
0 commit comments