summaryrefslogtreecommitdiff
path: root/debug.ts
blob: 1b1312d18d8e624981e9c18f80d7a8347c7e0a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import OpenAI from "openai";
import Claude from "@anthropic-ai/sdk";
import { GoogleGenAI } from "@google/genai";
async function oai() {
  const openai = new OpenAI();

  const list = await openai.models.list();
  for await (const model of list) {
    console.log({ model });
  }
}

async function cld() {
  const claude = new Claude();
  const list = await claude.models.list();
  for await (const model of list) {
    console.log({ model });
  }
}

async function gem() {
  const gemini = new GoogleGenAI({ apiKey: Bun.env["GEMINI_API_KEY"]! });
  const list = await gemini.models.list();
  for await (const model of list) {
    console.log({ model });
  }
}
// oai();
// cld();
// gem();