Skip to content

Commit

Permalink
Fixed default AI provider string (empty, instead of "openai").
Browse files Browse the repository at this point in the history
  • Loading branch information
igoramadas committed Jun 19, 2024
1 parent 28a51ea commit 1eec24e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/api/users.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ router.post("/:userId/preferences", async (req: express.Request, res: express.Re

if (preferenceChanged("aiProvider")) {
if (!user.isPro) {
req.body.aiProvider = "openai"
req.body.aiProvider = ""
}
setOrDelete("aiProvider", "openai")
setOrDelete("aiProvider", "")
}

// AI prompt requires special moderation.
Expand Down

0 comments on commit 1eec24e

Please sign in to comment.