mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Prevent the user from deleting the prompt
This commit is contained in:
@ -1578,6 +1578,8 @@ def deleterequest():
|
||||
def inlineedit(chunk, data):
|
||||
chunk = int(chunk)
|
||||
if(chunk == 0):
|
||||
if(len(data.strip()) == 0):
|
||||
return
|
||||
vars.prompt = data
|
||||
else:
|
||||
vars.actions[chunk-1] = data
|
||||
|
Reference in New Issue
Block a user