bing options {
Oct 4 05:22:41 PM jailbreakConversationId: true,
Oct 4 05:22:41 PM context: null,
Oct 4 05:22:41 PM systemMessage: null,
Oct 4 05:22:41 PM parentMessageId: '00000000-0000-0000-0000-000000000000',
Oct 4 05:22:41 PM toneStyle: 'creative',
Oct 4 05:22:41 PM onProgress: [Function: wrapper],
Oct 4 05:22:41 PM clientOptions: { features: { genImage: [Object] } }
Oct 4 05:22:41 PM }
Oct 4 05:22:42 PM Success: null
Oct 4 05:22:42 PM at BingAIClient.sendMessage (file:///app/node_modules/@waylaidwanderer/chatgpt-api/src/BingAIClient.js:231:31)
Oct 4 05:22:42 PM at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Oct 4 05:22:42 PM at async askBing (/app/api/app/bingai.js:105:15)
Oct 4 05:22:42 PM at async ask (/app/api/server/routes/ask/bingAI.js:142:20)
Oct 4 05:22:42 PM at async /app/api/server/routes/ask/bingAI.js:80:10
#Something went wrong. Here's the specific error message we encountered: null
1 messages · Page 1 of 1 (latest)
See this for the solution:
#💬|general message
Unless you want ot modify the files yourself youèll have to wait for the PR to be merged
I couldn't find any solution for this on GitHub or here on DC. Besides, this only started after the Bing update with DALL-E 3.
hoo, thx!
It's fairly recent indeed, the issue comes from the node-chatgpt-api library we're using for bing.
Oh, yes, I understand! I apologize, I'm still new to programming and couldn't figure out the error and how to solve it. I've been looking for answers on GitHub for about two days and also here on Discord. But thank you very much once again!
You're welcome! No worries, I wasn't aware of the solution until a couple of hours ago 😁
you can either wait for this PR to get merged, or update it yourself.
I can give you the instruction if you want the quick solution:
Note: this method is for the "local install", not for docker. You'll also have to revert the modification you did to easily update LibreChat in the future
- Go into this folder:
LibreChat\node_modules\@waylaidwanderer\chatgpt-api\src - Rename
BingAIClient.jstoBingAIClient.bak - Paste this new
BingAIClient.jsin the folder - Rebuild LibreChat:
npm run frontend - Start LibreChat
npm run backend - Note: You might need to restore the original file to prevent errors next time you update LibreChat
Yes, it should work
did you rebuild the project?
docker-compose build
then
docker-compose up
I don't know, I don't really use render, I only tested it once
npm ci probably removed the changes you made by redownloading the library. Try replacing the BinAI.js again and only run
npm run frontend
npm run backend
I have the fix working local, but not in docker
you could comment it out from the docker file, but it still needs to run once for all the other dependencies
It is an essential part of the initial install process...
You need to run npm ci for the initial setup, but once it's done there are ways to replace files in the container:
example:
You can use the docker cp command to copy the file from the host to the container, overwriting the existing file. For example, if you want to replace the file lib.js in the folder /app/node_modules/library with the file new_lib.js in your current directory, you can run this command:
docker cp new_lib.js container_name:/app/node_modules/library/lib.js
Try asking bing or gpt about it 😉
I think you’d have to modify the container after the fact with any dockerfile
Wanted to ask if there was an update?
The fix isn't working, I just got it setup so wanted to ask if it's a problem caused by Bing or if it's on my end.
ask log {
userMessage: {
messageId: 'a0216652-6ac0-4b44-bc40-30dd7ec73f8a',
sender: 'User',
text: 'Hey!',
parentMessageId: '00000000-0000-0000-0000-000000000000',
conversationId: '283796b2-46de-41d6-adac-bb8b5b6fc264',
isCreatedByUser: true
},
endpointOption: {
jailbreak: false,
systemMessage: null,
context: null,
conversationSignature: null,
clientId: null,
invocationId: 1,
toneStyle: 'fast',
key: null
},
conversationId: '283796b2-46de-41d6-adac-bb8b5b6fc264'
}
[Meilisearch] Convo not found and will index 283796b2-46de-41d6-adac-bb8b5b6fc264
bing options {
conversationId: '283796b2-46de-41d6-adac-bb8b5b6fc264',
context: null,
systemMessage: null,
parentMessageId: '00000000-0000-0000-0000-000000000000',
toneStyle: 'fast',
onProgress: [Function: wrapper],
clientOptions: { features: { genImage: [Object] } }
}
waiting on this to be merged: https://github.com/waylaidwanderer/node-chatgpt-api/pull/481
i feel like forking this repo 😛
You should do it! 😜
The biggest issue with it is that the PRs are not getting merged fast enough
Heyy, for those who use Render and can't use Bing yet, you can try to follow this step by step that I did to use it again: Create a fork of the LibreChat project to your account, in it add the BingAIClient.js file that fuegovic put here to the root of the project. After that, rename the Dockerfile file to Dockerfile.bak, create a new Dockerfile file with the same name without the .bak, keeping the original Librechat as backup until the update is done in the library. After that go to the settings in your project on render and instead of the URL "https://github.com/danny-avila/LibreChat/", put the URL of the fork you made in your account for example "https://github.com/itzraiss/LibreChat/". Here is the Dockerfile code that you will use temporarily until they fix this:
FROM node:19-alpine AS node
COPY . /app
WORKDIR /app
# Install call deps - Install curl for health check
RUN apk --no-cache add curl && \
# We want to inherit env from the container, not the file
# This will preserve any existing env file if it's already in souce
# otherwise it will create a new one
touch .env && \
# Build deps in seperate
npm ci
RUN cp BingAIClient.js /app/node_modules/@waylaidwanderer/chatgpt-api/src/
# React client build
ENV NODE_OPTIONS="--max-old-space-size=2048"
RUN npm run frontend
# Node API setup
EXPOSE 80
ENV HOST=0.0.0.0
CMD ["npm", "run", "backend"]
# Optional: for client with nginx routing
# FROM nginx:stable-alpine AS nginx-client
# WORKDIR /usr/share/nginx/html
# COPY --from=node /app/client/dist /usr/share/nginx/html
# COPY client/nginx.conf /etc/nginx/conf.d/default.conf
# ENTRYPOINT ["nginx", "-g", "daemon off;"]```
# JUST REMENBER: This is just a suggestion that worked for me! I recommend that when this is resolved, go back to the settings of your project and put the URL back: "https://github.com/danny-avila/LibreChat/" so that you stay on top of all updates
Didn't work
It has already been fixed. Simply insert the project URL 'https://github.com/danny-avila/LibreChat' in your project settings on Render and perform a 'Clear Build Cache & Deploy' for it to work optimally.