Replies: 2 comments 21 replies
-
You need to use the reverse proxy server for now, so pass it in as a parameter like so: new ChatGPTBrowserClient({
reverseProxyUrl: 'https://chatgpt.duti.tech/api/conversation',
accessToken: 'access token',
}); Also, the file you linked has your access token in it. Generally, it's bad practice to commit any secrets or tokens to GitHub as automated bots scan for them and use them for malicious purposes. Logging out should revoke that access token, so you should do that. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the info, I appreciate it. A few more questions if you find time. I want the best solution possible for hooking up GPT with a discord bot, in the role of a soldier, essentially. It's going to be an assistant for our DayZ Military Unit, helping us create missions from a template that we give it, great Situation Reports, even plan routes to and from our objectives. It will need to have a bunch of info stored about our group for it to be a great asset, so I'm wondering how prompts work for GPT and GPT-3. I know you can fit roughly up to 8000 words in GPT-3's memory (I think), but if we're using ChatGPT, how can I feed the bot this information, assuming it's roughly 3,000 words about our group, for instance, and another 1,500 that it will use each day, it would start forgetting things past a certain point after about a week. I'm hoping to code it so that it has a permanent context of the group and our roles, what we do, what our structure is like, our templates, etc. I also want it to have either rolling temporary context, so that while it knows our group and structure forever, it slowly accumulates real time data and maintains a cache of it over time that's fully accessible, or it to have rolling context, where it begins to forget certain things after a week, as they don't matter as much anymore. Sorry for the essay, hoping you'll let me pay you and maybe you can help me write up this code. |
Beta Was this translation helpful? Give feedback.
-
Hey man, really amazing work with this. I can tell you're ahead of the wave that's coming. I'm having an issue, however. My goal here is to have the browser version working within my discord bot as an assistant for the server. I have GPT Plus subscription, and I'm hoping this will be able to take advantage of that.
I'll get to coding for the discord bot soon, but for now, I need to get this up and running. GPT is helping me fix the code. So far, we're stuck here:
cause: Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
}
TypeError: fetch failed
at Object.fetch (node:internal/deps/undici/undici:11413:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async create (file:///C:/Users/AJBEATX/Downloads/node-chatgpt-api-main/node_modules/@waylaidwanderer/fetch cause: Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
}
}
We've pinged the proxy, everything I can think of. I'm not a coder though, so if you can help that's amazing, if not no worries at all, I'm sure you're busy.
node-chatgpt-api-mainMonaco.zip
Beta Was this translation helpful? Give feedback.
All reactions