This commit is contained in:
Saifeddine ALOUI 2023-11-12 18:27:44 +01:00
parent 0631ce4b2c
commit 01272b2b38
2 changed files with 3 additions and 3 deletions

View File

@ -532,8 +532,8 @@ class TypedConfig:
entry_value = int(entry_value)
elif entry_type == "float":
entry_value = float(entry_value)
elif entry_type == "str" or entry_type == "string":
entry_value = str(entry_value)
elif entry_type == "str" or entry_type == "string" or entry_type == "btn":
entry_value = str(entry_value)
elif entry_type == "bool":
entry_value = bool(entry_value)
elif entry_type == "list":

View File

@ -1330,7 +1330,7 @@ class APScript(StateMachine):
def generate(self, prompt, max_size, temperature = None, top_k = None, top_p=None, repeat_penalty=None, callback=None ):
self.personality.generate(prompt, max_size, temperature, top_k, top_p, repeat_penalty, callback)
return self.personality.generate(prompt, max_size, temperature, top_k, top_p, repeat_penalty, callback)
def run_workflow(self, prompt:str, previous_discussion_text:str="", callback: Callable[[str, MSG_TYPE, dict, list], bool]=None):
"""