mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Add prompt "support"
This commit is contained in:
@@ -2111,9 +2111,15 @@ class KoboldStoryRegister(object):
|
||||
"""
|
||||
Returns a list of chunks that comprise an action in dictionaries
|
||||
formatted as follows:
|
||||
type: string identifying chunk type ("ai", "user", or "edit")
|
||||
type: string identifying chunk type ("ai", "user", "edit", or "prompt")
|
||||
content: the actual content of the chunk
|
||||
"""
|
||||
# Prompt doesn't need standard edit data
|
||||
if action_id == -1:
|
||||
if self.koboldai_vars.prompt:
|
||||
return [{"type": "prompt", "content": self.koboldai_vars.prompt}]
|
||||
return []
|
||||
|
||||
current_text = self.actions[action_id]["Selected Text"]
|
||||
action_original_type = "ai"
|
||||
|
||||
|
Reference in New Issue
Block a user