Skip to content

Commit 30b2e2e

Browse files
Add openrouter/z-ai/glm-5.1 to resolve_model_config (fixes #2768) (#2769)
Co-authored-by: openhands <openhands@all-hands.dev>
1 parent b826597 commit 30b2e2e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/run-eval/resolve_model_config.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,16 @@ def _sigterm_handler(signum: int, _frame: object) -> None:
242242
"disable_vision": True,
243243
},
244244
},
245+
"glm-5.1": {
246+
"id": "glm-5.1",
247+
"display_name": "GLM-5.1",
248+
"llm_config": {
249+
"model": "litellm_proxy/openrouter/z-ai/glm-5.1",
250+
"temperature": 0.0,
251+
# OpenRouter glm-5.1 is text-only despite LiteLLM reporting vision support
252+
"disable_vision": True,
253+
},
254+
},
245255
"qwen3-coder-next": {
246256
"id": "qwen3-coder-next",
247257
"display_name": "Qwen3 Coder Next",

tests/github_workflows/test_resolve_model_config.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,16 @@ def test_glm_5_config():
268268
assert model["llm_config"]["disable_vision"] is True
269269

270270

271+
def test_glm_5_1_config():
272+
"""Test that glm-5.1 has correct configuration."""
273+
model = MODELS["glm-5.1"]
274+
275+
assert model["id"] == "glm-5.1"
276+
assert model["display_name"] == "GLM-5.1"
277+
assert model["llm_config"]["model"] == "litellm_proxy/openrouter/z-ai/glm-5.1"
278+
assert model["llm_config"]["disable_vision"] is True
279+
280+
271281
# Tests for preflight check functionality
272282

273283

0 commit comments

Comments
 (0)