Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Will this work with React/Nextjs? #1

Answered by thejamescollins
quacrobat asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there @quacrobat,

This library is intended for server-side code.

OpenAI ]does not recommend](https://github.com/openai/openai-node#openai-nodejs-library) using JavaScript API client code on the client side due to exposing secret API keys.

We haven't used this library ourselves with NextJS, but we have used it in a NodeJS app and a Typescript app.

I hope that helps,

James

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@quacrobat
Comment options

Answer selected by thejamescollins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants