feat(opencode): configure vllm-qwen38 provider for local Qwen3.8-27B

This commit is contained in:
Claude
2026-08-24 22:49:50 +00:00
parent 317942e15b
commit 51b81def98
6 changed files with 39 additions and 22 deletions
+4 -3
View File
@@ -462,11 +462,12 @@ def test_resolve_display_model_precedence(monkeypatch):
ai_review._resolve_display_model("MiniMax-M2.7", {"model": "claude-sonnet-5"})
== "headroom/claude-sonnet-5"
)
# Self-hosted models carry provider="local" → routes to the `local`
# provider block in opencode.json (AI workstation on 192.168.1.79:18020).
# Self-hosted models carry provider="vllm-qwen38" → routes to the
# matching provider block in opencode.json (AI workstation on
# 192.168.1.79:18020).
assert (
ai_review._resolve_display_model("MiniMax-M2.7", {"model": "qwen3.8-27b"})
== "local/qwen3.8-27b"
== "vllm-qwen38/qwen3.8-27b"
)
# 3. Env wins over config
monkeypatch.setenv("OPENCODE_MODEL", "headroom/MiniMax-M2.7")