System prompt change in custom modelfile is ignored for a while #338

Closed
opened 2025-11-11 14:18:02 -06:00 by GiteaMirror · 2 comments
Owner

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:

  • 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.
Author
Owner

@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): 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.
Author
Owner

@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.

@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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#338