chore: generate
This commit is contained in:
@@ -21,7 +21,7 @@ function setup(protocol: "v1" | "v2") {
|
|||||||
}
|
}
|
||||||
if (request.method === "POST" && request.url.endsWith("/prompt_async"))
|
if (request.method === "POST" && request.url.endsWith("/prompt_async"))
|
||||||
return new Response(undefined, { status: 204 })
|
return new Response(undefined, { status: 204 })
|
||||||
if (request.method === "POST" && request.url.endsWith("/prompt")) {
|
if (request.method === "POST" && request.url.endsWith("/prompt")) {
|
||||||
return Response.json({
|
return Response.json({
|
||||||
admittedSeq: 1,
|
admittedSeq: 1,
|
||||||
id: "msg_1",
|
id: "msg_1",
|
||||||
@@ -30,10 +30,10 @@ function setup(protocol: "v1" | "v2") {
|
|||||||
type: "user",
|
type: "user",
|
||||||
data: { text: "hello" },
|
data: { text: "hello" },
|
||||||
delivery: "steer",
|
delivery: "steer",
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (request.method === "GET") return Response.json([])
|
if (request.method === "GET") return Response.json([])
|
||||||
return new Response(undefined, { status: 204 })
|
return new Response(undefined, { status: 204 })
|
||||||
},
|
},
|
||||||
{ preconnect: globalThis.fetch.preconnect },
|
{ preconnect: globalThis.fetch.preconnect },
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user