SPB Git forge

spb/polyllm

Public
15commits 1branches 0releases
2.2 MBsize
maindefault branch
13 days agolast push
TypeScript 97.4% SQL 1% JavaScript 0.9% CSS 0.6%
545 B · 9 lines typescript
Raw Blame History
1// Probe: legacy live_search tool variant on chat/completions (revealed by 422 message) with sources.2import { raw, save, short } from "./lib.ts";3const r = await raw("/chat/completions", {4  method: "POST",5  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 }),6});7console.log(r.status, short(r.body, 800));8save("10-livesearch-chat.json", { status: r.status, body: r.body });9