This commit is contained in:
hailin 2025-06-25 23:47:30 +08:00
parent 008bbb3643
commit f90c5361ed
4 changed files with 5 additions and 5 deletions

View File

@ -2,7 +2,7 @@ import { checkApiKey, getServerProfile } from "@/lib/server/server-chat-helpers"
import { ServerRuntime } from "next"
import OpenAI from "openai"
export const runtime: ServerRuntime = "edge"
//export const runtime: ServerRuntime = "edge"
export async function GET() {
try {

View File

@ -9,7 +9,7 @@ import { ChatCompletionCreateParamsBase } from "openai/resources/chat/completion
import { getRuntimeEnv } from "@/lib/runtime-env"
export const runtime: ServerRuntime = "edge"
//export const runtime: ServerRuntime = "edge"
export async function POST(request: Request) {
const json = await request.json()

View File

@ -5,7 +5,7 @@ import { ServerRuntime } from "next"
import OpenAI from "openai"
import { ChatCompletionCreateParamsBase } from "openai/resources/chat/completions.mjs"
export const runtime: ServerRuntime = "edge"
//export const runtime: ServerRuntime = "edge"
export async function POST(request: Request) {
const json = await request.json()

View File

@ -5,7 +5,7 @@ import { ServerRuntime } from "next"
import OpenAI from "openai"
import { ChatCompletionCreateParamsBase } from "openai/resources/chat/completions.mjs"
export const runtime: ServerRuntime = "edge"
//export const runtime: ServerRuntime = "edge"
export async function POST(request: Request) {
const json = await request.json()