Fix behaviour of kobold.outputs with read-only and no prompt gen

This commit is contained in:
Gnome Ann
2021-12-17 12:59:01 -05:00
parent d15b43e20e
commit 769333738d
2 changed files with 5 additions and 0 deletions

View File

@@ -1671,6 +1671,7 @@ return function(_python, _bridged)
setmetatable(koboldbridge.outputs, nil)
for k, v in old_next, koboldbridge.outputs, nil do
if type(v) ~= "string" then
error("`kobold.outputs` must be a 1D list of strings, but found a non-string element at index " .. k)
return r
end
if v ~= _outputs[k] then