Write a typescript nextjs module that implements api handler which returns the latest document from firestore collection "people". Firestore initialized and can be imported from '@db' package. Don't forget to provide file path where to paste the code. Ask more questions if something is not clear. Answer in json like this: {"additionalQuestions"?: string[], modules?: Array<{code: string, filePath: string}> }
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Finally, don't forget to create a "db" object in your Firebase project configuration to reference your Firestore database. You can follow the instructions in the Firebase documentation to set up Firestore in your Next.js application.