chore: update copy validation format type
This commit is contained in:
parent
f95e17c047
commit
ec9925ed5a
@ -235,11 +235,12 @@ const ChatInput = ({ model, className, initialMessage }: ChatInputProps) => {
|
|||||||
]
|
]
|
||||||
|
|
||||||
if (!allowedTypes.includes(actualType)) {
|
if (!allowedTypes.includes(actualType)) {
|
||||||
const supportedFormats = model?.provider === 'llamacpp'
|
const supportedFormats =
|
||||||
? 'JPEG, JPG, and PNG'
|
model?.provider === 'llamacpp'
|
||||||
: 'JPEG, JPG, PNG, and PDF'
|
? 'JPEG, JPG, and PNG'
|
||||||
|
: 'JPEG, JPG, PNG, and PDF'
|
||||||
setMessage(
|
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
|
// Reset file input to allow re-uploading
|
||||||
if (fileInputRef.current) {
|
if (fileInputRef.current) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user