openai-cookbook
openai-cookbook copied to clipboard
Unhanled Runtime Error
trafficstars
Hi, I have this error when I make a simple question:
May you help me?
app:(https://github.com/openai/openai-cookbook/tree/main/apps/file-q-and-a)/nextjs-with-flask-server/
Unhandled Runtime Error TypeError: Cannot read properties of undefined (reading 'toLowerCase')
src\services\utils.ts (9:5) @ toLowerCase
` .replace(/[.,/#!$%^&;:{}=-_~()\s]/g, ""); const normalizedStr = str .toLowerCase() ^ .replace(/[.,/#!$%^&;:{}=-_~()\s]/g, "");
// Return true if the normalized file name is included in the normalized string`
Call Stack
file
src\components\FileQandAArea.tsx (122:35)
filter
src\components\FileQandAArea.tsx (121:26)

I have to say that I use this with text in Spanish.
Thanks!