Skip to content

The agent that grows with you

fix(opencode-go): set supports_vision_tool_messages=False for Xiaomi MiMo backend

Yuan Chenglu (袁成路)6a0f519d1ebb
diff --git a/plugins/model-providers/opencode-zen/__init__.py b/plugins/model-providers/opencode-zen/__init__.py
index 28aacf59560..1a3be518293 100644
--- a/plugins/model-providers/opencode-zen/__init__.py
+++ b/plugins/model-providers/opencode-zen/__init__.py
@@ -115,6 +115,11 @@ opencode_go = OpenCodeGoProfile(
name="opencode-go", aliases=("opencode_go", "go", "opencode-go-sub"), env_vars=("OPENCODE_GO_API_KEY",),
base_url="https://opencode.ai/zen/go/v1", default_headers=dict(_ATTRIBUTION_HEADERS),
default_aux_model="glm-5",
+ # opencode-go proxies to Xiaomi MiMo for mimo-* models; MiMo rejects
+ # list-type tool content with "text is not set" (400). The direct
+ # xiaomi profile already sets supports_vision_tool_messages=False;
+ # propagate the same safety here for the relay path.
+ supports_vision_tool_messages=False,
)
register_provider(opencode_zen)