openai-cookbook/apps/file-q-and-a/nextjs/src
Matthew Jericho Go Sy b7d3f3519e
Fix File Q&A build error due to removed way of assigning options to the Formidable instance (#372)
* Pass maxFileSize attribute when instantiating IncomingForm()

Assigning a value through `form.maxFileSize` directly no longer works and will result in `Type error: Property 'maxFileSize' does not exist on type 'IncomingForm'.`

* Refactor Formidable instantiation acdg. to example shown in docs

Example usage acdg. to docs: e5e25d2fd9/README.md (formidable--incomingform)
2023-09-11 16:09:00 -07:00
..
components Update FileQandAArea.tsx 2023-04-02 17:32:37 -07:00
pages Fix File Q&A build error due to removed way of assigning options to the Formidable instance (#372) 2023-09-11 16:09:00 -07:00
services Fix typo in getEmbeddingsForText.ts (#515) 2023-06-16 18:31:53 -07:00
styles File Q and A app 2023-02-11 16:29:30 -08:00
types File Q and A app 2023-02-11 16:29:30 -08:00