oh okay. does that mean I can't do multiple responses at the same time?
oh okay. does that mean I can't do multiple responses at the same time?
Response objects at once, but you shouldn't need to for the tutorial you linkedTypeError: crypto.DigestStream is not a constructor../../node_modules/@cloudflare/ai/dist/ai/tasks/image-classification.d.ts(2,24): error TS2307: Cannot find module '../ai' or its corresponding type declarations.
bKv cache indefinitely while purging on .put requests?caches.defaultapi.cloudflare.comc.req.raw.cf for hono, mbcacheControl: "public, max-age=600"public, max-age=600 in the response headers.public, max-age=14400 in the response headers.../../node_modules/@cloudflare/ai/dist/ai/tasks/image-classification.d.ts(2,24): error TS2307: Cannot find module '../ai' or its corresponding type declarations.Router instance is a Proxy, with a fetch method. This matches the expected { fetch } signature that Cloudflare or Bun expect. However, CF is having issues with the Proxy (Bun is fine with it, for comparison).../../node_modules/@cloudflare/ai/dist/ai/tasks/image-classification.d.ts(2,24): error TS2307: Cannot find module '../ai' or its corresponding type declarations.declare module '*.html' {
const value: string;
export default value
} const personalizations = [{
to: [{ email: to }],
}];
const msg = {
personalizations,
from: {
email: fromAddress,
name: fromName,
},
subject: subject,
content: [{ type: "text/plain", value: plainText }],
};
const email = await fetch("https://api.sendgrid.com/v3/mail/send", {
body: JSON.stringify(msg),
headers: {
Authorization: `Bearer ${env.SENDGRID_API_KEY}`,
"Content-Type": "application/json",
},
method: "POST",
});../../node_modules/@cloudflare/ai/dist/ai/tasks/image-classification.d.ts(2,24): error TS2307: Cannot find module '../ai' or its corresponding type declarations.export const router = OpenAPIRouter({
docs_url: "/",
schema: {
info: {
title: "JCoNet LTD API",
version: "1",
},
security: {
["apiKeyAuth"]: [],
},
},
});
router.registry.registerComponent("securitySchemes", "apiKeyAuth", {
type: "apiKey",
in: "header",
name: "x-api-key",
});
console.log(router.schema);const router = Router()
// doesn't work (but should)
export default router
// works
export default {
fetch: router.fetch
}
// works
export default { ...router }