josStorer / chatGPTBox

Integrating ChatGPT into your browser deeply, everything you need is here
MIT License
9.73k stars 723 forks source link

Buffer is not defined #691

Open ralebaskinson opened 2 months ago

ralebaskinson commented 2 months ago

Describe the bug 问题描述 Getting the error "Buffer is not defined" when trying to use ChatGPT Web. Looks related to https://github.com/josStorer/chatGPTBox/commit/77a14e23ef47dbbcf3419350db10ceefa8322eaf, Buffer is available in nodejs but not in the browser.

Please complete the following information): 请补全以下内容

josStorer commented 2 months ago

Are you using firefox-without-katex-and-tiktoken.zip? In fact, buffer package has been added to ChatGPTBox, so the Buffer.from call is normal.

ralebaskinson commented 1 month ago

Ah yes sorry I forgot to mention I built it myself and am using firefox-without-katex-and-tiktoken.zip, thanks for catching it

josStorer commented 1 month ago

With firefox.zip, it would work