[Docs] Cookbook: match playground docker image resolution to deployment (hw|quant) (#29400)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
zijiexia
2026-06-26 00:56:34 -07:00
committed by GitHub
co-authored by Claude Opus 4.8
parent 999199f9ff
commit c21c2d9421
+3 -1
View File
@@ -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 = [