Repository navigation
[skip eval] refactor: 生图备用模型交给 image-service 配置 - #383
Merged
Merged
Conversation
image-service #16 新增 DEFAULT_FALLBACK_MODEL,主力/备用改配置即可切换; Fusion 不再传 fallback_model,由 image-service 按默认配置决定。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
改动
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