// Probe: legacy live_search tool variant on chat/completions (revealed by 422 message) with sources. import { raw, save, short } from "./lib.ts"; const r = await raw("/chat/completions", { method: "POST", body: JSON.stringify({ model: "grok-4.3", messages: [{ role: "user", content: "One sentence: latest Node.js LTS version?" }], tools: [{ type: "live_search", sources: [{ type: "web" }] }], max_completion_tokens: 300 }), }); console.log(r.status, short(r.body, 800)); save("10-livesearch-chat.json", { status: r.status, body: r.body });