mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-02-21 14:10:39 +01:00
Input formatting is now actually applied when generating with API
This commit is contained in:
parent
c0c9d62cd7
commit
df111b944d
@ -4140,6 +4140,8 @@ def apiactionsubmit(data, use_memory=False, use_world_info=False, use_story=Fals
|
||||
elif(vars.model == "ReadOnly"):
|
||||
raise NotImplementedError("API generation is not supported in read-only mode; please load a model and then try again.")
|
||||
|
||||
data = applyinputformatting(data)
|
||||
|
||||
if(vars.memory != "" and vars.memory[-1] != "\n"):
|
||||
mem = vars.memory + "\n"
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user