nextjs-hackathon-stack 0.1.14 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -35,7 +35,7 @@ const provider = createOpenAI({
|
|
|
35
35
|
apiKey: process.env.AI_API_KEY,
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export const aiModel = provider(process.env.AI_MODEL ?? "
|
|
38
|
+
export const aiModel = provider(process.env.AI_MODEL ?? "minimax/minimax-m2.1");
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## Streaming Pattern
|
package/template/README.md
CHANGED
|
@@ -14,7 +14,7 @@ Full-stack Next.js 15 hackathon starter.
|
|
|
14
14
|
| State | TanStack Query v5 |
|
|
15
15
|
| Forms | React Hook Form + Zod |
|
|
16
16
|
| UI | shadcn/ui + Tailwind CSS v4 |
|
|
17
|
-
| AI | Vercel AI SDK +
|
|
17
|
+
| AI | Vercel AI SDK + MiniMax M2.1 |
|
|
18
18
|
| Testing | Vitest + Playwright |
|
|
19
19
|
|
|
20
20
|
## Getting Started
|
|
@@ -29,7 +29,7 @@ NEXT_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co
|
|
|
29
29
|
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
|
|
30
30
|
DATABASE_URL=postgresql://postgres:[password]@db.your-project-id.supabase.co:5432/postgres
|
|
31
31
|
|
|
32
|
-
# AI — Vercel AI Gateway (default:
|
|
32
|
+
# AI — Vercel AI Gateway (default: MiniMax M2.1)
|
|
33
33
|
# Create gateway at: https://vercel.com > AI > Gateways
|
|
34
34
|
AI_GATEWAY_URL=https://gateway.ai.vercel.app/v1/your-team-id/your-gateway-id
|
|
35
35
|
AI_API_KEY=
|
package/template/_env.example
CHANGED
|
@@ -9,13 +9,12 @@ NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
|
|
|
9
9
|
# Supabase DB — https://supabase.com > Project Settings > Database > Connection string (URI)
|
|
10
10
|
DATABASE_URL=postgresql://postgres:[password]@db.your-project-id.supabase.co:5432/postgres
|
|
11
11
|
|
|
12
|
-
# AI — Vercel AI Gateway (default:
|
|
12
|
+
# AI — Vercel AI Gateway (default: MiniMax M2.1)
|
|
13
13
|
# Create gateway at: https://vercel.com > AI > Gateways
|
|
14
14
|
AI_GATEWAY_URL=https://gateway.ai.vercel.app/v1/your-team-id/your-gateway-id
|
|
15
15
|
AI_API_KEY=
|
|
16
|
-
# Optional: override model (default:
|
|
17
|
-
#
|
|
18
|
-
# AI_MODEL=google/gemini-2.0-flash
|
|
16
|
+
# Optional: override model (default: minimax/minimax-m2.1)
|
|
17
|
+
# AI_MODEL=minimax/minimax-m2.1
|
|
19
18
|
|
|
20
19
|
# =============================================================================
|
|
21
20
|
# OPTIONAL
|