Input formatting is now actually applied when generating with API

This commit is contained in:
vfbd 2022-08-11 14:11:17 -04:00
parent c0c9d62cd7
commit df111b944d

View File

@ -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: