镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-06 14:36:48 +00:00
兼容性措施
这个提交包含在:
@@ -169,7 +169,7 @@ def predict(inputs, llm_kwargs, plugin_kwargs, chatbot, history=[], system_promp
|
|||||||
while True:
|
while True:
|
||||||
chunk = next(stream_response)
|
chunk = next(stream_response)
|
||||||
# print(chunk.decode()[6:])
|
# print(chunk.decode()[6:])
|
||||||
if is_head_of_the_stream:
|
if is_head_of_the_stream and (r'"object":"error"' not in chunk.decode()):
|
||||||
# 数据流的第一帧不携带content
|
# 数据流的第一帧不携带content
|
||||||
is_head_of_the_stream = False; continue
|
is_head_of_the_stream = False; continue
|
||||||
|
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户