From c21c2d94216e66938cc25f598cee89a1ff1be53e Mon Sep 17 00:00:00 2001 From: zijiexia <37504505+zijiexia@users.noreply.github.com> Date: Fri, 26 Jun 2026 00:56:34 -0700 Subject: [PATCH] [Docs] Cookbook: match playground docker image resolution to deployment (hw|quant) (#29400) Co-authored-by: Claude Opus 4.8 --- docs_new/src/snippets/_playground.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs_new/src/snippets/_playground.jsx b/docs_new/src/snippets/_playground.jsx index a15874ab8..34dffa7ba 100644 --- a/docs_new/src/snippets/_playground.jsx +++ b/docs_new/src/snippets/_playground.jsx @@ -1074,7 +1074,9 @@ export const Playground = ({ config }) => { } let cmd; if (mode === "docker") { - const image = (config.dockerImages && config.dockerImages[sel.hw]) || "lmsysorg/sglang:dev"; + // Image keyed by `hw|quant` (most specific) then `hw`; `:dev` if unmapped (matches _deployment.jsx). + const di = config.dockerImages || {}; + const image = di[`${sel.hw}|${sel.quant}`] || di[sel.hw] || "lmsysorg/sglang:dev"; const portFlag = f.find((x) => x.split(/[\s=]/)[0] === "--port"); const servePort = portFlag ? portFlag.slice("--port".length).trim() : "{{PORT}}"; const dockerLines = [