-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Closed as not planned
Labels
Description
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!