char-fork/llama.cpp
git clone https://git.t4t.associates/char-fork/llama.cpp
fe235f434
char/aliceai-t5-moe
1/** 2* Attachment type enum for database message extras 3*/ 4export enum AttachmentType { 5AUDIO = 'AUDIO' , 6IMAGE = 'IMAGE' , 7LEGACY_CONTEXT = 'context' , // Legacy attachment type for backward compatibility 8MCP_PROMPT = 'MCP_PROMPT' , 9MCP_RESOURCE = 'MCP_RESOURCE' , 10= 'PDF' , 11TEXT = 'TEXT' , 12VIDEO = 'VIDEO' 13} 14 15/** 16* Unique identifiers for attachment menu items in the chat form action dropdowns. 17* Used to select which file upload or attachment action is triggered. 18*/ 19export enum AttachmentMenuItemId { 20AUDIO = 'audio' , 21IMAGES = 'images' , 22= 'pdf' , 23SYSTEM_MESSAGE = 'system-message' , 24TEXT = 'text' , 25VIDEO = 'video' 26} 27 28/** 29* Defines when an attachment menu item should be enabled. 30*/ 31export enum AttachmentItemEnabledWhen { 32ALWAYS = 'always' , 33HAS_AUDIO_MODALITY = 'hasAudioModality' , 34HAS_VIDEO_MODALITY = 'hasVideoModality' , 35HAS_VISION_MODALITY = 'hasVisionModality' 36} 37 38/** 39* Defines the callback action triggered when an attachment menu item is clicked. 40*/ 41export enum AttachmentAction { 42FILE_UPLOAD = 'onFileUpload' , 43SYSTEM_PROMPT_CLICK = 'onSystemPromptClick' 44} 45 46/** 47* Human-readable labels used when embedding attachments in outgoing messages. 48*/ 49export enum AttachmentLabel { 50FILE = 'File' , 51MCP_PROMPT = 'MCP Prompt' , 52MCP_RESOURCE = 'MCP Resource' , 53PDF_FILE = 'PDF File' 54}