IKEA assembly, step by step: animated, manual-style 3D guides. Scan any paper manual with Together AI.
TypeScript
Simplify landing close and footer, update Together models
Youssefac8752fd68b0
diff --git a/.env.example b/.env.exampleindex 56e5157..41802c2 100644--- a/.env.example+++ b/.env.example@@ -7,6 +7,7 @@ TOGETHER_API_KEY=# NEXT_PUBLIC_GITHUB_REPO=Luffixos/bygga# Optional: comma separated model lists, tried in order.-# TOGETHER_TEXT_MODEL=openai/gpt-oss-120b,zai-org/GLM-5.2-# TOGETHER_VISION_MODEL=Qwen/Qwen3-VL-32B-Instruct,meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8-# TOGETHER_PLAN_MODEL=openai/gpt-oss-120b,deepseek-ai/DeepSeek-V3.1+# TOGETHER_TEXT_MODEL=openai/gpt-oss-120b,zai-org/GLM-5.3-Flash+# TOGETHER_VISION_MODEL=nvidia/NVIDIA-Nemotron-3.5-Super-VL,MiniMaxAI/MiniMax-M3+# TOGETHER_READ_MODEL=MiniMaxAI/MiniMax-M3,nvidia/NVIDIA-Nemotron-3.5-Super-VL+# TOGETHER_PLAN_MODEL=openai/gpt-oss-120b,zai-org/GLM-5.3-Flashdiff --git a/src/app/api/help/route.ts b/src/app/api/help/route.tsindex f7dfc62..75d90d0 100644--- a/src/app/api/help/route.ts+++ b/src/app/api/help/route.ts@@ -31,7 +31,7 @@ export async function POST(req: Request) {key,models: image ? MODELS.vision : MODELS.text,stream: true,- maxTokens: 700,+ maxTokens: 500,temperature: 0.4,messages: [{ role: "system", content: SYSTEM + "\n\nWhere they are:\n" + context }, ...history, user],});diff --git a/src/app/api/scan/route.ts b/src/app/api/scan/route.tsindex 0020785..e85546c 100644--- a/src/app/api/scan/route.ts+++ b/src/app/api/scan/route.ts@@ -59,7 +59,7 @@ async function scan(key: string, pages: string[], hint: string, send: (o: objecttry {const { text } = await chatText({key,- models: MODELS.vision,+ models: MODELS.read,maxTokens: 2000,temperature: 0,signal,diff --git a/src/app/home.css b/src/app/home.cssindex adc874d..d5296d7 100644--- a/src/app/home.css+++ b/src/app/home.css@@ -813,63 +813,20 @@/* ================= floor ================= */.floor {- display: grid;- grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);- gap: 40px;- align-items: center;- padding: 56px 0 64px;+ padding: 96px 0 40px;+}+.floor-head {+ max-width: 34em;}.floor-sub {margin: 12px 0 0;color: var(--ink-2);- font-size: 16.5px;+ font-size: 17px;letter-spacing: -0.016em;- max-width: 26em;-}-.floor-list {- list-style: none;- padding: 0;- margin: 26px 0 0;-}-.floor-list li {- display: flex;- gap: 16px;- padding: 16px 0;- border-top: 1px solid var(--line-2);- cursor: default;-}-.floor-list li:last-child {- border-bottom: 1px solid var(--line-2);-}-.fl-n {- flex: 0 0 auto;- display: grid;- place-items: center;- width: 28px;- height: 28px;- margin-top: -1px;- border-radius: 50%;- box-shadow: inset 0 0 0 1.6px var(--ink);- background: #fff;- font-size: 13.5px;- font-weight: 600;- transition: background 0.25s;-}-.floor-list li.on .fl-n {- background: var(--accent);-}-.fl-text {- display: flex;- flex-direction: column;- gap: 2px;-}-.fl-text b {- font-size: 16.5px;- font-weight: 600;}-.fl-text span {- color: var(--ink-2);- font-size: 15px;+.floor-art {+ max-width: 600px;+ margin: 40px auto 0;}.floor-art svg {display: block;@@ -879,7 +836,7 @@}.floor-art .co-line {stroke: var(--ink);- stroke-width: 1.3;+ stroke-width: 1.2;fill: none;}.floor-art .co-dot {@@ -888,12 +845,12 @@.floor-art .co-badge {fill: #fff;stroke: var(--ink);- stroke-width: 1.8;+ stroke-width: 1.6;transition: fill 0.25s;}.floor-art .co-n {font-family: var(--font);- font-size: 14px;+ font-size: 13px;font-weight: 600;fill: var(--ink);pointer-events: none;@@ -902,7 +859,7 @@transition: opacity 0.25s;}.floor-art[data-on] .co {- opacity: 0.3;+ opacity: 0.25;}.floor-art[data-on="1"] .co-1,.floor-art[data-on="2"] .co-2,@@ -916,20 +873,58 @@.floor-art[data-on="4"] .co-4 .co-badge {fill: var(--accent);}+.floor-key {+ list-style: none;+ padding: 0;+ margin: 44px 0 0;+ display: grid;+ grid-template-columns: repeat(4, minmax(0, 1fr));+ gap: 32px;+}+.floor-key li {+ display: grid;+ grid-template-columns: auto minmax(0, 1fr);+ column-gap: 12px;+ row-gap: 2px;+ cursor: default;+}+.fl-n {+ grid-row: span 2;+ display: grid;+ place-items: center;+ width: 26px;+ height: 26px;+ border-radius: 50%;+ box-shadow: inset 0 0 0 1.5px var(--ink);+ font-size: 13px;+ font-weight: 600;+ transition: background 0.25s;+}+.floor-key li.on .fl-n {+ background: var(--accent);+}+.floor-key b {+ font-size: 16px;+ font-weight: 600;+ line-height: 26px;+}+.floor-key li > span:last-child {+ color: var(--ink-2);+ font-size: 15px;+}/* ================= footer ================= */.site-foot {- margin-top: 36px;- padding-bottom: 34px;+ margin-top: 96px;+ padding-bottom: 40px;}.foot-ruler {position: relative;- height: 30px;+ height: 28px;background:- repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 10%) top left / 100% 12px no-repeat,- repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 5%) top left / 100% 8px no-repeat,- repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 1%) top left / 100% 5px no-repeat;+ repeating-linear-gradient(90deg, var(--ink-3) 0 1px, transparent 1px 10%) top left / 100% 10px no-repeat,+ repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 2%) top left / 100% 5px no-repeat;border-top: 1px solid var(--line-2);}.foot-ruler::after {@@ -938,45 +933,39 @@right: 0;top: 0;width: 1px;- height: 12px;+ height: 10px;background: var(--ink-3);}.foot-ruler span {position: absolute;top: 14px;- font-size: 10.5px;+ font-size: 11px;line-height: 1;color: var(--ink-3);- transform: translateX(4px);+ white-space: nowrap;+ transform: translateX(-50%);font-variant-numeric: tabular-nums;}+.foot-ruler span:first-child {+ transform: none;+}.foot-ruler span:last-child {- transform: translateX(calc(-100% - 4px));+ transform: translateX(-100%);}.foot-main {display: flex;flex-wrap: wrap;- align-items: flex-start;+ align-items: center;justify-content: space-between;gap: 20px 40px;- padding: 22px 0 26px;-}-.foot-brand p {- margin: 10px 0 0;- font-size: 14.5px;- color: var(--ink-2);- max-width: 28em;+ padding: 40px 0 36px;}.foot-nav {display: flex;flex-wrap: wrap;- gap: 6px 24px;- padding-top: 2px;+ gap: 8px 28px;}.foot-nav a {- display: inline-flex;- align-items: center;- gap: 4px;font-weight: 500;font-size: 14.5px;color: var(--ink-2);@@ -991,16 +980,12 @@flex-wrap: wrap;align-items: baseline;justify-content: space-between;- gap: 10px 30px;- padding-top: 16px;- border-top: 1px solid var(--line);+ gap: 8px 30px;}.foot-base p {margin: 0;- max-width: 680px;font-size: 12.5px;color: var(--ink-3);- line-height: 1.6;}.foot-powered {font-size: 12.5px;@@ -1524,12 +1509,8 @@.pgrid {grid-template-columns: repeat(2, minmax(0, 1fr));}- .floor {- grid-template-columns: 1fr;- }- .floor-art {- order: -1;- max-width: 620px;+ .floor-key {+ grid-template-columns: repeat(2, minmax(0, 1fr));}}@@ -1640,8 +1621,23 @@width: 100%;min-width: 0;}- .foot-ruler span:nth-child(even) {- display: none;+ .floor {+ padding-top: 64px;+ }+ .floor-key {+ grid-template-columns: 1fr;+ gap: 18px;+ }+ .site-foot {+ margin-top: 64px;+ }+ .foot-main {+ flex-direction: column;+ align-items: flex-start;+ padding: 32px 0 28px;+ }+ .foot-nav {+ gap: 8px 22px;}.ws-head {flex-direction: column;diff --git a/src/components/SiteFooter.tsx b/src/components/SiteFooter.tsxindex c227b9f..4411b78 100644--- a/src/components/SiteFooter.tsx+++ b/src/components/SiteFooter.tsx@@ -1,34 +1,32 @@import Link from "next/link";import Logo from "./Logo";import { GITHUB_URL } from "@/lib/site";-import { IArrowUpRight } from "./art/Icons";++const MARKS = [0, 50, 100];export default function SiteFooter() {return (<footer className="site-foot"><div className="foot-ruler" aria-hidden="true">- {Array.from({ length: 11 }, (_, i) => (- <span key={i} style={{ left: `${i * 10}%` }}>- {i * 10}+ {MARKS.map((m) => (+ <span key={m} style={{ left: `${m}%` }}>+ {m === 100 ? "100 cm" : m}</span>))}</div><div className="foot-main">- <div className="foot-brand">- <Logo size={22} />- <p>Step by step assembly for IKEA furniture, drawn like the paper manual.</p>- </div>+ <Logo size={22} /><nav className="foot-nav" aria-label="Footer"><Link href="/browse">All guides</Link><Link href="/builds">Workshop</Link><Link href="/scan">Scan a manual</Link><a href={GITHUB_URL} target="_blank" rel="noreferrer">- GitHub <IArrowUpRight size={13} />+ GitHub</a></nav></div><div className="foot-base">- <p>Not affiliated with or endorsed by IKEA. Product names are trademarks of Inter IKEA Systems B.V. Keep the paper manual nearby.</p>+ <p>Not affiliated with IKEA. Product names are trademarks of Inter IKEA Systems B.V.</p><a className="foot-powered" href="https://www.together.ai" target="_blank" rel="noreferrer">Powered by <span>Together AI</span></a>diff --git a/src/components/guide/HelpSheet.tsx b/src/components/guide/HelpSheet.tsxindex 2bec080..baa6013 100644--- a/src/components/guide/HelpSheet.tsx+++ b/src/components/guide/HelpSheet.tsx@@ -154,60 +154,65 @@ export default function HelpSheet({ plan, index, ai, onClose, focusMissing }: {))}</div>- <div className="ask-head">- <ISparkle size={18} />- <b>Ask about this step</b>- <span className="muted">{ai ? "Answers by Together AI" : "Needs a Together AI key"}</span>- </div>- {msgs.length === 0 && ai && (- <div className="ask-suggest">- {["The panels don't line up", "Which screw goes where?", "Is it normal to have parts left over?"].map((s) => (- <button key={s} className="chip" onClick={() => ask(s)}>- {s}- </button>- ))}- </div>+ {ai && (+ <>+ <div className="ask-head">+ <ISparkle size={18} />+ <b>Ask about this step</b>+ <span className="muted">Answers by Together AI</span>+ </div>+ {msgs.length === 0 && (+ <div className="ask-suggest">+ {["The panels don't line up", "Which screw goes where?", "Is it normal to have parts left over?"].map((s) => (+ <button key={s} className="chip" onClick={() => ask(s)}>+ {s}+ </button>+ ))}+ </div>+ )}+ <div className="msgs">+ {msgs.map((m, i) => (+ <motion.div key={i} className={"msg " + m.role} initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }}>+ {/* eslint-disable-next-line @next/next/no-img-element */}+ {m.image && <img src={m.image} alt="Your photo" />}+ {m.content ? <p>{m.content}</p> : <span className="typing">Thinking</span>}+ </motion.div>+ ))}+ </div>+ </>)}- <div className="msgs">- {msgs.map((m, i) => (- <motion.div key={i} className={"msg " + m.role} initial={{ opacity: 0, y: 8 }} animate={{ opacity: 1, y: 0 }}>- {/* eslint-disable-next-line @next/next/no-img-element */}- {m.image && <img src={m.image} alt="Your photo" />}- {m.content ? <p>{m.content}</p> : <span className="typing">Thinking</span>}- </motion.div>- ))}- </div>- {!ai && <p className="note">Live answers switch on when the server has a Together AI key. The quick answers above always work.</p>}</div>- <form- className="ask-bar"- onSubmit={(e) => {- e.preventDefault();- ask(q);- }}- >- <button type="button" className="btn round small" onClick={() => file.current?.click()} disabled={!ai || busy} aria-label="Which part is this? Take a photo" title="Which part is this?">- <ICamera />- </button>- <input ref={inputRef} value={q} onChange={(e) => setQ(e.target.value)} placeholder={ai ? "Type your question" : "Live answers are off"} disabled={!ai} aria-label="Your question" />- <button type="submit" className="btn round small primary" disabled={!ai || busy || !q.trim()} aria-label="Send">- <ISend />- </button>- <input- ref={file}- type="file"- accept="image/*"- capture="environment"- hidden- onChange={async (e) => {- const f = e.target.files?.[0];- e.target.value = "";- if (!f) return;- const img = await shrink(f);- ask("Which part is this?", img);+ {ai && (+ <form+ className="ask-bar"+ onSubmit={(e) => {+ e.preventDefault();+ ask(q);}}- />- </form>+ >+ <button type="button" className="btn round small" onClick={() => file.current?.click()} disabled={busy} aria-label="Which part is this? Take a photo" title="Which part is this?">+ <ICamera />+ </button>+ <input ref={inputRef} value={q} onChange={(e) => setQ(e.target.value)} placeholder="Type your question" aria-label="Your question" />+ <button type="submit" className="btn round small primary" disabled={busy || !q.trim()} aria-label="Send">+ <ISend />+ </button>+ <input+ ref={file}+ type="file"+ accept="image/*"+ capture="environment"+ hidden+ onChange={async (e) => {+ const f = e.target.files?.[0];+ e.target.value = "";+ if (!f) return;+ const img = await shrink(f);+ ask("Which part is this?", img);+ }}+ />+ </form>+ )}</motion.aside></motion.div>);diff --git a/src/components/home/FloorFeatures.tsx b/src/components/home/FloorFeatures.tsxindex 36c0594..5b174e0 100644--- a/src/components/home/FloorFeatures.tsx+++ b/src/components/home/FloorFeatures.tsx@@ -20,10 +20,10 @@ function box(x0: number, x1: number, y0: number, y1: number, z0: number, z1: num}const FEATURES = [- { title: "Say “next”", text: "Voice control moves the steps along while your hands hold the panels." },- { title: "The screen stays on", text: "No tapping with dusty fingers. It won't dim halfway through a step." },- { title: "Which screw is this?", text: "Snap a photo of a loose part and we'll tell you where it goes." },- { title: "Turn it around", text: "Drag any drawing to see it from the side, the back or underneath." },+ { title: "Say “next”", text: "Voice moves the steps along." },+ { title: "Screen stays on", text: "It won't dim mid step." },+ { title: "Which screw is this?", text: "Snap it, we'll name it." },+ { title: "Turn it around", text: "Drag to see any side." },];const PHONE = { x0: -66, x1: 66, y0: 18, y1: 246, z0: 0, z1: 12 };@@ -32,39 +32,28 @@ const STAND = box(-48, 48, 0, 18, -10, 34);const PH = box(PHONE.x0, PHONE.x1, PHONE.y0, PHONE.y1, PHONE.z0, PHONE.z1);const SCREEN = P([PHONE.x0, PHONE.y1, PHONE.z1]);const LABEL = P([-4, 34, -150]);+const SUN = P([46, 226, 12]);+const ARC = P([0, 92, 12]);-// callout anchors (target) and badge positionsconst CALLOUTS: { n: number; at: [number, number]; badge: [number, number] }[] = [- { n: 1, at: [70, 112], badge: [40, 64] },- { n: 2, at: [P([46, 226, 12])[0], P([46, 226, 12])[1]], badge: [384, 120] },- { n: 3, at: [454, 410], badge: [526, 352] },- { n: 4, at: [P([0, 92, 12])[0] - 2, P([0, 92, 12])[1] + 6], badge: [124, 300] },+ { n: 1, at: [74, 114], badge: [44, 70] },+ { n: 2, at: [SUN[0], SUN[1]], badge: [392, 126] },+ { n: 3, at: [470, 404], badge: [528, 360] },+ { n: 4, at: [ARC[0] - 2, ARC[1] + 6], badge: [130, 302] },];export default function FloorFeatures() {const [on, setOn] = useState<number | null>(null);return (<section className="floor">- <div className="floor-copy">+ <div className="floor-head"><h2 className="sec-title">Works with your hands full</h2>- <p className="floor-sub">Made for building on the floor, with a phone propped against the box.</p>- <ol className="floor-list">- {FEATURES.map((f, i) => (- <li key={f.title} className={on === i + 1 ? "on" : ""} onMouseEnter={() => setOn(i + 1)} onMouseLeave={() => setOn(null)}>- <span className="fl-n">{i + 1}</span>- <span className="fl-text">- <b>{f.title}</b>- <span>{f.text}</span>- </span>- </li>- ))}- </ol>+ <p className="floor-sub">Made for the floor, with your phone propped against the box.</p></div><div className="floor-art" data-on={on ?? undefined}>- <svg viewBox="0 0 600 460" aria-hidden="true">- {/* ground shadow */}- <ellipse cx="320" cy="392" rx="230" ry="30" fill="#efede7" />+ <svg viewBox="0 40 600 410" aria-hidden="true">+ <ellipse cx="320" cy="394" rx="210" ry="24" fill="#efede7" />{/* the flat pack box lying behind */}<g strokeLinejoin="round" stroke="var(--ink)" strokeWidth="2.2">@@ -74,82 +63,52 @@ export default function FloorFeatures() {</g><g transform={`translate(${LABEL[0]} ${LABEL[1]}) matrix(${C} ${S} ${-C} ${S} 0 0)`}><rect x="0" y="-14" width="58" height="28" rx="3" fill="var(--accent)" stroke="var(--ink)" strokeWidth="1.8" />- <path d="M8 -4 h30 M8 4 h20" stroke="var(--ink)" strokeWidth="2" strokeLinecap="round" /></g>- {/* stand */}+ {/* stand and phone */}<g strokeLinejoin="round" stroke="var(--ink)" strokeWidth="2.2"><path d={STAND.left} fill="#fff" /><path d={STAND.right} fill="#efede7" /><path d={STAND.top} fill="#fff" />- </g>-- {/* phone */}- <g strokeLinejoin="round" stroke="var(--ink)" strokeWidth="2.2"><path d={PH.right} fill="#efede7" /><path d={PH.top} fill="#fff" /><path d={PH.left} fill="#fff" /></g>- <g transform={`translate(${SCREEN[0]} ${SCREEN[1]}) matrix(${C} ${S} 0 1 0 0)`} className="fa-screen">+ <g transform={`translate(${SCREEN[0]} ${SCREEN[1]}) matrix(${C} ${S} 0 1 0 0)`}><rect x="8" y="8" width="116" height="212" rx="12" fill="#fff" stroke="var(--ink)" strokeWidth="1.6" />- <text x="18" y="30" fontSize="10.5" fontWeight="600" fill="var(--ink-2)" fontFamily="var(--font)">- Step 4 of 9- </text>- <g className="fa-sun">+ <g><circle cx="110" cy="26" r="3.4" fill="none" stroke="var(--ink)" strokeWidth="1.5" /><path d="M110 18.5v2M110 31.5v2M102.5 26h2M115.5 26h2M104.7 20.7l1.4 1.4M113.9 29.9l1.4 1.4M104.7 31.3l1.4-1.4M113.9 22.1l1.4-1.4" stroke="var(--ink)" strokeWidth="1.3" strokeLinecap="round" /></g>- {/* mini KALLAX */}<g strokeLinejoin="round" stroke="var(--ink)" strokeWidth="1.6"><path d="M40 92 L76 71 L102 86 L66 107 Z" fill="#fff" /><path d="M66 107 L102 86 L102 132 L66 153 Z" fill="#efede7" /><path d="M40 92 L66 107 L66 153 L40 138 Z" fill="#fff" /><path d="M53 99.5 V145.5 M40 115 L66 130" fill="none" /></g>- <g className="fa-rot">- <path d="M32 160 Q66 182 106 154" fill="none" stroke="var(--ink)" strokeWidth="1.8" strokeLinecap="round" />- <path d="M101 149 L109 152 L104 159" fill="none" stroke="var(--ink)" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" />- </g>- <rect x="18" y="186" width="96" height="4" rx="2" fill="#e8e6e0" stroke="none" />- <rect x="18" y="186" width="43" height="4" rx="2" fill="var(--ink)" stroke="none" />- <rect x="18" y="196" width="96" height="16" rx="8" fill="var(--ink)" stroke="none" />- <text x="66" y="207.5" fontSize="9.5" fontWeight="600" fill="#fff" textAnchor="middle" fontFamily="var(--font)">- Next- </text>+ <path d="M32 160 Q66 182 106 154 M101 149 L109 152 L104 159" fill="none" stroke="var(--ink)" strokeWidth="1.8" strokeLinecap="round" strokeLinejoin="round" />+ <rect x="18" y="196" width="96" height="16" rx="8" fill="var(--ink)" /></g>{/* speech bubble */}- <g className="fa-voice">- <path d="M58 112 h92 a14 14 0 0 1 14 14 v12 a14 14 0 0 1 -14 14 h-58 l-16 14 l2 -14 h-20 a14 14 0 0 1 -14 -14 v-12 a14 14 0 0 1 14 -14 z" fill="#fff" stroke="var(--ink)" strokeWidth="2.2" strokeLinejoin="round" />- <text x="104" y="138" fontSize="17" fontWeight="600" textAnchor="middle" fill="var(--ink)" fontFamily="var(--font)">- “Next”- </text>- <path d="M174 118 q8 14 0 28 M184 110 q14 22 0 44" fill="none" stroke="var(--ink)" strokeWidth="2" strokeLinecap="round" />- </g>+ <path d="M62 112 h88 a14 14 0 0 1 14 14 v12 a14 14 0 0 1 -14 14 h-56 l-16 14 l2 -14 h-18 a14 14 0 0 1 -14 -14 v-12 a14 14 0 0 1 14 -14 z" fill="#fff" stroke="var(--ink)" strokeWidth="2.2" strokeLinejoin="round" />+ <text x="106" y="138" fontSize="17" fontWeight="600" textAnchor="middle" fill="var(--ink)" fontFamily="var(--font)">+ “Next”+ </text>+ <path d="M178 120 q8 12 0 24" fill="none" stroke="var(--ink)" strokeWidth="2" strokeLinecap="round" />- {/* loose hardware on the floor */}- <g className="fa-hw" stroke="var(--ink)" strokeWidth="2" strokeLinejoin="round" strokeLinecap="round">- <g transform="translate(430 404) rotate(28)">- <rect x="-4" y="-7" width="11" height="14" rx="2.5" fill="#fff" />- <path d="M7 -3.5 H40 L44 0 L40 3.5 H7 Z" fill="#fff" />- <path d="M14 -3.5 l2 7 M20 -3.5 l2 7 M26 -3.5 l2 7 M32 -3.5 l2 7" fill="none" strokeWidth="1.4" />- </g>- <g transform="translate(494 392) rotate(-22)">- <rect x="-18" y="-5.5" width="36" height="11" rx="5.5" fill="#f6efd2" />- <path d="M-11 -5.5 v11 M-4 -5.5 v11 M3 -5.5 v11 M10 -5.5 v11" fill="none" strokeWidth="1.2" />- </g>- <g transform="translate(516 426)">- <ellipse cx="0" cy="0" rx="15" ry="9" fill="#fff" />- <path d="M-7 -1.5 L6 2.5" fill="none" strokeWidth="2.4" />- </g>+ {/* one loose screw */}+ <g transform="translate(446 402) rotate(24)" stroke="var(--ink)" strokeWidth="2" strokeLinejoin="round" strokeLinecap="round">+ <rect x="-4" y="-7" width="11" height="14" rx="2.5" fill="#fff" />+ <path d="M7 -3.5 H40 L44 0 L40 3.5 H7 Z" fill="#fff" />+ <path d="M15 -3.5 l2 7 M22 -3.5 l2 7 M29 -3.5 l2 7" fill="none" strokeWidth="1.4" /></g>- {/* callouts */}{CALLOUTS.map((c) => (<g key={c.n} className={"co co-" + c.n}><path d={`M${c.badge[0]} ${c.badge[1]} L${c.at[0]} ${c.at[1]}`} className="co-line" />- <circle cx={c.at[0]} cy={c.at[1]} r="3.4" className="co-dot" />- <circle cx={c.badge[0]} cy={c.badge[1]} r="15" className="co-badge" />+ <circle cx={c.at[0]} cy={c.at[1]} r="3" className="co-dot" />+ <circle cx={c.badge[0]} cy={c.badge[1]} r="14" className="co-badge" /><text x={c.badge[0]} y={c.badge[1] + 5} textAnchor="middle" className="co-n">{c.n}</text>@@ -157,6 +116,16 @@ export default function FloorFeatures() {))}</svg></div>++ <ol className="floor-key">+ {FEATURES.map((f, i) => (+ <li key={f.title} className={on === i + 1 ? "on" : ""} onMouseEnter={() => setOn(i + 1)} onMouseLeave={() => setOn(null)}>+ <span className="fl-n">{i + 1}</span>+ <b>{f.title}</b>+ <span>{f.text}</span>+ </li>+ ))}+ </ol></section>);}diff --git a/src/lib/together.ts b/src/lib/together.tsindex 55ed4cb..329214e 100644--- a/src/lib/together.ts+++ b/src/lib/together.ts@@ -3,11 +3,20 @@ import "server-only";const BASE = "https://api.together.xyz/v1";export const MODELS = {- plan: (process.env.TOGETHER_PLAN_MODEL ?? "openai/gpt-oss-120b,deepseek-ai/DeepSeek-V3.1,zai-org/GLM-5.2,meta-llama/Llama-3.3-70B-Instruct-Turbo").split(","),- text: (process.env.TOGETHER_TEXT_MODEL ?? "openai/gpt-oss-120b,zai-org/GLM-5.2,deepseek-ai/DeepSeek-V3.1,meta-llama/Llama-3.3-70B-Instruct-Turbo").split(","),- vision: (process.env.TOGETHER_VISION_MODEL ?? "Qwen/Qwen3-VL-32B-Instruct,Qwen/Qwen2.5-VL-72B-Instruct,meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8").split(","),+ // laying out a scanned manual: the strongest reasoning we can afford per scan+ plan: list(process.env.TOGETHER_PLAN_MODEL, "openai/gpt-oss-120b,zai-org/GLM-5.3-Flash,Qwen/Qwen3.7-Plus"),+ // product lookups and the "Stuck?" chat: cheap and quick+ text: list(process.env.TOGETHER_TEXT_MODEL, "openai/gpt-oss-120b,zai-org/GLM-5.3-Flash,Qwen/Qwen3.8-Flash"),+ // box labels and loose parts+ vision: list(process.env.TOGETHER_VISION_MODEL, "nvidia/NVIDIA-Nemotron-3.5-Super-VL,MiniMaxAI/MiniMax-M3,Qwen/Qwen3.5-9B"),+ // reading manual pages, where small print matters most+ read: list(process.env.TOGETHER_READ_MODEL, "MiniMaxAI/MiniMax-M3,nvidia/NVIDIA-Nemotron-3.5-Super-VL,Qwen/Qwen3.5-9B"),};+function list(env: string | undefined, fallback: string) {+ return (env?.trim() || fallback).split(",").map((m) => m.trim()).filter(Boolean);+}+export function hasKey() {return !!process.env.TOGETHER_API_KEY?.trim();}