TypeScript 97.4%
SQL 1%
JavaScript 0.9%
CSS 0.6%
1// Lists all models visible to the key. No secrets in this file; key comes from OPENAI_API_KEY env.2import OpenAI from "openai";3const client = new OpenAI();4const out: any[] = [];5for await (const m of client.models.list()) out.push(m);6out.sort((a, b) => a.id.localeCompare(b.id));7console.log(JSON.stringify({ count: out.length, sample: out[0], models: out.map(m => ({ id: m.id, created: new Date(m.created * 1000).toISOString().slice(0, 10), owned_by: m.owned_by })) }, null, 1));8