Skip to content

Conversation

pan93412
Copy link
Member

  • feat: ai assistant based on vercel/ai
  • feat(chat): implement paper prompt
  • feat(chat): show reasoning

@pan93412 pan93412 self-assigned this Sep 30, 2025
Copy link
Contributor

vercel bot commented Sep 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
dbplay-app Ready Ready Preview Comment Sep 30, 2025 5:07am

Copy link

linear bot commented Sep 30, 2025

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements an AI-powered assistant for adaptive SQL learning guidance using Vercel AI SDK. The assistant provides personalized coaching through Socratic questioning rather than giving direct answers.

  • Adds Vercel AI SDK dependencies and Anthropic provider for AI chat functionality
  • Implements a comprehensive AI assistant with tools to fetch question data, user submissions, and correct answers
  • Creates an interactive chat interface with reasoning display and quick action buttons

Reviewed Changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated no comments.

Show a summary per file
File Description
package.json Adds AI SDK dependencies (@ai-sdk/anthropic, @ai-sdk/react, ai, streamdown)
lib/auth.rsc.ts Adds checkAuthorizedStatus function for API route authorization
lib/apollo.rsc.ts Refactors to use getAuthToken helper instead of direct header access
gql/graphql.ts Adds new GraphQL queries for question info, user answers, and schema
gql/gql.ts Updates GraphQL type definitions for new queries
app/api/chat/route.ts Implements AI chat API route with tools and educational prompt
app/(app)/challenges/[id]/page.tsx Integrates AI assistant component into challenge page
app/(app)/challenges/[id]/_components/ai-assistant.tsx Creates complete AI assistant UI with chat interface

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pan93412 pan93412 merged commit 9363181 into main Sep 30, 2025
4 checks passed
@pan93412 pan93412 deleted the pan93412/dbp-82-在-frontend-使用-vercelai-實作初級問答型-ai branch September 30, 2025 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant