feat: show generation prompts in previews and fix fluid page layout

This commit is contained in:
2026-11-04 01:19:42 +08:00
parent bef8af53ed
commit 5f3cebcb38
8 changed files with 57 additions and 9 deletions
+4 -3
View File
@@ -60,7 +60,7 @@
| `ratio` | str | 仅 Agnes 支持,如 `16:9`;省略时从 `size` 推导 |
| `n` | int | 生成数量(1~4) |
| `images` | list[str] | 图生图参考图(URL 或 Data URI),仅部分供应商支持 |
| `profile_name` | str | 调用方标识,决定落盘目录 |
| `profile_name` | str | 画廊标识;建议显式传调用 Agent 的名称,例如 `codex`,决定落盘目录 |
## 落盘规则
@@ -75,7 +75,7 @@
"size": "1024x1024",
"n": 1,
"images": ["https://example.com/reference.png"],
"profile_name": "agent"
"profile_name": "codex"
}
```
@@ -87,7 +87,8 @@ output/
```
- 网页端手动出图固定 `profile_name = user` → `output/user/`
- Agent 调用时由调用方指定 `profile_name`,默认 `agent`
- Agent 调用时建议显式将 `profile_name` 设为自己的名称(例如 `codex`),图片进入同名画廊。
- 服务端不会自动识别 Agent 身份;省略 `profile_name` 时 MCP 使用通用默认值 `agent`,它不代表具体 Agent 的名字。
- 目录不存在时后端自动创建
- 允许字符:字母、数字、下划线、短横线(1~64 位)