webui: save model name with conversation history (#13570)#14192
Closed
deepanshu2015 wants to merge 1 commit intoggml-org:masterfrom
Closed
webui: save model name with conversation history (#13570)#14192deepanshu2015 wants to merge 1 commit intoggml-org:masterfrom
deepanshu2015 wants to merge 1 commit intoggml-org:masterfrom
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for storing and displaying the model name in conversation history.
- Adds an optional modelName field to the Conversation type.
- Updates Dexie storage schema and createConversation to include modelName.
- Updates the app context and ChatMessage component to extract and display the model name.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tools/server/webui/src/utils/types.ts | Adds an optional modelName property to the Conversation interface. |
| tools/server/webui/src/utils/storage.ts | Updates Dexie versions with a new schema including modelName and modifies createConversation function to accept modelName. |
| tools/server/webui/src/utils/app.context.tsx | Extracts modelName from serverProps and passes it to createConversation. |
| tools/server/webui/src/components/ChatMessage.tsx | Updates useAppContext destructuring and displays the model name for assistant messages. |
Comments suppressed due to low confidence (1)
tools/server/webui/src/components/ChatMessage.tsx:194
- Consider displaying the model name saved in the conversation object instead of re-extracting it from serverProps. This change would ensure consistency between what is saved and what is rendered for the user.
{msg.role === 'assistant' && serverProps?.model_path && (
Contributor
|
This is being worked on at #14065 |
|
@deepanshu2015 FYI I have implemented this one in case you need it https://github.com/olegshulyakov/llama.ui/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make sure to read the contributing guidelines before submitting a PR
added the support for model name in AI chat message as requested.

It saves the model in local index.db as well as shown in below image
