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
++
2026-08-20 18:26:29 +08:00
++
2026-08-20 18:26:29 +08:00
++
2026-08-20 18:26:29 +08:00
++
2026-08-18 23:39:51 +08:00
++
2026-08-20 18:32:05 +08:00
S
Description
No description provided
269 KiB
Languages
HTML 42.9%
Python 36.9%
CSS 12.6%
JavaScript 7.4%
Dockerfile 0.2%