Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
botway(core): start working with ai sdk 🤖
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Jul 9, 2023
1 parent ae22877 commit 9ed493b
Show file tree
Hide file tree
Showing 5 changed files with 484 additions and 141 deletions.
41 changes: 0 additions & 41 deletions core/app/api/ai/generator/route.ts

This file was deleted.

30 changes: 0 additions & 30 deletions core/app/api/ai/route.ts

This file was deleted.

4 changes: 2 additions & 2 deletions core/middleware.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { createMiddlewareClient } from "@supabase/auth-helpers-nextjs";
import { NextResponse } from "next/server";
import { NextRequest, NextResponse } from "next/server";

export async function middleware(req: any) {
export async function middleware(req: NextRequest) {
const res = NextResponse.next();

const supabase = createMiddlewareClient({ req, res });
Expand Down
7 changes: 4 additions & 3 deletions core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"@supabase/auth-helpers-nextjs": "^0.7.2",
"@supabase/supabase-js": "^2.26.0",
"@tanstack/react-query": "^4.29.19",
"ai": "^2.1.17",
"ajv": "^8.12.0",
"autoprefixer": "10.4.14",
"bcryptjs": "^2.4.3",
Expand All @@ -27,9 +28,9 @@
"formik": "^2.4.2",
"graphql": "^16.7.1",
"jose": "^4.14.4",
"marked": "^5.1.0",
"marked": "^5.1.1",
"mini-svg-data-uri": "^1.4.4",
"next": "13.4.8",
"next": "13.4.9",
"octokit": "^2.1.0",
"postcss": "8.4.25",
"postcss-nested": "^6.0.1",
Expand All @@ -47,7 +48,7 @@
"@tailwindcss/typography": "^0.5.9",
"@types/bcryptjs": "^2.4.2",
"@types/marked": "^5.0.0",
"@types/node": "^20.4.0",
"@types/node": "^20.4.1",
"@types/react": "18.2.14",
"@types/react-dom": "18.2.6",
"@types/slug": "^5.0.3",
Expand Down
Loading

0 comments on commit 9ed493b

Please sign in to comment.