keldenl / gpt-llama.cpp

A llama.cpp drop-in replacement for OpenAI's GPT endpoints, allowing GPT-powered apps to run off local llama.cpp models instead of OpenAI.
MIT License
594 stars 67 forks source link

Update WizardLM.js #55

Open msj121 opened 1 year ago

msj121 commented 1 year ago

Since the rolemap changes in WizardLM to "USER" from "user", so that they are Uppercase now, the stop prompts are missed when checked (they include "user", not "USER"). Either just add these additional stop prompts here, or perhaps force lowercase when checking in chatRoute, my fix seemed less obtrusive a fix.

Btw, do not overwrite original stop prompts like lower case "user" because I have seen this happen in WizardLM at least for me as well.