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