Buckets:
| import type { APIEvent } from "@solidjs/start/server" | |
| import { handler } from "~/routes/zen/util/handler" | |
| import { parseAnthropicVariant } from "~/routes/zen/util/variant" | |
| export function POST(input: APIEvent) { | |
| return handler(input, { | |
| format: "anthropic", | |
| modelList: "full", | |
| parseApiKey: (headers: Headers) => headers.get("x-api-key") ?? undefined, | |
| parseModel: (url: string, body: any) => body.model, | |
| parseVariant: (url: string, body: any) => parseAnthropicVariant(body), | |
| parseIsStream: (url: string, body: any) => !!body.stream, | |
| }) | |
| } | |
Xet Storage Details
- Size:
- 565 Bytes
- Xet hash:
- 31676662f2dcbd779e16a4dfdc1c64880f53f1ec5b64dff60d29f66c0c7a9ad8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.