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%
941 B · 9 lines typescript
Raw Blame History
1// Aliases + models listed by GET /v1/models whose shutdown_date has passed: do they still answer?2import { client, attempt, save, summarizeResponse } from "./lib";3const out: any[] = [];4for (const model of ["gpt-5.6", "gpt-5-chat-latest", "gpt-5.1-chat-latest", "gpt-5.2-chat-latest", "gpt-5-codex", "gpt-5.1-codex", "o3-deep-research", "o1", "gpt-5-search-api", "gpt-4o-search-preview", "gpt-5.5-pro", "gpt-4.1-nano"]) {5  out.push(await attempt(`alias:${model}`, () => client.responses.create({ model, input: "Reply with exactly one word: pong", max_output_tokens: 32 } as any).then(summarizeResponse)));6}7out.push(await attempt("chat:gpt-5-search-api", () => client.chat.completions.create({ model: "gpt-5-search-api", messages: [{ role: "user", content: "Reply with one word: pong" }], max_completion_tokens: 32 } as any).then(r => ({ model: r.model, text: r.choices[0].message.content, usage: r.usage }))));8save("12-aliases", out);9