Spaces:
Runtime error
Runtime error
mrhblfx
commited on
Commit
·
3a561a7
1
Parent(s):
11e33ec
Reduced one parameter
Browse files- toolbox.py +2 -2
toolbox.py
CHANGED
|
@@ -27,7 +27,7 @@ def ArgsGeneralWrapper(f):
|
|
| 27 |
"""
|
| 28 |
装饰器函数,用于重组输入参数,改变输入参数的顺序与结构。
|
| 29 |
"""
|
| 30 |
-
def decorated(cookies, txt, txt2, top_p, temperature, chatbot, history, system_prompt,
|
| 31 |
txt_passon = txt
|
| 32 |
if txt == "" and txt2 != "": txt_passon = txt2
|
| 33 |
# 引入一个有cookie的chatbot
|
|
@@ -44,7 +44,7 @@ def ArgsGeneralWrapper(f):
|
|
| 44 |
# plugin_kwargs = {
|
| 45 |
# # 目前还没有
|
| 46 |
# }
|
| 47 |
-
plugin_kwargs = dict(
|
| 48 |
chatbot_with_cookie = ChatBotWithCookies(cookies)
|
| 49 |
chatbot_with_cookie.write_list(chatbot)
|
| 50 |
yield from f(txt_passon, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, system_prompt, *args)
|
|
|
|
| 27 |
"""
|
| 28 |
装饰器函数,用于重组输入参数,改变输入参数的顺序与结构。
|
| 29 |
"""
|
| 30 |
+
def decorated(cookies, txt, txt2, top_p, temperature, chatbot, history, system_prompt, txt_pattern, *args):
|
| 31 |
txt_passon = txt
|
| 32 |
if txt == "" and txt2 != "": txt_passon = txt2
|
| 33 |
# 引入一个有cookie的chatbot
|
|
|
|
| 44 |
# plugin_kwargs = {
|
| 45 |
# # 目前还没有
|
| 46 |
# }
|
| 47 |
+
plugin_kwargs = dict(txt_pattern = txt_pattern)
|
| 48 |
chatbot_with_cookie = ChatBotWithCookies(cookies)
|
| 49 |
chatbot_with_cookie.write_list(chatbot)
|
| 50 |
yield from f(txt_passon, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, system_prompt, *args)
|