Skip to content

Commit d79a18e

Browse files
committed
style: format code
1 parent ed497cb commit d79a18e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

astrbot/core/provider/sources/openai_source.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,7 @@ async def _query(self, payloads: dict, tools: ToolSet | None) -> LLMResponse:
467467

468468
# 情况1: 空/null content 且无 tool_calls -> 过滤掉
469469
if not tool_calls and (content == "" or content is None):
470-
logger.warning(
471-
f"过滤第 {idx} 条空 assistant 消息 (无工具调用)"
472-
)
470+
logger.warning(f"过滤第 {idx} 条空 assistant 消息 (无工具调用)")
473471
continue
474472

475473
# 情况2: 空 content 但有 tool_calls -> 设为 None (符合 OpenAI 规范)

0 commit comments

Comments
 (0)