Skip to content

Commit

Permalink
🧪 TypeError: API.Completions is not a constructor (#9)
Browse files Browse the repository at this point in the history
Sentry v8.13.0
  • Loading branch information
NatoBoram authored Jun 28, 2024
1 parent c2104e2 commit 14d8e26
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 6 additions & 0 deletions src/openai.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { test } from "vitest"
import { openai } from "./openai.js"

test("openai", ({ expect }) => {
expect(openai).toBeDefined()
})
4 changes: 4 additions & 0 deletions src/openai.ts
Original file line number Diff line number Diff line change
@@ -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 })

0 comments on commit 14d8e26

Please sign in to comment.