We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6c3fb8 commit 2b78712Copy full SHA for 2b78712
lua/cmp_ai/backends/hf.lua
@@ -47,7 +47,7 @@ function HF:complete(lines_before, lines_after, cb)
47
return
48
end
49
for _, response in ipairs(answer) do
50
- if response.generated_text == nil then
+ if response.generated_text ~= nil then
51
local result = response.generated_text:gsub('<|endoftext|>', '')
52
table.insert(new_data, result)
53
0 commit comments