From b333b06772c89d96aacb5490d6a219fba7c09cc6 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 12 Feb 2026 20:57:17 +0100 Subject: Engage! --- .../app/dialogs/DialogChatAttachmentPreview.svelte | 67 +++++++ .../dialogs/DialogChatAttachmentsViewAll.svelte | 54 ++++++ .../components/app/dialogs/DialogChatError.svelte | 70 +++++++ .../app/dialogs/DialogChatSettings.svelte | 37 ++++ .../app/dialogs/DialogConfirmation.svelte | 72 +++++++ .../app/dialogs/DialogConversationSelection.svelte | 68 +++++++ .../dialogs/DialogConversationTitleUpdate.svelte | 46 +++++ .../app/dialogs/DialogEmptyFileAlert.svelte | 61 ++++++ .../app/dialogs/DialogModelInformation.svelte | 211 +++++++++++++++++++++ .../app/dialogs/DialogModelNotAvailable.svelte | 76 ++++++++ 10 files changed, 762 insertions(+) create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentPreview.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentsViewAll.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatError.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatSettings.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConfirmation.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationSelection.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationTitleUpdate.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogEmptyFileAlert.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelInformation.svelte create mode 100644 llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelNotAvailable.svelte (limited to 'llama.cpp/tools/server/webui/src/lib/components/app/dialogs') diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentPreview.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentPreview.svelte new file mode 100644 index 0000000..012ba00 --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentPreview.svelte @@ -0,0 +1,67 @@ + + + + + + {displayName} + + {#if displaySize} + {formatFileSize(displaySize)} + {/if} + + + + + + diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentsViewAll.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentsViewAll.svelte new file mode 100644 index 0000000..33ab0fe --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatAttachmentsViewAll.svelte @@ -0,0 +1,54 @@ + + + + + + + + + All Attachments ({totalCount}) + View and manage all attached files + + + + + + diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatError.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatError.svelte new file mode 100644 index 0000000..b4340e8 --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatError.svelte @@ -0,0 +1,70 @@ + + + + + + + {#if isTimeout} + + {:else} + + {/if} + + {title} + + + + {description} + + + +
+

{message}

+ {#if contextInfo} +
+

+ Prompt tokens: + {contextInfo.n_prompt_tokens.toLocaleString()} +

+

Context size: {contextInfo.n_ctx.toLocaleString()}

+
+ {/if} +
+ + + handleOpenChange(false)}>Close + +
+
diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatSettings.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatSettings.svelte new file mode 100644 index 0000000..e9aaa10 --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogChatSettings.svelte @@ -0,0 +1,37 @@ + + + + + + + diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConfirmation.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConfirmation.svelte new file mode 100644 index 0000000..b5175a9 --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConfirmation.svelte @@ -0,0 +1,72 @@ + + + + + + + {#if icon} + {@const IconComponent = icon} + + {/if} + {title} + + + + {description} + + + + + {cancelText} + + {confirmText} + + + + diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationSelection.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationSelection.svelte new file mode 100644 index 0000000..1f8ea64 --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationSelection.svelte @@ -0,0 +1,68 @@ + + + + + + + + + + Select Conversations to {mode === 'export' ? 'Export' : 'Import'} + + + {#if mode === 'export'} + Choose which conversations you want to export. Selected conversations will be downloaded + as a JSON file. + {:else} + Choose which conversations you want to import. Selected conversations will be merged + with your existing conversations. + {/if} + + + + + + + diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationTitleUpdate.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationTitleUpdate.svelte new file mode 100644 index 0000000..4a9ecce --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogConversationTitleUpdate.svelte @@ -0,0 +1,46 @@ + + + + + + Update Conversation Title? + + + Do you want to update the conversation title to match the first message content? + + + +
+
+

Current title:

+ +

{currentTitle}

+
+ +
+

New title would be:

+ +

{newTitle}

+
+
+ + + + + + +
+
diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogEmptyFileAlert.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogEmptyFileAlert.svelte new file mode 100644 index 0000000..f875b0a --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogEmptyFileAlert.svelte @@ -0,0 +1,61 @@ + + + + + + + + + Empty Files Detected + + + + The following files are empty and have been removed from your attachments: + + + +
+
+
Empty Files:
+ +
    + {#each emptyFiles as fileName (fileName)} +
  • {fileName}
  • + {/each} +
+
+ +
+
What happened:
+ +
    +
  • Empty files cannot be processed or sent to the AI model
  • + +
  • These files have been automatically removed from your attachments
  • + +
  • You can try uploading files with content instead
  • +
+
+
+ + + handleOpenChange(false)}>Got it + +
+
diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelInformation.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelInformation.svelte new file mode 100644 index 0000000..dfea47c --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelInformation.svelte @@ -0,0 +1,211 @@ + + + + + + + + Model Information + Current model details and capabilities + + +
+ {#if isLoadingModels} +
+
Loading model information...
+
+ {:else if firstModel} + {@const modelMeta = firstModel.meta} + + {#if serverProps} + + + + Model + + +
+ + {modelName} + + + +
+
+
+
+ + + + File Path + + + + {serverProps.model_path} + + + + + + + + + Context Size + {formatNumber(serverProps.default_generation_settings.n_ctx)} tokens + + + + {#if modelMeta?.n_ctx_train} + + Training Context + {formatNumber(modelMeta.n_ctx_train)} tokens + + {/if} + + + {#if modelMeta?.size} + + Model Size + {formatFileSize(modelMeta.size)} + + {/if} + + + {#if modelMeta?.n_params} + + Parameters + {formatParameters(modelMeta.n_params)} + + {/if} + + + {#if modelMeta?.n_embd} + + Embedding Size + {formatNumber(modelMeta.n_embd)} + + {/if} + + + {#if modelMeta?.n_vocab} + + Vocabulary Size + {formatNumber(modelMeta.n_vocab)} tokens + + {/if} + + + {#if modelMeta?.vocab_type} + + Vocabulary Type + {modelMeta.vocab_type} + + {/if} + + + + Parallel Slots + {serverProps.total_slots} + + + + {#if modalities.length > 0} + + Modalities + +
+ +
+
+
+ {/if} + + + + Build Info + {serverProps.build_info} + + + + {#if serverProps.chat_template} + + Chat Template + +
+
{serverProps.chat_template}
+
+
+
+ {/if} +
+
+ {/if} + {:else if !isLoadingModels} +
+
No model information available
+
+ {/if} +
+
+
diff --git a/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelNotAvailable.svelte b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelNotAvailable.svelte new file mode 100644 index 0000000..a6c2029 --- /dev/null +++ b/llama.cpp/tools/server/webui/src/lib/components/app/dialogs/DialogModelNotAvailable.svelte @@ -0,0 +1,76 @@ + + + + + + + + Model Not Available + + + + The requested model could not be found. Select an available model to continue. + + + +
+
+

+ Requested: {modelName} +

+
+ + {#if availableModels.length > 0} +
+

Select an available model:

+
+ {#each availableModels as model (model)} + + {/each} +
+
+ {/if} +
+ + + handleOpenChange(false)}>Cancel + +
+
-- cgit v1.2.3