镜像自地址
https://github.com/binary-husky/gpt_academic.git
已同步 2025-12-08 15:36:48 +00:00
调整注释
这个提交包含在:
@@ -110,7 +110,7 @@ def generate_from_baidu_qianfan(inputs, llm_kwargs, history, system_prompt):
|
|||||||
yield buffer
|
yield buffer
|
||||||
except:
|
except:
|
||||||
if ('error_code' in dec) and ("max length" in dec['error_msg']):
|
if ('error_code' in dec) and ("max length" in dec['error_msg']):
|
||||||
raise ConnectionAbortedError(dec['error_msg'])
|
raise ConnectionAbortedError(dec['error_msg']) # 上下文太长导致 token 溢出
|
||||||
elif ('error_code' in dec):
|
elif ('error_code' in dec):
|
||||||
raise RuntimeError(dec['error_msg'])
|
raise RuntimeError(dec['error_msg'])
|
||||||
|
|
||||||
|
|||||||
在新工单中引用
屏蔽一个用户