Local text-to-image fallback violates the return_url contract
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 astrbot/core/utils/t2i/renderer.py 开始,在不带 return_url 调用 LocalRenderStrategy.render(text) 的回退路径中,追踪远程策略和 Star.text_to_image 如何处理 return_url。阅读本地策略,以确定可远程访问的本地 URL 是否根本可行。完成标准:请求 return_url=True 的调用方永远不会收到文件系统路径——要么该标志在回退中保留,要么抛出明确的错误;用现有 t2i 测试验证或新增一个测试。
由索引模型根据 Issue 内容生成。
描述
The public Star.text_to_image(..., return_url=True) contract says the result is a URL. When the remote renderer fails, astrbot/core/utils/t2i/renderer.py falls back to LocalRenderStrategy.render(text) without forwarding return_url; the local strategy returns a filesystem path. Callers explicitly requesting a URL can therefore receive a local path that cannot be used as a remotely accessible image URL.
Please preserve the requested result kind through fallback, or return a clear error when a local URL cannot be provided.
- 主要语言
- Python
- 星标
- 45.3k
- 派生
- 3.3k
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 124
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
AstrBotDevs/AstrBot 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 74/100
AstrBotDevs/AstrBot#10999 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug] OpenAI-compatible Gemini 工具 schema const 导致 400可能已有人在做 @arccat-114 于 14 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 77/100
AstrBotDevs/AstrBot#10720 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug] Discord slash command sync aborts with KeyError when a plugin handler is defined in a submodule可能已有人在做 @yuexia5 于 19 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 77/100
AstrBotDevs/AstrBot#10626 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug] QQ频道消息无法回复:markdown 回退顺序有误,误用主动消息导致 304049 限频可能已有人在做 @he-yufeng 于 30 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
AstrBotDevs/AstrBot#10420 · 4 条评论 ·
维护者通常 1 天内回复
-
[Feature] 移除「切换到旧版知识库」入口可能已有人在做 @lingyun14beta 于 27 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
AstrBotDevs/AstrBot#10340 · 1 个 reaction ·
维护者通常 1 天内回复
查看 AstrBotDevs/AstrBot 的全部 Issue
相似的 Issue
-
ChatBedrockConverse changes the keys of JSON tool results to camelCase (`order_id` becomes `orderId`)可能已有人在做 @geyazheng 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
langchain-ai/langchain-aws#1469 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
b4b usability
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 1 天内回复
-
fix(schedule): align list_tasks since cursor filter boundary from strict > to >=可能已有人在做 @bfs2021 今天认领。 未关闭agent-ready bug p2 schedule
难度 2/5 1-3 小时 新手友好度 83/100
allenporter/supernote#540 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 76/100
frazane/scoringrules#164 ·
维护者通常 1 天内回复