This commit is contained in:
Your Name 2023-03-24 18:08:48 +08:00
parent 7186d9b17e
commit d29f72ce10
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ def 解析源代码(file_manifest, project_folder, top_p, temperature, chatbot,
while True: while True:
try: try:
# gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history) # gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history)
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, top_p, temperature, history=history) # 带超时倒计时 gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时
break break
except ConnectionAbortedError as e: except ConnectionAbortedError as e:
history = [his[len(his)//2:] for his in history] history = [his[len(his)//2:] for his in history]
@ -97,7 +97,7 @@ def 解析项目本身(txt, top_p, temperature, chatbot, history, systemPromptTx
if not fast_debug: if not fast_debug:
# ** gpt request ** # ** gpt request **
# gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history) # gpt_say = predict_no_ui(inputs=i_say, top_p=top_p, temperature=temperature, history=history)
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, top_p, temperature, history=history) # 带超时倒计时 gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时
chatbot[-1] = (i_say, gpt_say) chatbot[-1] = (i_say, gpt_say)
history.append(i_say); history.append(gpt_say) history.append(i_say); history.append(gpt_say)

View File

@ -46,7 +46,7 @@ def 解析Paper(file_manifest, project_folder, top_p, temperature, chatbot, hist
# ** gpt request ** # ** gpt request **
while True: while True:
try: try:
gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say_show_user, chatbot, top_p, temperature, history=history) # 带超时倒计时 gpt_say = yield from predict_no_ui_but_counting_down(i_say, i_say, chatbot, top_p, temperature, history=history) # 带超时倒计时
break break
except ConnectionAbortedError as e: except ConnectionAbortedError as e:
history = [his[len(his)//2:] for his in history] history = [his[len(his)//2:] for his in history]