Git Product home page Git Product logo

waylaidwanderer / pandoraai Goto Github PK

View Code? Open in Web Editor NEW
836.0 11.0 216.0 4.09 MB

PandoraAI is a web chat client powered by node-chatgpt-api, allowing users to easily chat with multiple AI systems while also offering support for custom presets. With its seamless and convenient design, PandoraAI provides an engaging conversational AI experience.

Home Page: https://github.com/waylaidwanderer/node-chatgpt-api

License: MIT License

Vue 88.05% JavaScript 11.82% Dockerfile 0.13%
ai app bing chatgpt chatgpt-api client gpt-3 nuxt openai openai-api

pandoraai's Introduction

Web client demo

PandoraAI

PandoraAI is a web chat client powered by node-chatgpt-api, allowing users to easily chat with multiple AI systems while also offering support for custom presets. With its seamless and convenient design, PandoraAI provides an engaging conversational AI experience.

Built using Nuxt 3, a Vue 3 framework.
You may also use PandoraAI with other API server implementations as long as the endpoints are compatible.

Features

  • Chat with all the AI that node-chatgpt-api supports, including gpt-3.5-turbo, text-davinci-003, ChatGPT, and Bing.
  • Supports creating multiple presets for each client.
    Client Settings
  • Choose between different clients or custom presets.
    Client Dropdown
  • Everything is stored in local storage, so you can use this client without an account, and it can be imported or exported to other devices.
Nuxt 3 Setup

Look at the Nuxt 3 documentation to learn more.

Setup

Make sure to install the dependencies:

# yarn
yarn install

# npm
npm install

# pnpm
pnpm install

Development Server

Start the development server on http://localhost:3000

npm run dev

Production

Build the application for production:

npm run build

Locally preview production build:

npm run preview

Check out the deployment documentation for more information.

Setup

  1. Follow the Nuxt 3 setup instructions above.
  2. Run the API server from node-chatgpt-api.
  3. Copy .env.example to .env and fill in the API_BASE_URL variable with the URL of the API server.
  4. Run npm run dev to start the development server, or npm run build to build the application for production.
    1. If you see an empty white page after pulling the latest changes, run nuxi upgrade --force first and then npm run dev.

Contributing

If you'd like to contribute to this project, please create a pull request with a detailed description of your changes.

License

This project is licensed under the MIT License.

pandoraai's People

Contributors

axsddlr avatar dependabot[bot] avatar etnperlong avatar timefox avatar waylaidwanderer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pandoraai's Issues

while using this webui, can't connect to Bing chat service.

node-chatgpt-api shows bug information
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:/software/node-chatgpt-api-1.35.0/node_modules/@waylaidwanderer/fetch-event-source/lib/esm/fetch.js:52:34) {
cause: ConnectTimeoutError: Connect Timeout Error
at onConnectTimeout (C:\software\node-chatgpt-api-1.35.0\node_modules\undici\lib\core\connect.js:182:24)
at C:\software\node-chatgpt-api-1.35.0\node_modules\undici\lib\core\connect.js:129:46
at Immediate._onImmediate (C:\software\node-chatgpt-api-1.35.0\node_modules\undici\lib\core\connect.js:168:33)
at process.processImmediate (node:internal/timers:476:21) {
code: 'UND_ERR_CONNECT_TIMEOUT'
}
}

and webui don't show any element.

屏幕截图 2023-04-14 200654

Cannot read property 'name' of undefined

When i execute Yarn install i have the following error:

yarn install v1.22.17
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
success Already up-to-date.
$ nuxt prepare
Nuxi 3.3.1                                                                                                                                                                                                    15:27:23
ℹ Using default Tailwind CSS file from runtime/tailwind.css                                                                                                                                  nuxt:tailwindcss 15:27:25

 ERROR  Cannot read property 'name' of undefined  

address already in use :::3000 when I launch the build

Hello,
I follow exactly the step to install PandoraAI, but it seems I missed something and I don't understand what and why.

The server "node-chatgpt-api" is up and worked fine when I test "npm run cli".

When I launch "npm run dev" for PandoraAI, I have a random port, I have the nuxt Pandora page, But I have no answer from Chatgpt from my prompt.
When I launch "npm run build" for PandoraAI, when I want to preview this build using node .output/server/index.mjs I have the error :
[nitro] [dev] [uncaughtException] Error: listen EADDRINUSE: address already in use :::3000
Could you help me to understand ?

can it show img?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

It does not work

It does not work, prompting "Sorry, you are not allowed to access this service."

Is this website no longer maintained?

No matter what I type, the site doesn't respond.
I have tried various devices since yesterday, but nothing is responding properly.
To Reproduce
Steps to reproduce the behaviour:

Just a simple conversation with PandoraAI

Screenshots
Screenshot_2023-03-29-15-34-52-923_com.android.browser.jpg

Additional context
When I used it yesterday, it showed:Sorry, you are not allowed to access this service.But today it doesn't respond to messages at all.So the website is not maintained?

Allow user create, modify or delete messages before

Is your feature request related to a problem? Please describe.
When the output is moderated by the Bing, only a short response will be generated, and the user needs to "continue" continuously, resulting in a lot of redundant messages. By modifying the previous message, the user can splicing the next paragraph of content to the previous message. This is also helpful when the user wants to modify a previous input message

Describe the solution you'd like
User can create, modify or delete messages before

Describe alternatives you've considered
Nothing

Additional context
Nothing

How to use it on vercel?

How do I deploy PandoraAI and node-chatgpt-api on vercel?
node-chatgpt-api on vercel does not work on "3000" ports.
And I can't install node-chatgpt-api as PandoraAI's dependency to use it(In fact, I don't know how to use it)
What should I do?

中文 我应该怎样把PandoraAI和node-chatgpt-api一起部署在vercel上?

vercel上的node-chatgpt-api不能在3000端口上运行

我也不能把node-chatgpt-api安装为PandoraAI的依赖来调用(实际上是我不会)

我该怎么办?

WebGUI not responding

i have install the node-chatgpt-api globally, with these settings:

settings.js
export default {
// Options for the Keyv cache, see https://www.npmjs.com/package/keyv.
// This is used for storing conversations, and supports additional drivers (conversations are stored in memory by default).
// Only necessary when using ChatGPTClient, or BingAIClient in jailbreak mode.
cacheOptions: {},
// If set, ChatGPTClient and BingAIClient will use keyv-file to store conversations to this JSON file instead of in memory.
// However, cacheOptions.store will override this if set
storageFilePath: process.env.STORAGE_FILE_PATH || './cache.json',
chatGptClient: {
// Your OpenAI API key (for ChatGPTClient)
openaiApiKey: process.env.OPENAI_API_KEY || 'API',
// (Optional) Support for a reverse proxy for the completions endpoint (private API server).
// Warning: This will expose your openaiApiKey to a third party. Consider the risks before using this.
// reverseProxyUrl: 'https://chatgpt.hato.ai/completions',
// (Optional) Parameters as described in https://platform.openai.com/docs/api-reference/completions
modelOptions: {
// You can override the model name and any other parameters here.
// The default model is gpt-3.5-turbo.
model: 'gpt-3.5-turbo',
// Set max_tokens here to override the default max_tokens of 1000 for the completion.
// max_tokens: 1000,
},
// (Optional) Davinci models have a max context length of 4097 tokens, but you may need to change this for other models.
// maxContextTokens: 4097,
// (Optional) You might want to lower this to save money if using a paid model like text-davinci-003.
// Earlier messages will be dropped until the prompt is within the limit.
// maxPromptTokens: 3097,
// (Optional) Set custom instructions instead of "You are ChatGPT...".
// (Optional) Set a custom name for the user
// userLabel: 'User',
// (Optional) Set a custom name for ChatGPT ("ChatGPT" by default)
// chatGptLabel: 'Bob',
// promptPrefix: 'You are Bob, a cowboy in Western times...',
// A proxy string like "http://:"
proxy: 'http://127.0.0.1:10809',
// (Optional) Set to true to enable console.debug() logging
debug: false,
},
// Options for the Bing client
bingAiClient: {
// Necessary for some people in different countries, e.g. China (https://cn.bing.com)
host: 'https://www.bing.com',
// The "_U" cookie value from bing.com
userToken: 'TOKEN',
// If the above doesn't work, provide all your cookies as a string instead
cookies: '',
// A proxy string like "http://:"
proxy: 'http://127.0.0.1:10809',
// (Optional) Set to true to enable console.debug() logging
debug: false,
},
chatGptBrowserClient: {
// (Optional) Support for a reverse proxy for the conversation endpoint (private API server).
// Warning: This will expose your access token to a third party. Consider the risks before using this.
reverseProxyUrl: '', //'https://bypass.churchless.tech/api/conversation',
// Access token from https://chat.openai.com/api/auth/session
accessToken: 'TOKEN',
// Cookies from chat.openai.com (likely not required if using reverse proxy server).
cookies: '',
// A proxy string like "http://:"
proxy: 'http://127.0.0.1:10809',
// (Optional) Set to true to enable console.debug() logging
debug: false,
},
// Options for the API server
apiOptions: {
port: process.env.API_PORT || 3001,
host: process.env.API_HOST || 'localhost',
// (Optional) Set to true to enable console.debug() logging
debug: true,
// (Optional) Possible options: "chatgpt", "chatgpt-browser", "bing". (Default: "chatgpt")
clientToUse: 'chatgpt',
// (Optional) Generate titles for each conversation for clients that support it (only ChatGPTClient for now).
// This will be returned as a title property in the first response of the conversation.
generateTitles: false,
// (Optional) Set this to allow changing the client or client options in POST /conversation.
// To disable, set to null.
perMessageClientOptionsWhitelist: {
// The ability to switch clients using clientOptions.clientToUse will be disabled if validClientsToUse is not set.
// To allow switching clients per message, you must set validClientsToUse to a non-empty array.
validClientsToUse: ['bing', 'chatgpt', 'chatgpt-browser'], // values from possible clientToUse options above
// The Object key, e.g. "chatgpt", is a value from validClientsToUse.
// If not set, ALL options will be ALLOWED to be changed. For example, bing is not defined in perMessageClientOptionsWhitelist above,
// so all options for bingAiClient will be allowed to be changed.
// If set, ONLY the options listed here will be allowed to be changed.
// In this example, each array element is a string representing a property in chatGptClient above.
chatgpt: [
'promptPrefix',
'userLabel',
'chatGptLabel',
// Setting modelOptions.temperature here will allow changing ONLY the temperature.
// Other options like modelOptions.model will not be allowed to be changed.
// If you want to allow changing all modelOptions, define modelOptions here instead of modelOptions.temperature.
'modelOptions.temperature',
],
},
},
// Options for the CLI app
cliOptions: {
// (Optional) Possible options: "chatgpt", "bing".
// clientToUse: 'bing',
},
};

and build a webui with .env file:
API_BASE_URL=http://localhost:3001

the cli could work properly, but it seems webui cannot connect to the api correctly (reflected as GUI didnt return any GPT's reply.
is there anything wrong with the settings?

Bing in web client cannot understand the context

When using web client with ChatGPT, it works perfectly fine, but when using the client with Bing, it seems like Bing AI couldn't understand the context and treating each question seperately (see screenshots blow)

screenshot

Npm install error

Describe the bug
Encountered error when doing npm install

To Reproduce
Steps to reproduce the behavior:

  1. Go to github, download as zip
  2. Cmd, type npm install
  3. After a while
  4. See error

Expected behavior
should complete install

Console info:
D:\ai\bing\PandoraAI-main>npm install
npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
npm ERR! code 1
npm ERR! path D:\ai\bing\PandoraAI-main\node_modules\sharp
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c (node install/libvips && node install/dll-copy && prebuild-install) || (node install/can-compile && node-gyp rebuild && node install/dll-copy)
npm ERR! sharp: Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.13.3/libvips-8.13.3-win32-x64.tar.br
npm ERR! sharp: Please see https://sharp.pixelplumbing.com/install for required dependencies
npm ERR! sharp: Installation error: Request timed out

npm ERR! A complete log of this run can be found in: C:\Users\25693\AppData\Local\npm-cache_logs\2023-04-12T15_22_55_283Z-debug-0.log

Desktop (please complete the following information):

  • OS: Win10
  • Browser: Firefox
  • Version 112.0

Additional context
Fresh install of node 19.9.0, using proxy, if that maybe the cause
Log content:0 verbose cli C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js
1 info using [email protected]
2 info using [email protected]
3 timing npm:load:whichnode Completed in 2ms
4 timing config:load:defaults Completed in 1ms
5 timing config:load:file:C:\Program Files\nodejs\node_modules\npm\npmrc Completed in 2ms
6 timing config:load:builtin Completed in 2ms
7 timing config:load:cli Completed in 2ms
8 timing config:load:env Completed in 0ms
9 timing config:load:file:D:\ai\bing\PandoraAI-main.npmrc Completed in 1ms
10 timing config:load:project Completed in 3ms
11 timing config:load:file:C:\Users\25693.npmrc Completed in 0ms
12 timing config:load:user Completed in 0ms
13 timing config:load:file:C:\Users\25693\AppData\Roaming\npm\etc\npmrc Completed in 1ms
14 timing config:load:global Completed in 1ms
15 timing config:load:setEnvs Completed in 1ms
16 timing config:load Completed in 10ms
17 timing npm:load:configload Completed in 10ms
18 timing npm:load:mkdirpcache Completed in 0ms
19 timing npm:load:mkdirplogs Completed in 1ms
20 verbose title npm run dev
21 verbose argv "run" "dev"
22 timing npm:load:setTitle Completed in 1ms
23 timing config:load:flatten Completed in 3ms
24 timing npm:load:display Completed in 4ms
25 verbose logfile logs-max:10 dir:C:\Users\25693\AppData\Local\npm-cache_logs\2023-04-12T15_26_10_362Z-
26 verbose logfile C:\Users\25693\AppData\Local\npm-cache_logs\2023-04-12T15_26_10_362Z-debug-0.log
27 timing npm:load:logFile Completed in 9ms
28 timing npm:load:timers Completed in 0ms
29 timing npm:load:configScope Completed in 0ms
30 timing npm:load Completed in 27ms
31 silly logfile start cleaning logs, removing 2 files
32 silly logfile done cleaning log files
33 timing command:run Completed in 165ms
34 verbose exit 1
35 timing npm Completed in 208ms
36 verbose code 1

Issue with Incomplete AI-generated Texts in Chat History

Hello, I noticed an issue when exporting my chat history. The saved JSON file containing the chat history also includes some incomplete sentences that the AI generated before I interrupted it. I frequently interrupt the AI to have it regenerate more satisfactory responses. I understand that all previous interactions with the AI are sent in the background to maintain the continuity of the conversation. My question is, do these partially generated AI responses have any impact or interference on the chat? Perhaps you could add a button to delete specific messages from the chat history?

Stream display is not working.

I'm using Bing bot, but stream display function is not working.
Is it client problem or the server side problem?

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser: Firefox, Chrome
  • Version: git master

It can't run successfully in my ipad.

I can communicate with ChatGpt normally in my Mac. like this,
image
But I can't get response from AI in my iPad or iphone. No matter how many time I try, it's always like this,
image

Some links show up as [[number] in streaming and disappear after streaming sometimes

Describe the bug
Some links show up as [[number] in streaming and disappear after streaming sometimes.

To Reproduce
Steps to reproduce the behavior:

  1. Setup a node-chatgpt-api as a bing client
  2. Use node-chatgpt-api as PandoraAI backend

Expected behavior
Links display normally

Screenshots
1680926565817.png
1680926594288.png

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: 111

Smartphone (please complete the following information):

  • Device: Redmi K50
  • OS: Android 12
  • Browser: Chrome
  • Version: 111

Additional context
Add any other context about the problem here.

Server / client question

Could you explain a little about how the deployment works?

Am I right that you need both the node-chatgpt-api and PandoraAI running? Could I package the server and Pandora into one build for server(/serverless) deployment?

Should PandoraAI be able to run when generating a package for static hosting?

Great projects!

What is the problem?

User
111

AI

Cannot convert argument to a ByteString because the character at index 406 has a value of 28009 which is greater than 255.

age. Server closed the connection unexpectedly.
at onclose (Chat.vue:333:1)
at create (fetch.ts:125:17)
sendMessage @ Chat.vue:361
await in sendMessage(异步)
_createElementBlock.onClick._cache.._cache. @ Chat.vue:515
callWithErrorHandling @ chunk-3NMN3MUW.js:1580
callWithAsyncErrorHandling @ chunk-3NMN3MUW.js:1588
invoker @ chunk-3NMN3MUW.js:8198
Show 3 more frames

Docker build failed

`
=> ERROR [4/4] RUN npm i 29.3s

[4/4] RUN npm i:
#0 29.24 npm notice
#0 29.24 npm notice New major version of npm available! 8.1.2 -> 9.6.2
#0 29.24 npm notice Changelog: https://github.com/npm/cli/releases/tag/v9.6.2
#0 29.24 npm notice Run npm install -g [email protected] to update!
#0 29.24 npm notice
#0 29.24 npm ERR! code ERESOLVE
#0 29.25 npm ERR! ERESOLVE could not resolve
#0 29.25 npm ERR!
#0 29.25 npm ERR! While resolving: pandora-ai@undefined
#0 29.25 npm ERR! Found: [email protected]
#0 29.25 npm ERR! node_modules/vue
#0 29.25 npm ERR! peer vue@"^3.2.0" from @headlessui/[email protected]
#0 29.25 npm ERR! node_modules/@headlessui/vue
#0 29.25 npm ERR! @headlessui/vue@"^1.7.12" from the root project
#0 29.25 npm ERR! vue@"^3.2.47" from [email protected]
#0 29.25 npm ERR! node_modules/nuxt
#0 29.25 npm ERR! dev nuxt@"^3.3.2" from the root project
#0 29.25 npm ERR! peer nuxt@"^3.0.0" from @vueuse/[email protected]
#0 29.25 npm ERR! node_modules/@vueuse/nuxt
#0 29.25 npm ERR! dev @vueuse/nuxt@"^9.13.0" from the root project
#0 29.25 npm ERR!
#0 29.25 npm ERR! Could not resolve dependency:
#0 29.25 npm ERR! pinia@"^2.0.33" from the root project
#0 29.25 npm ERR!
#0 29.25 npm ERR! Conflicting peer dependency: [email protected]
#0 29.25 npm ERR! node_modules/vue
#0 29.25 npm ERR! peer vue@">= 2.5 < 2.7" from @vue/[email protected]
#0 29.25 npm ERR! node_modules/@vue/composition-api
#0 29.25 npm ERR! peerOptional @vue/composition-api@"^1.4.0" from [email protected]
#0 29.25 npm ERR! node_modules/pinia
#0 29.25 npm ERR! pinia@"^2.0.33" from the root project
#0 29.25 npm ERR!
#0 29.25 npm ERR! Fix the upstream dependency conflict, or retry
#0 29.25 npm ERR! this command with --force, or --legacy-peer-deps
#0 29.25 npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
#0 29.25 npm ERR!
#0 29.25 npm ERR! See /root/.npm/eresolve-report.txt for a full report.
#0 29.25
#0 29.25 npm ERR! A complete log of this run can be found in:
#0 29.25 npm ERR! /root/.npm/_logs/2023-03-30T11_27_52_430Z-debug.log


failed to solve: executor failed running [/bin/sh -c npm i]: exit code: 1
`

Final Run npm install - g [email protected]To update the solution

Final Run npm install - g [email protected]To update the solution

Final Run npm install - g [email protected]To update the solution

err

ISSUES REPORTED HERE SHOULD BE FOR THE FRONT-END CLIENT ONLY.
Do NOT create issues regarding any websites that use this client, e.g. https://example-pandora-ai.app. Instead, please contact the website owner directly.
If you are having problems related to node-chatgpt-api, open an issue there instead.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

After using internal network penetration, it is not working properly.

ISSUES REPORTED HERE SHOULD BE FOR THE FRONT-END CLIENT ONLY.
Do NOT create issues regarding any websites that use this client, e.g. https://example-pandora-ai.app. Instead, please contact the website owner directly.
If you are having problems related to node-chatgpt-api, open an issue there instead.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

Hello, I have successfully deployed ChatGPT on my NAS, and I can have conversations with it within my local network. However, when I use frp to forward port 3000, the web page can still be accessed normally, but ChatGPT does not respond to queries.
Also, I hope to improve the response speed. The current response speed is a bit slow compared to other projects of the same type.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.
Screenshot_20230417_234222_com yandex browser alpha

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Offering a one-click start package for accessibility

I think a good part of potential users will not be able to get PandoraAI running.
It requires quite a bit of dedication, reading and knowhow to work.

My suggestion is to add in node-chatgpt-api as Github submodule.
Then use a default script that:

  1. launches the API
  2. launches PandoraAI configured for the API (currently they conflict, default port is 3000 for both)
    Pandora doesn't need a config in that case, the API needs the cookie for bing (when bing is used)
    If there is no API configuration present I'd just open notepad/nano instead of starting.

aws ec2 bingai doesn't work

ISSUES REPORTED HERE SHOULD BE FOR THE FRONT-END CLIENT ONLY.
Do NOT create issues regarding any websites that use this client, e.g. https://example-pandora-ai.app. Instead, please contact the website owner directly.
If you are having problems related to node-chatgpt-api, open an issue there instead.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

ERROR Error: Failed to send message. Server closed the connection unexpectedly.

ERROR Error: Failed to send message. Server closed the connection unexpectedly.
onclose Chat.vue:333
NuxtJS 3
sendMessage Chat.vue:322
async*_sfc_render/_cache[2]< NuxtJS
withModifiers chunk-3NMN3MUW.js:9171
withKeys chunk-3NMN3MUW.js:9190
callWithErrorHandling chunk-3NMN3MUW.js:1580
callWithAsyncErrorHandling chunk-3NMN3MUW.js:1588
invoker chunk-3NMN3MUW.js:8198
addEventListener chunk-3NMN3MUW.js:8153
patchEvent chunk-3NMN3MUW.js:8167
patchProp chunk-3NMN3MUW.js:8224
mountElement chunk-3NMN3MUW.js:5786
processElement chunk-3NMN3MUW.js:5764
patch chunk-3NMN3MUW.js:5698
mountChildren chunk-3NMN3MUW.js:5845
mountElement chunk-3NMN3MUW.js:5777
processElement chunk-3NMN3MUW.js:5764
patch chunk-3NMN3MUW.js:5698
mountChildren chunk-3NMN3MUW.js:5845
mountElement chunk-3NMN3MUW.js:5777
processElement chunk-3NMN3MUW.js:5764
patch chunk-3NMN3MUW.js:5698
mountChildren chunk-3NMN3MUW.js:5845
mountElement chunk-3NMN3MUW.js:5777
processElement chunk-3NMN3MUW.js:5764
patch chunk-3NMN3MUW.js:5698
mountChildren chunk-3NMN3MUW.js:5845
processFragment chunk-3NMN3MUW.js:5978
patch chunk-3NMN3MUW.js:5694
componentUpdateFn chunk-3NMN3MUW.js:6128
run chunk-3NMN3MUW.js:405
update chunk-3NMN3MUW.js:6220
setupRenderEffect chunk-3NMN3MUW.js:6228
mountComponent chunk-3NMN3MUW.js:6046
processComponent chunk-3NMN3MUW.js:6011
patch chunk-3NMN3MUW.js:5700
mountChildren chunk-3NMN3MUW.js:5845
mountElement chunk-3NMN3MUW.js:5777
Chat.vue:361

图片

Android phone can't be used it.

I can use it normally on my computer, but when I access it through a browser on my Android phone, I cannot get a response from the AI.

How do I use the presets

I've set up node-chatgpt-api and PandoraAI, but I don't understand how the presets work ? They all claim to be ChatGPT no matter what I choose and all seem to be the same model. I want to use Bing with jailbreak but I'm not sure how to go about adding it?

This is what it responds with Bing creative mode and Jailbreak on ?
image

Mangling of code in response and prompt display (and copying out)

Latest dev version:
Input: cache.buf.resize(2un_elementsggml_type_size(wtype) + 2uMB);
Output: cache.buf.resize(2un_elementsggml_type_size(wtype) + 2u
MB);

This happens with the prompt as well as when Bing answers, I'm quite sure the answer contains the correct code but the multiplications are removed.
Only when displayed in a "code box" it's working.

It's not just a visual bug, also when copy/paste the multiplications are gone.
So something is removing characters.

convert chatgpt-web-client into container image but didn't work properly .

Screen Shot 2023-03-02 at 10 54 12

Screen Shot 2023-03-02 at 10 15 20

I converted your code into container image but it didn't work properly , this is content of Docker file : I already configure api url (node-chatgpt-api ) in env : API_BASE_URL=http://10.1.1.36:5174

`FROM node:18.14.2-alpine

RUN mkdir -p /app
WORKDIR /app
COPY . .

RUN yarn install &&
yarn cache clean
RUN npm ci && npm cache clean --force
RUN npm install -g pnpm
RUN pnpm install
RUN npm run build

ENV NUXT_HOST=0.0.0.0
ENV NUXT_PORT=5175

EXPOSE 5175

ENTRYPOINT ["node", ".output/server/index.mjs"]`

So can not be used

I cannot use it today, it said ‘Sorry, you are not allowed to access this service.’

Default Tone/Mode

Is there a way to set a default tone to Bing? I want it to be in Creative mode automatically. Is there also a way to make jailbreak mode on by default?

Convenience features

A couple things I noticed that would be great to have:

  1. CSS tweak - the background is hard to read for some people. My dad can't read the text well (the presentation appears too dark to him). So the option to a traditional black/white theme would be nice. I also found myself to often change the background style manually to be less hard on the eyes.
  2. Disable auto-scrolling if the user scrolls above the last line and continue auto scrolling if the user is at the bottom again.
    • this allows to start reading the response while it writes. GPT4/Bing can really write a lot and for quite a while.
  3. Enable the prompt field while the AI writes, just disable sending until ready. So we can already prepare the followup and just need to send it once ready.
  4. The STOP button is glitchy (bing mode), a couple times it deleted my prompt alongside the half-finished AI answer.
  5. Initial prompt modification support - In Jailbreak the system in normal mode the first prompt - it would be nice to modify that.
    This would also allow multi-lingual support so a non english speaker could just update the initial prompt.

Exporting json file issue

Here is the translation:

First of all, thank you for providing such a great program. Excuse me, I'm a newcomer. In the chat log export feature, the JSON file format I generated cannot be parsed correctly. If Export json could also increase PDF and PNG, that would be even better, thank you for your efforts

Some key points:

提供了很棒的程序,感谢。
Provided a great program, thanks.

作者原谅我,我是一个新手。
Apologize, I'm a newcomer.

在聊天记录导出功能生成的JSON文件我无法正确解析。
The JSON file generated by the chat log export function I cannot parse correctly.

如果Export json 也增加PDF和PNG会更棒。
If Export json could also increase PDF and PNG, it would be even better.

谢谢您的付出。
Thank you for your efforts.

What's the error that occurred, is it a port issue?

000
fetch.ts:105

   POST http://localhost:3001/conversation net::ERR_CONNECTION_REFUSED

create @ fetch.ts:105
(匿名) @ fetch.ts:145
fetchEventSource @ fetch.ts:67
sendMessage @ Chat.vue:322
await in sendMessage(异步)
(匿名) @ Chat.vue:515
(匿名) @ chunk-3NMN3MUW.js?v=1c27165a:9171
(匿名) @ chunk-3NMN3MUW.js?v=1c27165a:9190
callWithErrorHandling @ chunk-3NMN3MUW.js?v=1c27165a:1580
callWithAsyncErrorHandling @ chunk-3NMN3MUW.js?v=1c27165a:1588
invoker @ chunk-3NMN3MUW.js?v=1c27165a:8198
Show 5 more frames
Chat.vue:361

   ERROR TypeError: Failed to fetch
at create (fetch.ts:105:40)
at fetch.ts:145:9
at new Promise (<anonymous>)
at fetchEventSource (fetch.ts:67:12)
at Proxy.sendMessage (Chat.vue:322:1)

sendMessage @ Chat.vue:361
await in sendMessage(异步)
(匿名) @ Chat.vue:515
(匿名) @ chunk-3NMN3MUW.js?v=1c27165a:9171
(匿名) @ chunk-3NMN3MUW.js?v=1c27165a:9190
callWithErrorHandling @ chunk-3NMN3MUW.js?v=1c27165a:1580
callWithAsyncErrorHandling @ chunk-3NMN3MUW.js?v=1c27165a:1588
invoker @ chunk-3NMN3MUW.js?v=1c27165a:8198
Show 5 more frames

Sorry, you are not allowed to access this service.

Describe the bug
I am not allowed to access this service.

To Reproduce

Expected behavior

Screenshots
impicture_20230408_132809

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Browser [e.g. chrome]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Error: Could not load file

Describe the bug
cant load file

Screenshots
image

error info

Nuxi 3.3.2 09:47:30
Nuxt 3.3.2 with Nitro 2.3.2 09:47:30
09:47:31

i Using default Tailwind CSS file from runtime/tailwind.css nuxt:tailwindcss 09:47:32
i Tailwind Viewer: http://localhost:3000/_tailwind/ nuxt:tailwindcss 09:47:33
√ PWA icons and splash screens generated in 1601 ms 09:47:34
i Vite client warmed up in 6102ms 09:47:41

ERROR Error: Could not load file:///D:/Programing/nodejs/node_global/node_modules/@waylaidwanderer/PandoraAI/.nuxt/dist/server/client.manifest.mjs (imported by node_modules/nuxt/dist/core/runtime/nitro/renderer.js): ENOENT: no such file or directory, open 'D:\Programing\nodejs\node_global\node_modules@waylaidwanderer\PandoraAI\file:\D:\Programing\nodejs\node_global\node_modules@waylaidwanderer\PandoraAI.nuxt\dist\server\client.manifest.mjs'

undefined

√ Nitro built in 2123 ms

Copy Button in Code Block doesn't work

Describe
I'm having trouble using the Copy Button feature in code blocks on PandoraAI. Whenever I try to click on it, nothing happens. I've tried this on multiple browsers and devices, but the issue persists.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to any repository on GitHub that contains code blocks.
  2. Click on the Copy Button in any code block.
  3. Observe that nothing happens.
  4. Console log error.

Expected behavior
Clicking on the Copy Button should copy the code from the code block to the clipboard.

Screenshots
Console log error as:
image
Uncaught TypeError: Cannot read properties of undefined (reading 'writeText')
at HTMLDocument.copyButtonListener

Desktop:

  • OS: MacOS
  • Browser: Edge
  • Version 111.0.1661.27 Dev(x86_64)

Can't modify port

Describe the bug

I modified the port in the setting file of the api, and modified the port in the env in the pandora project, and the port was not modified when I finally ran it.And open the given website with only one nuxt logo, and click it to enter the official website of nuxt, Is there something wrong with me?

Expected behavior
A clear and concise des

cription of what you expected to happen.

Screenshots
18)%L XA9COBI83 XCTP9M
R`T8 )Q475B{ZCK$SR}D1{K
YBPH68S QKT ~PN@F8}FAOT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.