Coder Social home page Coder Social logo

Comments (6)

danny-avila avatar danny-avila commented on May 19, 2024

Hey thanks for the feedback.

If I'm understanding correctly, I think this is already somewhat possible by editing the message following the response you want to branch off from. It's an extra step but I believe has the desired effect?

from librechat.

HyunggyuJang avatar HyunggyuJang commented on May 19, 2024

Hey thanks for the feedback.

If I'm understanding correctly, I think this is already somewhat possible by editing the message following the response you want to branch off from. It's an extra step but I believe has the desired effect?

Currently, there is no straightforward way to edit the message already sent. The only way to do it is clicking the regeneration to branch off from the last prompt from the user, not from the response from the AI, which is usually where the user want to branch off. Also, it is not possible with that workaround to branch off from the message which has children already. Say

User: Hi

AI: Hello

User: What’s your name

AI: I’m Sydney

We cannot branch off from the message “Hello”, nor “Hi”. Only able to branch off from “What’s your name”.

from librechat.

HyunggyuJang avatar HyunggyuJang commented on May 19, 2024

From the implementation perspective, I think it would be sufficient to add a edit message button for all the messages generated by user; and allow to edit the message in place.

I’ll work on that on my free time.

from librechat.

danny-avila avatar danny-avila commented on May 19, 2024

From the implementation perspective, I think it would be sufficient to add a edit message button for all the messages generated by user; and allow to edit the message in place.

I’ll work on that on my free time.

Sorry I guess I was confused because there is already an edit function for all user messages and it allows editing in place. You can see it when you hover over the message. But I think you're talking about Bing/Sydney because this is exclusive to ChatGPT.

With Bing/Sydney here are my notes from @wtlyu who came up with regenerating for those models:
Regenerating creates a new request, but with a parameter that tells the server not to save the second userMessage and to connect the response parentMessageId to the first userMessage. This trick allows the response to be connected to the previous message, making it seem like a branching conversation. However, he suggests that this may actually be a bug because stopping generating or regenerating can cause new conversations to be created. and to quote directly: "My answer becomes that: regenerate and stop generating should not be enabled in bingai and sydney. because If you stop generating, the only thing you can do is create a new conversation. If you regenerate, the first response message cannot be appended new message."

from librechat.

HyunggyuJang avatar HyunggyuJang commented on May 19, 2024

As far as I know, the message tree (regeneration, stop response & message edit) totally fine with Sydney as it always open new conversion for each user prompt, and injecting all the conversation in the context into the previousMessages. So, for Sydney it shouldn't be a problem, and actually, the edit feature should be enabled for Sydney also.

For the plain bing AI, I think @wtlyu is right if we cling with the chatgpt-api, which doesn't allow to inject the context into previousMessages if we don't enable the jailbreak mode (if we do, it is just Sydney :) ).

from librechat.

HyunggyuJang avatar HyunggyuJang commented on May 19, 2024

Sorry I guess I was confused because there is already an edit function for all user messages and it allows editing in place. You can see it when you hover over the message. But I think you're talking about Bing/Sydney because this is exclusive to ChatGPT.

Ah, haven't look into the ChatGPT engines. Sorry for the misleading. I'll look into the implementation for that. Nice to know that! Thanks!

from librechat.

Related Issues (20)

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.