chore: update copy validation format type

This commit is contained in:
Faisal Amir 2025-08-14 14:21:54 +07:00
parent f95e17c047
commit ec9925ed5a

View File

@ -235,11 +235,12 @@ const ChatInput = ({ model, className, initialMessage }: ChatInputProps) => {
]
if (!allowedTypes.includes(actualType)) {
const supportedFormats = model?.provider === 'llamacpp'
const supportedFormats =
model?.provider === 'llamacpp'
? 'JPEG, JPG, and PNG'
: 'JPEG, JPG, PNG, and PDF'
setMessage(
`File is not supported. Only ${supportedFormats} files are allowed.`
`File attachments not supported currently. Only ${supportedFormats} files are allowed.`
)
// Reset file input to allow re-uploading
if (fileInputRef.current) {