mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Author's Note Template
This commit is contained in:
20
bridge.lua
20
bridge.lua
@@ -145,6 +145,8 @@ return function(_python, _bridged)
|
||||
--==========================================================================
|
||||
|
||||
---@class KoboldLib
|
||||
---@field authorsnote string
|
||||
---@field authorsnotetemplate string
|
||||
---@field memory string
|
||||
---@field submission string
|
||||
---@field model string
|
||||
@@ -998,6 +1000,24 @@ return function(_python, _bridged)
|
||||
bridged.set_authorsnote(v)
|
||||
end
|
||||
|
||||
---@param t KoboldLib
|
||||
---@return string
|
||||
function KoboldLib_getters.authorsnotetemplate(t)
|
||||
return bridged.get_authorsnotetemplate()
|
||||
end
|
||||
|
||||
---@param t KoboldLib
|
||||
---@param v string
|
||||
---@return KoboldLib
|
||||
function KoboldLib_setters.authorsnotetemplate(t, v)
|
||||
if type(v) ~= "string" then
|
||||
error("`KoboldLib.authorsnotetemplate` must be a string; you attempted to set it to a "..type(v))
|
||||
return
|
||||
end
|
||||
maybe_require_regeneration()
|
||||
bridged.set_authorsnotetemplate(v)
|
||||
end
|
||||
|
||||
|
||||
--==========================================================================
|
||||
-- Userscript API: User-submitted text (after applying input formatting)
|
||||
|
Reference in New Issue
Block a user