-
+

llama.cpp

@@ -368,7 +368,7 @@ - + File Upload Error @@ -377,7 +377,7 @@ -
+
{#if fileErrorData.generallyUnsupported.length > 0}

Unsupported File Types

@@ -398,8 +398,6 @@ {#if fileErrorData.modalityUnsupported.length > 0}
-

Model Compatibility Issues

-
{#each fileErrorData.modalityUnsupported as file (file.name)}
@@ -415,14 +413,14 @@
{/if} +
-
-

This model supports:

+
+

This model supports:

-

- {fileErrorData.supportedTypes.join(', ')} -

-
+

+ {fileErrorData.supportedTypes.join(', ')} +

diff --git a/tools/server/webui/src/lib/components/app/index.ts b/tools/server/webui/src/lib/components/app/index.ts index 392132f442..a695f99747 100644 --- a/tools/server/webui/src/lib/components/app/index.ts +++ b/tools/server/webui/src/lib/components/app/index.ts @@ -2,6 +2,7 @@ export { default as ChatAttachmentsList } from './chat/ChatAttachments/ChatAttac export { default as ChatAttachmentFilePreview } from './chat/ChatAttachments/ChatAttachmentFilePreview.svelte'; export { default as ChatAttachmentImagePreview } from './chat/ChatAttachments/ChatAttachmentImagePreview.svelte'; export { default as ChatAttachmentPreviewDialog } from './chat/ChatAttachments/ChatAttachmentPreviewDialog.svelte'; +export { default as ChatAttachmentsViewAllDialog } from './chat/ChatAttachments/ChatAttachmentsViewAllDialog.svelte'; export { default as ChatForm } from './chat/ChatForm/ChatForm.svelte'; export { default as ChatFormTextarea } from './chat/ChatForm/ChatFormTextarea.svelte'; @@ -42,6 +43,8 @@ export { default as KeyboardShortcutInfo } from './misc/KeyboardShortcutInfo.sve export { default as MarkdownContent } from './misc/MarkdownContent.svelte'; +export { default as RemoveButton } from './misc/RemoveButton.svelte'; + export { default as ServerStatus } from './server/ServerStatus.svelte'; export { default as ServerErrorSplash } from './server/ServerErrorSplash.svelte'; export { default as ServerLoadingSplash } from './server/ServerLoadingSplash.svelte'; diff --git a/tools/server/webui/src/lib/components/app/misc/RemoveButton.svelte b/tools/server/webui/src/lib/components/app/misc/RemoveButton.svelte new file mode 100644 index 0000000000..173685510f --- /dev/null +++ b/tools/server/webui/src/lib/components/app/misc/RemoveButton.svelte @@ -0,0 +1,26 @@ + + + diff --git a/tools/server/webui/src/lib/types/chat.d.ts b/tools/server/webui/src/lib/types/chat.d.ts index d803a5aa0f..ee3990b04b 100644 --- a/tools/server/webui/src/lib/types/chat.d.ts +++ b/tools/server/webui/src/lib/types/chat.d.ts @@ -11,6 +11,29 @@ export interface ChatUploadedFile { textContent?: string; } +export interface ChatAttachmentDisplayItem { + id: string; + name: string; + size?: number; + preview?: string; + type: string; + isImage: boolean; + uploadedFile?: ChatUploadedFile; + attachment?: DatabaseMessageExtra; + attachmentIndex?: number; + textContent?: string; +} + +export interface ChatAttachmentPreviewItem { + uploadedFile?: ChatUploadedFile; + attachment?: DatabaseMessageExtra; + preview?: string; + name?: string; + type?: string; + size?: number; + textContent?: string; +} + export interface ChatMessageSiblingInfo { message: DatabaseMessage; siblingIds: string[];