mirror of
https://github.com/ParisNeo/lollms.git
synced 2024-12-24 06:46:40 +00:00
upgraded
This commit is contained in:
parent
0631ce4b2c
commit
01272b2b38
@ -532,7 +532,7 @@ class TypedConfig:
|
|||||||
entry_value = int(entry_value)
|
entry_value = int(entry_value)
|
||||||
elif entry_type == "float":
|
elif entry_type == "float":
|
||||||
entry_value = float(entry_value)
|
entry_value = float(entry_value)
|
||||||
elif entry_type == "str" or entry_type == "string":
|
elif entry_type == "str" or entry_type == "string" or entry_type == "btn":
|
||||||
entry_value = str(entry_value)
|
entry_value = str(entry_value)
|
||||||
elif entry_type == "bool":
|
elif entry_type == "bool":
|
||||||
entry_value = bool(entry_value)
|
entry_value = bool(entry_value)
|
||||||
|
@ -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 ):
|
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):
|
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