Skip to content
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 all the querying logic to edge function #18834

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

mandarini
Copy link
Member

@mandarini mandarini commented Aug 25, 2023

TODO:

  • Need to fix error handling. Now all errors show as 500. Need to propagate the message
  • Make sure all works as expected
  • Move Supabase feedback requests to another edge function
  • Remove Supabase feedback requests
  • Implement streaming
  • Add the warning box
  • Add the sources
  • Temporarily disable moderation to see if results are faster

Test here

@mandarini mandarini self-assigned this Aug 25, 2023
@vercel
Copy link

vercel bot commented Aug 25, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nx-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 31, 2023 0:43am

@mandarini mandarini force-pushed the feat/move-ai-to-edge branch 3 times, most recently from 0f65af1 to 4079f20 Compare August 25, 2023 09:35
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch from 4079f20 to e1a426e Compare August 28, 2023 12:39
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch from e1a426e to 56e13fe Compare August 28, 2023 13:24
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch from 27ce147 to cccdbcb Compare August 28, 2023 14:03
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch 2 times, most recently from cea5f33 to 45a584f Compare August 28, 2023 15:26
@mandarini mandarini marked this pull request as ready for review August 28, 2023 15:27
@mandarini mandarini requested review from FrozenPandaz, a team and vsavkin as code owners August 28, 2023 15:27
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch from 45a584f to 3aa4beb Compare August 29, 2023 08:45
@mandarini mandarini requested review from a team, AgentEnder and jaysoo as code owners August 29, 2023 12:23
nx-dev/nx-dev/pages/api/query-ai-handler.ts Outdated Show resolved Hide resolved
nx-dev/nx-dev/pages/api/query-ai-handler.ts Outdated Show resolved Hide resolved
nx-dev/nx-dev/pages/api/query-ai-handler.ts Outdated Show resolved Hide resolved
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch 2 times, most recently from 6c90160 to a285673 Compare August 30, 2023 16:56
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch 2 times, most recently from 288a6f3 to 05c8cd8 Compare August 30, 2023 17:24
@mandarini mandarini requested a review from jaysoo August 30, 2023 17:27
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch from 05c8cd8 to c3726e5 Compare August 30, 2023 17:31
Copy link
Member

@jaysoo jaysoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more comment otherwise LGTM

@mandarini mandarini force-pushed the feat/move-ai-to-edge branch from c3726e5 to 309053f Compare August 31, 2023 12:29
@mandarini mandarini force-pushed the feat/move-ai-to-edge branch from 309053f to 3b39925 Compare August 31, 2023 12:30
Copy link
Collaborator

@FrozenPandaz FrozenPandaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@FrozenPandaz FrozenPandaz merged commit 1abe35c into nrwl:master Aug 31, 2023
@github-actions
Copy link

github-actions bot commented Sep 6, 2023

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants