From de917196d3602197a90e9eaa7cf7f8b5d0c7718e Mon Sep 17 00:00:00 2001 From: polwex Date: Wed, 23 Jul 2025 07:25:56 +0700 Subject: m --- tests/test.ts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 tests/test.ts (limited to 'tests/test.ts') diff --git a/tests/test.ts b/tests/test.ts new file mode 100644 index 0000000..0b311f6 --- /dev/null +++ b/tests/test.ts @@ -0,0 +1,25 @@ +import Router from "."; +import OpenAI from "openai"; + +async function run() { + // const api = Router({ claude: "" }); + 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 -- cgit v1.2.3