修复高级参数bug
This commit is contained in:
@ -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]
|
||||
|
||||
Reference in New Issue
Block a user