Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

chore: update copy validation format type

Faisal Amirec9925ed5a72
diff --git a/web-app/src/containers/ChatInput.tsx b/web-app/src/containers/ChatInput.tsx
index 5d1d2b300..b370c5337 100644
--- a/web-app/src/containers/ChatInput.tsx
+++ b/web-app/src/containers/ChatInput.tsx
@@ -235,11 +235,12 @@ const ChatInput = ({ model, className, initialMessage }: ChatInputProps) => {
]
if (!allowedTypes.includes(actualType)) {
- const supportedFormats = model?.provider === 'llamacpp'
- ? 'JPEG, JPG, and PNG'
- : 'JPEG, JPG, PNG, and PDF'
+ 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) {