Skip to content

Commit 1856e4a

Browse files
authored
Update warning message for unexpected dict format
1 parent cc9bad5 commit 1856e4a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

astrbot/core/provider/sources/openai_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ def _normalize_content(raw_content: Any, strip: bool = True) -> str:
394394
text_val = raw_content.get("text", "")
395395
return str(text_val) if text_val is not None else ""
396396
# For other dict formats, return empty string and log
397-
logger.warning(f"未预期的 dict 格式 content: {raw_content}")
397+
logger.warning(f"Unexpected dict format content: {raw_content}")
398398
return ""
399399

400400
if isinstance(raw_content, list):

0 commit comments

Comments
 (0)