Repository navigation
ui: Notebook Page - #19339
ui: Notebook Page#19339leszekhanusz wants to merge 73 commits into
Conversation
Fix buttons Fix model loading with router enabled remove stats for now lint
…s it is not saved
…lems + remove unused imports
|
Cool idea! I'd love to have something like this. |
|
Note: I let Claude and Gemini deal with the complicated merge after moving from tools/server/webui to tools/ui and other master changes. |
|
Hey @leszekhanusz can you please create a Feature issue for this feature? :) It's possible that it might hav some parent/sibling issues and one or more PRs related to it and I'm currently triaging and cleaning up some of the PM stuff in the project this week. I'd appreciate any help with this :) |
Sure! I made the issue #23450 |
Assisted-by: Antigravity
… page Assisted-by: Antigravity
…l and popup Assisted-by: Antigravity
…mpt generation runs Assisted-by: Antigravity
…ms on first token Assisted-by: Antigravity
…essageStats is disabled Assisted-by: Antigravity
…otebook Assisted-by: Antigravity
…textbox Assisted-by: Antigravity
…g unbreakable text Assisted-by: Antigravity
|
Disclaimer: I don't really want to spend too much time on this PR which requests me to always merge all the breaking changes. So all the commits today since the merge (including the merge) were made by AI, probably wrong, and I've not verified them seriously so I've switch this PR to draft mode again. It now includes the same contextGauge widget as the chat pages. If there is still interest to merge this PR, please tell me when you're ready to do it quick and I'll take a day to verify and clean everything. If not, please just close it. |
|
hey, @leszekhanusz don't worry about that I can always fix/refactor the code and push directly here. We still have a few high prio features & updates to be implemented in llama-ui, but please rest assured that i have this PR on my roadmap. |
Port notebook changes onto master's refactored UI stores: - chat processing state (predictedMs, public parseTimingData) now in stores/chat/processing.svelte.ts - modelsStore.contextSize moved to stores/models/index.svelte.ts - contextStatsStore notebookMode ported to stores/chat/context-stats - notebook uses ModelsSelector instead of the internal dropdown shell Co-Authored-By: Claude Opus 5.5 <[email protected]>
Apply eslint --fix and prettier for the stricter rules brought in by master (member/key ordering, import sorting, statement padding). Seed ChatMessageStatistics activeView from the initialView prop again, which had become unused. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Close #23450
This PR adds a Notebook page to the llama.cpp webui which allows raw text generation instead of using the chat API.
It is useful for story generation and for debugging purposes.
Only a single notebook is available, it is not saved for now in localstorage.
Features:
This PR has been tested:
Disclaimer:
Remaining issues to discuss/plan:
DialogChatSettings->DialogSettingsDialogChatError->DialogErrorChatMessageStatistics->GenerationStatisticsIt has not been done here to not complicate further the code.
tokenizemethod to get the total number of tokens, even if the display of stats is disabled. The display of total tokens could be put activated/deactivated a new parameter in the settings.̶ T̶h̶e̶ ̶C̶o̶m̶p̶l̶e̶t̶i̶o̶n̶S̶e̶r̶v̶i̶c̶e̶ ̶a̶l̶l̶o̶w̶s̶ ̶b̶o̶t̶h̶ ̶s̶t̶r̶e̶a̶m̶ ̶a̶n̶d̶ ̶n̶o̶n̶-̶s̶t̶r̶e̶a̶m̶ ̶c̶a̶l̶l̶s̶,̶ ̶a̶s̶ ̶i̶t̶ ̶i̶s̶ ̶m̶o̶d̶e̶l̶e̶d̶ ̶a̶f̶t̶e̶r̶ ̶t̶h̶e̶ ̶C̶h̶a̶t̶S̶e̶r̶v̶i̶c̶e̶ ̶w̶h̶i̶c̶h̶ ̶d̶o̶e̶s̶ ̶t̶h̶e̶ ̶s̶a̶m̶e̶ ̶t̶h̶i̶n̶g̶.̶ ̶A̶s̶ ̶w̶e̶ ̶a̶r̶e̶ ̶u̶s̶i̶n̶g̶ ̶i̶t̶ ̶o̶n̶l̶y̶ ̶w̶i̶t̶h̶ ̶s̶t̶r̶e̶a̶m̶:̶t̶r̶u̶e̶ ̶w̶e̶ ̶c̶o̶u̶l̶d̶ ̶r̶e̶m̶o̶v̶e̶ ̶t̶h̶e̶ ̶n̶o̶n̶-̶s̶t̶r̶e̶a̶m̶ ̶h̶a̶n̶d̶l̶i̶n̶g̶?̶ REMOVED
I'll work on those remaining issues if there is interest in merging this PR.
Screenshots:
Peek.2026-02-04.18-37.webm