Skip to content

fix(image): restore app-chat image generation and parse generated ima…#393

Open
emailck wants to merge 1 commit intochenyme:mainfrom
emailck:fix/app-chat-image-generation
Open

fix(image): restore app-chat image generation and parse generated ima…#393
emailck wants to merge 1 commit intochenyme:mainfrom
emailck:fix/app-chat-image-generation

Conversation

@emailck
Copy link

@emailck emailck commented Mar 24, 2026

Summary

修复 app-chat 路径下的生图问题,避免普通图片描述被上游误路由到 search_images,并补齐对 generated_image_card 返回结构的解析,确保能够提取最终生成图。

该修复解决了 /v1/images/generations 在 app-chat 请求成功的情况下仍无法返回真实生成图片的问题。

Changes

  • Bug 修复
  • 功能新增
  • 重构/清理
  • 文档更新
  • 其他(请说明)

Related Issues

暂无

Verification

  • 本地运行验证
  • 单元/集成测试
  • Docker 构建通过
  • 未验证(请说明原因)

验证说明:

- 使用 Docker 方式在本地重新构建并启动服务,健康检查 /health 正常
- 调用 /v1/images/generations 返回 200
- 非流式生图返回最终图片 URL,而不是 search_images 结果
- 流式生图返回 image_generation.completed,且指向最终图 .../image.jpg
- 已将生成图片实际保存到本地文件进行确认
- python3 -m compileall 校验通过

## Breaking Changes

- [x] 无
- [ ] 有(请说明迁移方式)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant