mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-03-29 09:50:05 +01:00
Fix a typo in bridge.lua
This commit is contained in:
parent
1627afa8c5
commit
a4e8f0780c
@ -1282,10 +1282,10 @@ return function(_python, _bridged)
|
|||||||
---@param v table<integer, string>
|
---@param v table<integer, string>
|
||||||
function KoboldLib_setters.outputs(t, v)
|
function KoboldLib_setters.outputs(t, v)
|
||||||
if koboldbridge.userstate ~= "outmod" then
|
if koboldbridge.userstate ~= "outmod" then
|
||||||
error("Cannot write to `KoboldLib.generated` from outside of an output modifier")
|
error("Cannot write to `KoboldLib.outputs` from outside of an output modifier")
|
||||||
return
|
return
|
||||||
elseif type(v) ~= "table" then
|
elseif type(v) ~= "table" then
|
||||||
error("`KoboldLib.generated` must be a 1D array of strings; you attempted to set it to a " .. type(v))
|
error("`KoboldLib.outputs` must be a 1D array of strings; you attempted to set it to a " .. type(v))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
koboldbridge.outputs = v
|
koboldbridge.outputs = v
|
||||||
|
Loading…
x
Reference in New Issue
Block a user