Skip to content

[skip eval] refactor: 生图备用模型交给 image-service 配置 - #383

Merged
HyxiaoGe merged 1 commit into
masterfrom
feat/image-fallback-from-service
Oct 11, 2026
Merged

HyxiaoGe merged 1 commit into
masterfrom
feat/image-fallback-from-service

Conversation

@HyxiaoGe

Copy link
Copy Markdown
Owner

改动

image-service #16 新增了 DEFAULT_FALLBACK_MODEL 配置(当前值 doubao-seedream-4-5,主力 DEFAULT_MODEL 仍是 gemini-3.1-flash-image-preview)。切换主力和备用模型时,只需修改 image-service 的 .env,再重新创建容器即可。

Fusion 不再写死 fallback_model,调用时不传这个参数,由 image-service 按默认配置决定。按当前配置,行为和之前一致:Gemini 出图,被审核拦截时换 Seedream。

卡片上的「本次生图由 XXX 提供」取的是实际出图的模型,切换后会自动跟着变。

验证

  • test_image_service_tools.py、test_mcp_agent_tools.py 共 73 个测试通过,ruff 无报错。

🤖 Generated with Claude Code

image-service #16 新增 DEFAULT_FALLBACK_MODEL,主力/备用改配置即可切换;
Fusion 不再传 fallback_model,由 image-service 按默认配置决定。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@HyxiaoGe
HyxiaoGe merged commit bde8df0 into master Oct 11, 2026
5 checks passed
@HyxiaoGe
HyxiaoGe deleted the feat/image-fallback-from-service branch October 11, 2026 05:43
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