-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(nx-dev): move openai call to edge function #18747
feat(nx-dev): move openai call to edge function #18747
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
1c51c3f
to
dfcb380
Compare
5146fca
to
aaa073b
Compare
6ca2a3b
to
fd57c75
Compare
fd57c75
to
1e04ff3
Compare
a2cc439
to
de57d37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
{
"code": "42501",
"details": null,
"hint": null,
"message": "new row violates row-level security policy for table \"user_queries\""
}
I got this error when running the preview.
Is this something we should handle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ndcunningham RE: supabase: I don't think we need to handle the Supabase stuff, because @FrozenPandaz added the anon key there, which is ok to be revealed? |
de57d37
to
c36c59c
Compare
@ndcunningham the feedback error is expected, because we changed some things with permissions. Next week I'll work on the new feedback functions, and it will be fixed! |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Moved the OpenAI API calls into a Next.js Edge function, so that the API key is not revealed to the client!
test it here: https://nx-dev-git-fork-mandarini-feat-move-openai-call-to-edge-nrwl.vercel.app/ai