mirror of https://github.com/Mai-with-u/MaiBot.git
合并修改
parent
a5f60c5f06
commit
2009ee3b5e
|
|
@ -255,10 +255,7 @@ def _build_stream_api_resp(
|
||||||
" 可能会对回复内容造成影响,建议修改模型 max_tokens 配置!"
|
" 可能会对回复内容造成影响,建议修改模型 max_tokens 配置!"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
logger.warning(
|
logger.warning("⚠ Gemini 响应因达到 max_tokens 限制被截断,\n 请修改模型 max_tokens 配置!")
|
||||||
"⚠ Gemini 响应因达到 max_tokens 限制被截断,\n"
|
|
||||||
" 请修改模型 max_tokens 配置!"
|
|
||||||
)
|
|
||||||
|
|
||||||
if not resp.content and not resp.tool_calls:
|
if not resp.content and not resp.tool_calls:
|
||||||
if not getattr(resp, "reasoning_content", None):
|
if not getattr(resp, "reasoning_content", None):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue