Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing conversation history not working #6

Closed
peterneutron opened this issue Jun 11, 2023 · 0 comments
Closed

Importing conversation history not working #6

peterneutron opened this issue Jun 11, 2023 · 0 comments

Comments

@peterneutron
Copy link

peterneutron commented Jun 11, 2023

I recently switched from https://github.com/mckaywrigley/chatbot-ui to this repo and tried to import my old conversation history but this only loops the most recent user question and totally misses the answers coming from the assistant. Here is an example:

JSON input:

...
"messages": [
        {
          "role": "user",
          "content": "QUESTION 1"
        },
        {
          "role": "assistant",
          "content": "ANSWER 1"
        },
        {
          "role": "user",
          "content": "QUESTION 2"
        },
        {
          "role": "assistant",
          "content": "ANSWER 2"
        },
...

UI output:

...
QUESTION 2
QUESTION 2
...

Edit:
Streamlined and simplified the example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant