src/diffusers 中的 53 条消息缺少 f-string 前缀 (46 个管道中的安全检查器 ValueError)
作者: David-Wu1119创建于 2026年9月17日更新于 2026年9月17日
53 messages under `src/diffusers` contain `{...}` placeholders but are plain strings, not f-strings, so users see the placeholder text instead of the value. Every referenced name is in scope at its call site, so the fix is only the `f` prefix. Found with an AST scan for string literals passed to `raise`, `logger.*` or `print` whose placeholders name variables in the enclosing function; each hit was then read by hand.
内容来源: huggingface/diffusers