Skip to content

Commit

Permalink
feat: disable ai score
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed May 11, 2024
1 parent 0a90202 commit 55a90a4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/api/score/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { getQuery, NextServerResponse } from "~/lib/server-helper"

let openai: OpenAI | undefined
if (process.env.OPENAI_API_KEY) {
openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
})
// openai = new OpenAI({
// apiKey: process.env.OPENAI_API_KEY,
// })
}

const lock = new AsyncLock()
Expand Down Expand Up @@ -60,7 +60,7 @@ ${content}
--------`,
},
],
model: "gpt-4-1106-preview",
model: "gpt-3.5-turbo",
temperature: 0,
response_format: { type: "json_object" },
})
Expand Down

0 comments on commit 55a90a4

Please sign in to comment.