GHHG10's picture
download
raw
749 Bytes
export async function buildOptionsResponse() {
return new Response(null, {
status: 200,
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET, POST, OPTIONS",
"Access-Control-Allow-Headers": "Content-Type, Authorization",
},
})
}
export async function buildModelsResponse(models: string[]) {
return new Response(
JSON.stringify({
object: "list",
data: models
.filter((id) => !id.startsWith("alpha-"))
.map((id) => ({
id,
object: "model",
created: Math.floor(Date.now() / 1000),
owned_by: "opencode",
})),
}),
{
headers: {
"Content-Type": "application/json",
},
},
)
}

Xet Storage Details

Size:
749 Bytes
·
Xet hash:
d1bcd931f2ebd0871d01b857770f7eae840e9332f7aa452a261e34d8dc7a18f9

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