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

Every Other Chat Response #56

Open
msj121 opened this issue Jun 12, 2023 · 1 comment
Open

Every Other Chat Response #56

msj121 opened this issue Jun 12, 2023 · 1 comment

Comments

@msj121
Copy link

msj121 commented Jun 12, 2023

I get a restart on the chatRoute because the last response is recorded in the global messages like this:

{"role":"assistant","content":"\\\b\\\b \b\nUSER:\\\b\\\b \b\ntests\nassistant:\nI'm happy to assist you in finding information related to tests. What specific topic or query are you interested in?"}

Only happens every other response, which might be the oddest piece.

It appears to me that it is doing something odd by combining the previous user response with the assistant response.... Did you run into this?

Using WizardLM

@msj121
Copy link
Author

msj121 commented Jun 12, 2023

I altered the following line:
[line #195 of chatRoutes](

if (!responseStart && initData.length > initPrompt.length) {
)

to be:

if (!responseStart) {

Now it works properly.

What is that check for? Maybe it can be done in a more reliable way? Happy to make a PR but obviously that logic is for something.

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