EvanPiro
EvanPiro
CDCloudflare Developers
Created by EvanPiro on 4/26/2024 in #workers-help
Unable to Create File from R2 to Openai
Following these directions, I'm not able to get create file to work. https://developers.cloudflare.com/workers/tutorials/create-finetuned-chatgpt-ai-models-with-r2/ I'm getting "400 'file' is a required property". Here is my code:
await env.DOC_BUCKET.put(id, trainingStr);

const obj = await env.DOC_BUCKET.get(id);

const blob = await obj.blob();
const file = await toFile(blob, obj.key);

const fileCreationResponse = await openai.files.create({
file,
purpose: "fine-tune",
});
await env.DOC_BUCKET.put(id, trainingStr);

const obj = await env.DOC_BUCKET.get(id);

const blob = await obj.blob();
const file = await toFile(blob, obj.key);

const fileCreationResponse = await openai.files.create({
file,
purpose: "fine-tune",
});
4 replies
CDCloudflare Developers
Created by EvanPiro on 10/2/2023 in #workers-help
413 Payload Too Large on 156.3mb sized file upload with Business Plan
I just upgraded to Business today to increase my file upload size but am still experiencing 413s on files that are between 100 to 200 mb large.
29 replies
CDCloudflare Developers
Created by EvanPiro on 8/3/2023 in #general-help
Passing auth info from _middleware.ts to next functions
I'm wondering how I can pass the authentication info from _middleware.ts to other functions. All I see is how to merely validate if the user is valid.
1 replies
CDCloudflare Developers
Created by EvanPiro on 8/2/2023 in #pages-help
Unknown Error when setting NODE_VERSION
1 replies