edgar971 / open-chat

A self-hosted, offline, ChatGPT-like chatbot with different LLM support. 100% private, with no data leaving your device.
MIT License
64 stars 8 forks source link

unable to change default system prompt #15

Open JTN02 opened 6 months ago

JTN02 commented 6 months ago

I’ve been trying to change the default prompt of the Openchat-cuda docker on my unraid server and I’ve spent about two days on it. And more hours then I care to admit. The default prompt is annoying and useless. And having to change it every single time I want to start a chat drives me crazy. My idea was it would be nice if I could set a default prompt through the docker template by adding a variable for it. That didn’t work.

My next thought then was I would edit the files and replace the default prompt with one that I care to use. Well, in navigating the file system in the console for the docker, it looks nothing like the files on the GitHub page. Doing “ls -a” brings up completely different files than what’s listed on the GitHub page. The only file similar is the run.sh. I am also unable to edit any of these files in nano or Vin as when I attempt to install them in the console, it proceeds to fail every single time. Doesn’t really matter though because I can’t find the file I need to edit.

My next thought was, that I’ll find the files through the GUI. But it doesn’t have an AppData folder. I tried to add a Path to the docker template that would create an AppData folder. Which it did, but it did not deposit any of the files there.

I have no idea how to achieve this Goal. And need help. After hours of googling and learning, I am stuck. Any help would be greatly appreciated. It would be an amazing idea to be able to change the default system prompt through the web GUI in the future.