GHHG10's picture
download
raw
562 Bytes
import type { APIEvent } from "@solidjs/start/server"
import { handler } from "~/routes/zen/util/handler"
import { parseOpenAiVariant } from "~/routes/zen/util/variant"
export function POST(input: APIEvent) {
return handler(input, {
format: "openai",
modelList: "full",
parseApiKey: (headers: Headers) => headers.get("authorization")?.split(" ")[1],
parseModel: (url: string, body: any) => body.model,
parseVariant: (url: string, body: any) => parseOpenAiVariant(body),
parseIsStream: (url: string, body: any) => !!body.stream,
})
}

Xet Storage Details

Size:
562 Bytes
·
Xet hash:
686021187097967a5d6e1522761cce250d12eb56484d1ba37d1eda76c40dbee3

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.