This commit is contained in:
parent
2d757057c1
commit
5e475801a4
|
|
@ -16,7 +16,7 @@ import OpenAI from "openai"
|
|||
import { getRuntimeEnv } from "@/lib/ipconfig" // 新增引入
|
||||
|
||||
export async function POST(req: Request) {
|
||||
console.log("......[process] Starting file processing request")
|
||||
|
||||
try {
|
||||
const supabaseAdmin = createClient<Database>(
|
||||
getRuntimeEnv("SUPABASE_URL") ?? "http://localhost:8000",
|
||||
|
|
@ -30,6 +30,8 @@ export async function POST(req: Request) {
|
|||
const file_id = formData.get("file_id") as string
|
||||
const embeddingsProvider = formData.get("embeddingsProvider") as string
|
||||
|
||||
console.log("......[process] Starting file processing request,embeddingsProvider=", embeddingsProvider)
|
||||
|
||||
const { data: fileMetadata, error: metadataError } = await supabaseAdmin
|
||||
.from("files")
|
||||
.select("*")
|
||||
|
|
|
|||
Loading…
Reference in New Issue