diff --git a/src/index.ts b/src/index.ts index 6762622..a749281 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,3 +2,4 @@ export * from "./app.js" export * from "./env.js" export * from "./load_env.js" export * from "./node_env.js" +export * from "./openai.js" diff --git a/src/openai.test.ts b/src/openai.test.ts new file mode 100644 index 0000000..0196439 --- /dev/null +++ b/src/openai.test.ts @@ -0,0 +1,6 @@ +import { test } from "vitest" +import { openai } from "./openai.js" + +test("openai", ({ expect }) => { + expect(openai).toBeDefined() +}) diff --git a/src/openai.ts b/src/openai.ts new file mode 100644 index 0000000..64af60e --- /dev/null +++ b/src/openai.ts @@ -0,0 +1,4 @@ +import OpenAI from "openai" +import { OPENAI_API_KEY } from "./env.js" + +export const openai: OpenAI = new OpenAI({ apiKey: OPENAI_API_KEY })