I have max 10mb files but what is the bad usage?
I have max 10mb files but what is the bad usage?



Cannot read properties of undefined (reading 'writeDataPoint') when trying analytics engine. I've added the binding to my toml and deployed. Is there anything else I need to to to start using analytics engine?new Request("https://this.doesnt.exist.at/all") .Request, I wonder if we're better off ditching the Cache API and implementing a more standard key / value cache with R2 or KV const fileContent = "This is a simple text file.";
const file = new File([fileContent], "simple_text_file.txt", {
type: "text/plain",
});
formData.set("file", file);
formData.append("purpose", "fine-tune")
const fetchOptions: RequestInit = {
method: "POST",
headers: {
Authorization: `Bearer ${apiKey}`,
},
body: formData,
};
// Make the POST request to OpenAI
const response = await fetch("https://api.openai.com/v1/files", fetchOptions); const promise = fetch('http://localhost:3000/impression', {
method: "POST",
body: JSON.stringify(data),
headers: {
"content-type": "application/json",
}
});
c.executionCtx.waitUntil(promise.then())
flow.params = { campaignId: campaignId }
return flow; c.executionCtx.waitUntil(fetch('http://localhost:3000/impression', {
method: "POST",
body: JSON.stringify(data),
headers: {
"content-type": "application/json",
}
}).catch((e) => console.error("Error doing impressions", e))
);export default {
async fetch(request: Request): Promise<Response> {
/**
* Replace `remote` with the host you wish to send requests to
*/
const remote = "https://example.com";
return await fetch(remote, request);
},
};Cannot read properties of undefined (reading 'writeDataPoint')new Request("https://this.doesnt.exist.at/all")