镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 06:26:47 +00:00
参数输入bug修复
这个提交包含在:
@@ -6,10 +6,10 @@ def ArgsGeneralWrapper(f):
|
||||
"""
|
||||
装饰器函数,用于重组输入参数,改变输入参数的顺序与结构。
|
||||
"""
|
||||
def decorated(txt, txt2, top_p, temperature, chatbot, history, system_prompt, *args, **kwargs):
|
||||
def decorated(txt, txt2, *args, **kwargs):
|
||||
txt_passon = txt
|
||||
if txt == "" and txt2 != "": txt_passon = txt2
|
||||
yield from f(txt_passon, top_p, temperature, chatbot, history, system_prompt, *args, **kwargs)
|
||||
yield from f(txt_passon, *args, **kwargs)
|
||||
|
||||
return decorated
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户