修复高级参数bug

This commit is contained in:
w_xiaolizu
2023-05-23 10:49:34 +08:00
parent 11cbfd33e9
commit 065257b6d8
5 changed files with 9 additions and 10 deletions

View File

@ -50,7 +50,7 @@ def ArgsGeneralWrapper(f):
装饰器函数,用于重组输入参数,改变输入参数的顺序与结构。
"""
def decorated(cookies, max_length, llm_model, txt, top_p, temperature,
chatbot, history, system_prompt, models, ipaddr: gr.Request, *args):
chatbot, history, system_prompt, models, plugin_advanced_arg, ipaddr: gr.Request, *args):
""""""
# 引入一个有cookie的chatbot
cookies.update({
@ -66,7 +66,7 @@ def ArgsGeneralWrapper(f):
'ipaddr': ipaddr.client.host
}
plugin_kwargs = {
# "advanced_arg": plugin_advanced_arg, 意义不明的功能,后续再解决冲突
"advanced_arg": plugin_advanced_arg
}
encrypt, private = get_conf('switch_model')[0]['key']
private_key = get_conf('private_key')[0]