mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-19 20:57:58 +00:00
upgraded
This commit is contained in:
parent
0631ce4b2c
commit
01272b2b38
@ -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":
|
||||
|
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user