blob: f962364517aae5c82c7b8941c7d74c9413132f4a (
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
|
import Router from "..";
// import OpenAI from "openai";
async function run() {
const api = Router({ kimi: "" });
// const api = new OpenAI({
// baseURL: "https://api.moonshot.ai/v1",
// apiKey: Bun.env.MOONSHOT_API_KEY,
// });
// const model = "kimi-k2-0711-preview";
// const api = new OpenAI();
// const model = "o4-mini";
// const res = await api.responses.create({ model, input: "Hello!" });
// const res = await api.chat.completions.create({
// model,
// messages: [{ role: "user", content: "Hello there" }],
// });
const res = await api.send("henlo");
console.log({ res });
}
run();
// gemini works
// claude works too.
// it's the openai API thingy
|