fix: add supports_multimodal to openclaw.json agents.defaults - #1091
Open
RerankerGuo wants to merge 1 commit into
Open
fix: add supports_multimodal to openclaw.json agents.defaults#1091RerankerGuo wants to merge 1 commit into
RerankerGuo wants to merge 1 commit into
Conversation
Closes agentscope-ai#931 - Add supports_multimodal and supports_image to agents.defaults when the selected model supports image input (e.g. qwen3.6-plus, claude-opus-4-6, gpt-5.4, etc.) - Detect model multimodal capability from ModelSpec.Input field - Prevents QwenPaw/CoPaw from proactively stripping media blocks before they reach the LLM Test: gofmt -e (syntax check passed)
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
RerankerGuo
force-pushed
the
fix/issue-931-supports-multimodal
branch
from
July 30, 2026 00:53
113f523 to
c4f124c
Compare
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.
Summary
This PR fixes #931 by adding the missing
supports_multimodalandsupports_imagefields toagents.defaultsin the generatedopenclaw.json.Problem
When Controller generates
openclaw.json, it correctly writesinput: ["text", "image"]in the model provider spec (Layer 1), but does not writesupports_multimodalinagents.defaults(Layer 2). QwenPaw'sreact_agent.py:685reads fromagents.defaults.supports_multimodalto determine multimodal capability — when missing, images are proactively stripped before reaching the LLM.Changes
agentteams-controller/internal/agentconfig/generator.go: After building the config, resolve the selected model's spec and check if itsInputfield contains"image". If so, addsupports_multimodal: trueandsupports_image: truetoagents.defaults.Verification
gofmt -esyntax check passedsupports_multimodal: true