char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
fe235f434
char/aliceai-t5-moe
1import { FILE_TYPE_ICONS } from '$lib/constants' ; 2import { AttachmentAction , AttachmentItemEnabledWhen , AttachmentMenuItemId } from '$lib/enums' ; 3import type { AttachmentMenuItem } from '$lib/types' ; 4 5/** 6* File attachment menu items shown in both the desktop dropdown and mobile sheet. 7* The "Tools" submenu is handled separately by each component. 8*/ 9export const ATTACHMENT_FILE_ITEMS :AttachmentMenuItem [] = [ 10{ 11action :AttachmentAction . FILE_UPLOAD , 12class :'images-button' , 13disabledTooltip :'Image processing requires a vision model' , 14enabledWhen :AttachmentItemEnabledWhen . HAS_VISION_MODALITY , 15icon :FILE_TYPE_ICONS . image , 16id :AttachmentMenuItemId . IMAGES , 17label :'Images' 18}, 19{ 20action :AttachmentAction . FILE_UPLOAD , 21class :'audio-button' , 22disabledTooltip :'Audio files processing requires an audio model' , 23enabledWhen :AttachmentItemEnabledWhen . HAS_AUDIO_MODALITY , 24icon :FILE_TYPE_ICONS . audio , 25id :AttachmentMenuItemId . AUDIO , 26label :'Audio Files' 27}, 28{ 29action :AttachmentAction . FILE_UPLOAD , 30class :'video-button' , 31disabledTooltip :'Video files processing requires a video model' , 32enabledWhen :AttachmentItemEnabledWhen . HAS_VIDEO_MODALITY , 33icon :FILE_TYPE_ICONS . video , 34id :AttachmentMenuItemId . VIDEO , 35label :'Video Files' 36}, 37{ 38action :AttachmentAction . FILE_UPLOAD , 39enabledWhen :AttachmentItemEnabledWhen . ALWAYS , 40icon :FILE_TYPE_ICONS . text , 41id :AttachmentMenuItemId . TEXT , 42label :'Text Files' 43}, 44{ 45action :AttachmentAction . FILE_UPLOAD , 46disabledTooltip :'PDFs will be converted to text. Image-based PDFs may not work properly.' , 47enabledWhen :AttachmentItemEnabledWhen . ALWAYS , 48hasEnabledTooltip :true , 49icon :FILE_TYPE_ICONS . , 50id :AttachmentMenuItemId . , 51label :'PDF Files' 52} 53]; 54 55export const ATTACHMENT_TOOLTIP_TEXT = 'Add files, prompts, tools or MCP Servers' ;