mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-16 23:43:03 +00:00
Asked to add a section or change a few lines, models answer with a whole-note replace_note_content call and the rest of the note is gone, with nothing to undo because the editor only records versions on chat inserts. The tool already supports replace_range operations with an expected guard, but its description never said when to use them or how the offsets work, so models defaulted to sending the whole note back. The docstring, which is the description every model receives for this tool in note chats and normal chats alike, now states the preference for range edits and the offset, overlap and expected rules the handler enforces. Verified the text lands in the generated tool spec unchanged and that range edits, the expected mismatch rejection and whole-note replace behave as described against a sqlite data dir. |
||
|---|---|---|
| .. | ||
| data | ||
| open_webui | ||
| .dockerignore | ||
| .gitignore | ||
| dev.sh | ||
| requirements-slim.txt | ||
| requirements.txt | ||
| start.sh | ||
| start_windows.bat | ||