openai-cookbook icon indicating copy to clipboard operation
openai-cookbook copied to clipboard

Unhanled Runtime Error

Open Omar8485 opened this issue 2 years ago • 0 comments
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) image

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

Thanks!

Omar8485 avatar Mar 12 '23 23:03 Omar8485