danny-avila / LibreChat

Enhanced ChatGPT Clone: Features Anthropic, OpenAI, Assistants API, Azure, Groq, GPT-4o, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, langchain, DALL-E-3, ChatGPT Plugins, OpenAI Functions, Secure Multi-User System, Presets, completely open-source for self-hosting. Actively in public development.
https://librechat.ai/
MIT License
17.2k stars 2.87k forks source link

[Bug]: Bing does not take into account the message history in the conversation #1058

Closed CriDos closed 10 months ago

CriDos commented 10 months ago

What happened?

When using Bing, the message history in the conversation is not taken into account. However, the latest version of CLI - https://github.com/danny-avila/nodejs-gpt works fine. The same full Cookie string was used in both tests.

Demo [LibreChat v0.5.9]: http://agi.dedyn.io/ System: Ubuntu 22.04.3 Installation method: Docker (https://github.com/danny-avila/LibreChat/blob/main/docs/install/linux_install.md)

Steps to Reproduce

  1. Select Bing and set Cookie.
  2. Send "hi, write only one word `test`" and wait for the response.
  3. Send "ok, write that word again" and wait for the response, which is not related to the previous messages.

What browsers are you seeing the problem on?

Chrome

Relevant log output

index-287080be.js:1 connection is opened
index-287080be.js:1 final {title: 'New Chat', final: true, conversation: {…}, requestMessage: {…}, responseMessage: {…}}conversation: agentOptions: nullbingConversationId: "51D|BingProd|F285B8A478EB8F4CB0CD49F2F645B50FBB9A961E40C05722BE49E3E184649249"chatGptLabel: nullclientId: "914800821101339"context: nullconversationId: "ccf86007-153f-4e0c-9473-3e7b340461fb"conversationSignature: nullcreatedAt: "2023-10-16T15:09:28.277Z"endpoint: "bingAI"examples: Array(0)length: 0[[Prototype]]: Array(0)frequency_penalty: 0invocationId: 1jailbreak: falsejailbreakConversationId: nullmaxOutputTokens: 1024messages: Array(2)0: "652d52287c5a0e86707defc3"1: "652d522a7c5a0e86707defd1"length: 2[[Prototype]]: Array(0)model: nullmodelLabel: nullpresence_penalty: 0promptPrefix: nullsystemMessage: nulltemperature: 1title: "New Chat"toneStyle: "fast"topK: 40topP: 0.95top_p: 1updatedAt: "2023-10-16T15:09:31.704Z"user: "652ca62833c275aa004b7a8b"__v: 0_id: "652d52287c5a0e86707defc6"[[Prototype]]: Objectfinal: truerequestMessage: conversationId: "ccf86007-153f-4e0c-9473-3e7b340461fb"isCreatedByUser: truemessageId: "b17af4b0-a93d-4a17-9594-e83e7af05722"parentMessageId: "00000000-0000-0000-0000-000000000000"sender: "User"text: "hi, write only one word `test`"[[Prototype]]: ObjectresponseMessage: bingConversationId: "51D|BingProd|F285B8A478EB8F4CB0CD49F2F645B50FBB9A961E40C05722BE49E3E184649249"cancelled: falseconversationId: "ccf86007-153f-4e0c-9473-3e7b340461fb"error: falseisCreatedByUser: falsemessageId: "51721d17-4297-474c-a30a-8822777dc565"model: "BingAI"newMessageId: "51721d17-4297-474c-a30a-8822777dc565"parentMessageId: "b17af4b0-a93d-4a17-9594-e83e7af05722"sender: "BingAI"suggestions: Array(3)0: "Why did you write that?"1: "What is the purpose of this exercise?"2: "Can I ask a question about something else?"length: 3[[Prototype]]: Array(0)text: "**test**"unfinished: false[[Prototype]]: Objecttitle: "New Chat"[[Prototype]]: Object
index-287080be.js:1 connection is opened
index-287080be.js:1 final {title: 'New Chat', final: true, conversation: {…}, requestMessage: {…}, responseMessage: {…}}conversation: agentOptions: nullbingConversationId: "51D|BingProd|A25C850F6A97919FA117436DA67E5FE41112422B9E610466A14DBEAAC7B2A984"chatGptLabel: nullclientId: "914800821101339"context: nullconversationId: "ccf86007-153f-4e0c-9473-3e7b340461fb"conversationSignature: nullcreatedAt: "2023-10-16T15:09:28.277Z"endpoint: "bingAI"examples: Array(0)length: 0[[Prototype]]: Array(0)frequency_penalty: 0invocationId: 1jailbreak: falsejailbreakConversationId: nullmaxOutputTokens: 1024messages: Array(4)0: "652d52287c5a0e86707defc3"1: "652d522a7c5a0e86707defd1"2: "652d52307c5a0e86707defee"3: "652d52327c5a0e86707deffc"length: 4[[Prototype]]: Array(0)model: nullmodelLabel: nullpresence_penalty: 0promptPrefix: nullsystemMessage: nulltemperature: 1title: "New Chat"toneStyle: "fast"topK: 40topP: 0.95top_p: 1updatedAt: "2023-10-16T15:09:42.075Z"user: "652ca62833c275aa004b7a8b"__v: 0_id: "652d52287c5a0e86707defc6"[[Prototype]]: Objectfinal: truerequestMessage: conversationId: "ccf86007-153f-4e0c-9473-3e7b340461fb"isCreatedByUser: truemessageId: "ccb63888-640f-4aad-b15d-00963787b350"parentMessageId: "51721d17-4297-474c-a30a-8822777dc565"sender: "User"text: "ok, write that word again"[[Prototype]]: ObjectresponseMessage: bingConversationId: "51D|BingProd|A25C850F6A97919FA117436DA67E5FE41112422B9E610466A14DBEAAC7B2A984"cancelled: falseconversationId: "ccf86007-153f-4e0c-9473-3e7b340461fb"error: falseisCreatedByUser: falsemessageId: "7fe9ebd1-9fae-43bb-9928-9734e2dde4fa"model: "BingAI"newMessageId: "7fe9ebd1-9fae-43bb-9928-9734e2dde4fa"parentMessageId: "ccb63888-640f-4aad-b15d-00963787b350"sender: "BingAI"suggestions: Array(3)0: "I meant the word you wrote earlier."1: "The word was 'Generics'."2: "What do you mean by that?"length: 3[[Prototype]]: Array(0)text: "I'm sorry, I'm not sure which word you are referring to. Could you please provide more context or repeat the word?"unfinished: false[[Prototype]]: Objecttitle: "New Chat"[[Prototype]]: Object

Screenshots

image image

Code of Conduct

CriDos commented 10 months ago

How it should work. image

danny-avila commented 10 months ago

Thanks for reporting this, it will be an easy fix, slight oversight

danny-avila commented 10 months ago

@CriDos merged!