import { post, short } from "./lib.ts"; const r = await post("/chat/completions", { model: "glm-5-2", messages: [{ role: "user", content: "Say OK." }], max_tokens: 30, reasoning_effort: "minimal" }); const b: any = r.body; const c = b?.choices?.[0]?.message?.content; console.log("glm minimal", r.status, r.status === 200 ? `shape=${Array.isArray(c) ? "arr(" + c.map((x: any) => x.type).join(",") + ")" : typeof c} ct=${b.usage?.completion_tokens}` : short(b, 200)); const v = await post("/chat/completions", { model: "voxtral-small-latest", messages: [{ role: "user", content: "Say OK." }], max_tokens: 10, reasoning_effort: "high" }); console.log("voxtral reasoning_effort", v.status, short(v.body, 150));