Skip to content

feat: Introduce Imagine Public Image Proxy feature#521

Merged
chenyme merged 2 commits into
mainfrom
optimise
Apr 28, 2026
Merged

feat: Introduce Imagine Public Image Proxy feature#521
chenyme merged 2 commits into
mainfrom
optimise

Conversation

@chenyme
Copy link
Copy Markdown
Owner

@chenyme chenyme commented Apr 28, 2026

Summary

  • 新增 features.imagine_public_image_proxy 配置项,并在管理页“媒体返回格式”中加入 Imagine Public 图片代理 开关。
  • 开启后,WebSocket 返回的 imagine-public 图片会下载到服务端并通过本地代理 URL/Markdown 返回;关闭时保持公开图片直返。
  • 更新图片返回格式说明,补充 Imagine Public 代理开关对 grok_url / grok_md 的影响。
  • 补齐 zh/en/de/es/fr/ja 多语言文案。
  • WebUI 媒体加载失败提示增强:视频 403 提示改为引导前往管理页设置 APP 访问地址并切换本地代理格式;媒体提示条宽度按页面自适应,底部模型选择框文字右对齐。
  • asyncio.TaskGroup() 并发准备参考图,任意一张参考图上传或 create_media_post 失败时,外层 ExceptionGroup 优化

Testing

  • python -m py_compile app/products/openai/images.py app/products/openai/chat.py
  • node --check app/statics/js/webui/chat.js
  • jq empty app/statics/i18n/zh.json app/statics/i18n/en.json app/statics/i18n/de.json app/statics/i18n/es.json app/statics/i18n/fr.json app/statics/i18n/ja.json
  • git diff --check
  • uv run

Related

@chenyme chenyme merged commit 64a71f1 into main Apr 28, 2026
6 checks passed
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.

bug: unhandled errors in a TaskGroup (1 sub-exception) question: 视频生成失败,有链接但是打开为0s的视频,无内容

1 participant