MCPcopy Create free account
hub / github.com/ethanniser/NextFaster / downloadBatch

Function downloadBatch

scripts/generate.ts:267–278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265// checkBatchStatus();
266
267const downloadBatch = async () => {
268 const fileResponse = await openai.files.content("");
269 const fileContents = await fileResponse.text();
270
271 fs.appendFile("scripts/out.jsonl", fileContents, (err: any) => {
272 if (err) {
273 console.error(err);
274 return;
275 }
276 console.log("File has been saved");
277 });
278};
279
280// downloadBatch();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected