TypeScript 97.4%
SQL 1%
JavaScript 0.9%
CSS 0.6%
1// Dumps raw metadata for every model (all fields) + GET /v1/models/{id} for one model to see extra fields.2import OpenAI from "openai";3const client = new OpenAI();4const all: any[] = [];5for await (const m of client.models.list()) all.push(m);6all.sort((a, b) => a.id.localeCompare(b.id));7const keys = new Set<string>(); all.forEach(m => Object.keys(m).forEach(k => keys.add(k)));8console.log("FIELDS:", [...keys].join(","));9console.log("WITH shutdown_date:", all.filter(m => m.shutdown_date).map(m => `${m.id}=${m.shutdown_date}`).join(" "));10const one = await client.models.retrieve("gpt-5.5");11console.log("RETRIEVE gpt-5.5:", JSON.stringify(one));12const two = await client.models.retrieve("gpt-6-astra");13console.log("RETRIEVE gpt-6-astra:", JSON.stringify(two));14// print any non-standard fields15for (const m of all) { const extra = Object.fromEntries(Object.entries(m).filter(([k]) => !["id","object","created","owned_by"].includes(k))); if (Object.keys(extra).length) console.log(m.id, JSON.stringify(extra)); }16