Originally created by @robertvazan on GitHub (Feb 23, 2024).
Bug Report
Description
Bug Summary:
WebUI caches the system prompt somewhere and fails to clear the cache when custom modelfile is modified.
Steps to Reproduce:
Create custom modelfile with system prompt. I have used dolphin-mistral.
Start a chat using the custom chatbot. Ollama logs show the system prompt is used.
Edit the custom modelfile. Change the system prompt and save.
Start a new chat using the same custom chatbot.
Expected Behavior:
Ollama logs should show the updated system prompt.
Actual Behavior:
According to ollama logs, WebUI continues to use the old system prompt.
Environment
Operating System: Fedora 39
Browser (if applicable): Firefox 122
Reproduction Details
Confirmation:
I have read and followed all the instructions provided in the README.md.
I have reviewed the troubleshooting.md document.
I have included the browser console logs.
I have included the Docker container logs.
More info available upon request.
Installation Method
Latest docker image.
Originally created by @robertvazan on GitHub (Feb 23, 2024).
# Bug Report
## Description
**Bug Summary:**
WebUI caches the system prompt somewhere and fails to clear the cache when custom modelfile is modified.
**Steps to Reproduce:**
1. Create custom modelfile with system prompt. I have used dolphin-mistral.
2. Start a chat using the custom chatbot. Ollama logs show the system prompt is used.
3. Edit the custom modelfile. Change the system prompt and save.
4. Start a new chat using the same custom chatbot.
**Expected Behavior:**
Ollama logs should show the updated system prompt.
**Actual Behavior:**
According to ollama logs, WebUI continues to use the old system prompt.
## Environment
- **Operating System:** Fedora 39
- **Browser (if applicable):** Firefox 122
## Reproduction Details
**Confirmation:**
- [x] I have read and followed all the instructions provided in the README.md.
- [x] I have reviewed the troubleshooting.md document.
- [ ] I have included the browser console logs.
- [ ] I have included the Docker container logs.
More info available upon request.
## Installation Method
Latest docker image.
PS: Just noticed that when switching from custom model to its base model, WebUI incorrectly continues to use system prompt from the custom model. That's probably the same bug.
@robertvazan commented on GitHub (Feb 23, 2024):
PS: Just noticed that when switching from custom model to its base model, WebUI incorrectly continues to use system prompt from the custom model. That's probably the same bug.
Not only is this caused by underlying bugs in Ollama, it is actually fixed in the most recent release of Ollama! I have been unlucky to pull a buggy version. Sorry.
@robertvazan commented on GitHub (Feb 23, 2024):
Not only is this caused by underlying bugs in Ollama, it is actually fixed in the most recent release of Ollama! I have been unlucky to pull a buggy version. Sorry.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @robertvazan on GitHub (Feb 23, 2024).
Bug Report
Description
Bug Summary:
WebUI caches the system prompt somewhere and fails to clear the cache when custom modelfile is modified.
Steps to Reproduce:
Expected Behavior:
Ollama logs should show the updated system prompt.
Actual Behavior:
According to ollama logs, WebUI continues to use the old system prompt.
Environment
Reproduction Details
Confirmation:
More info available upon request.
Installation Method
Latest docker image.
@robertvazan commented on GitHub (Feb 23, 2024):
PS: Just noticed that when switching from custom model to its base model, WebUI incorrectly continues to use system prompt from the custom model. That's probably the same bug.
@robertvazan commented on GitHub (Feb 23, 2024):
Not only is this caused by underlying bugs in Ollama, it is actually fixed in the most recent release of Ollama! I have been unlucky to pull a buggy version. Sorry.