17 Commits
Author SHA1 Message Date
Jack 751208659d chore: keep generated images inside the project as real directories
The absolute-path + symlink layout added earlier today is awkward to
redeploy against: after a fresh clone the symlinks point at nothing and
compose quietly creates empty directories in their place, so the service
comes up healthy with no history.

/root/apps/ holds services only, so the images and the SQLite database
live in the project again as ./output and ./data, bind-mounted with
relative paths. Backups are handled by a separate hook that copies to
/root/backup_files/ai-image/, which is not part of /root/apps/.

Both directories stay gitignored.
2026-11-04 23:57:55 +08:00
Jack 53b2123ae9 chore: move generated images and database outside the git worktree
The output/ and data/ directories lived inside this git repo. They are
gitignored, so any rebuild of the directory (git clone into a recreated
path, rm + clone) silently took the generated images and the SQLite
database with it. On 2026-11-04 that cost a full round of regenerated
images.

The real data now lives in /root/apps/ai-image-data/:
  output/  generated images, one subdirectory per profile_name
  data/    ai_image.db + secret.key

Bind mounts use absolute paths so the container never depends on symlink
resolution. ./output and ./data remain as symlinks for backwards
compatibility with existing scripts and skills.

Also ignore the symlinks themselves: the directory-form rules do not
match them, so git would have picked them up.
2026-11-04 23:48:01 +08:00
toor 5f3cebcb38 feat: show generation prompts in previews and fix fluid page layout 2026-11-04 01:19:42 +08:00
toor bef8af53ed feat: complete image console and add verified REST and MCP workflows 2026-11-04 00:41:54 +08:00
Jack 3140cd51d2 ++ 2026-09-22 11:07:03 +08:00
toorandClaude 2598efb5bb feat: 接入 Agnes Image 2.1 Flash 文生图/图生图 API,新增 multipart 上传端点
- utils/t2i.py 重命名为 utils/mm_api_t2i.py(内容不变)
- 新增 utils/agnes_image.py: Agnes 文生图/图生图/多图合成,含 size+ratio 解析、URL/Data URI下载、指数退避重试
- main.py: 修复 utils.t2i import 路径;新增 POST /agnes/images/generations(JSON 版)和 /agnes/images/generations/upload(multipart 版)
- SKILL.md: 同步新端点、可调用模型、调用示例、multipart form 字段说明
- requirements.txt: 新增 python-multipart(UploadFile 依赖)
- .env.example / .env: 新增 AGNES_API_KEY / AGNES_API_BASE_URL
- .gitignore: 忽略 test/ 目录

Co-Authored-By: Claude <noreply@anthropic.com>
2026-08-21 12:33:13 +08:00
toor 7e6617aebb ++ 2026-08-20 18:32:05 +08:00
toor fdbc22441b ++ 2026-08-20 18:26:29 +08:00
toor 0d63239270 ++ 2026-08-20 09:06:04 +08:00
toor 50cba5d2c8 ++ 2026-08-19 10:47:52 +08:00
toor f3d3e02341 ++ 2026-08-19 10:37:51 +08:00
toor a30b0ae532 ++ 2026-08-19 09:42:24 +08:00
toor c69733f4e6 ++ 2026-08-19 09:14:49 +08:00
toor af0d43c453 Support URL image responses
Download upstream image URLs in addition to Base64 responses.
2026-08-19 00:01:03 +08:00
Jack 9bf2a97d00 ++ 2026-08-18 23:42:17 +08:00
toor 23585e1a10 ++ 2026-08-18 23:39:51 +08:00
toor cf8b6c067d Add FastAPI image generation service
Provide containerized GPT and Grok image generation with environment-based configuration.
2026-08-18 23:23:46 +08:00