Skip to content

Commit

Permalink
feat: add vercel edge function support (#53)
Browse files Browse the repository at this point in the history
ref: #52
  • Loading branch information
fanweixiao authored Apr 13, 2024
1 parent 0624b56 commit ae64261
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/chat/route.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { createParser, ParsedEvent, ReconnectInterval } from 'eventsource-parser'
import { NextRequest, NextResponse } from 'next/server'

export const runtime = 'edge';

export interface Message {
role: string
content: string
Expand Down

0 comments on commit ae64261

Please sign in to comment.