@lobehub/chat 0.147.20 → 0.147.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.147.21](https://github.com/lobehub/lobe-chat/compare/v0.147.20...v0.147.21)
6
+
7
+ <sup>Released on **2024-04-19**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Optimized file upload buttons and prompts.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Optimized file upload buttons and prompts, closes [#2050](https://github.com/lobehub/lobe-chat/issues/2050) ([c23087e](https://github.com/lobehub/lobe-chat/commit/c23087e))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 0.147.20](https://github.com/lobehub/lobe-chat/compare/v0.147.19...v0.147.20)
6
31
 
7
32
  <sup>Released on **2024-04-18**</sup>
package/README.md CHANGED
@@ -260,14 +260,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
260
260
 
261
261
  <!-- AGENT LIST -->
262
262
 
263
- | Recent Submits | Description |
264
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
265
- | [Biology Professor](https://chat-preview.lobehub.com/market?agent=bio-professor)<br/><sup>By **[luxiangze](https://github.com/luxiangze)** on **2024-04-13**</sup> | As a biology professor, you will receive questions and concepts about biology. Please explain these questions and concepts in specific and concise language, and try to use practical examples to illustrate them to help your audience better understand. Please ensure that your explanations are accurate and clear, and try to encourage creative and flexible answers. Respond in Chinese.<br/>`biology` |
266
- | [Master of Fortune Telling](https://chat-preview.lobehub.com/market?agent=fortune-teller)<br/><sup>By **[kamilkenrich](https://github.com/kamilkenrich)** on **2024-04-13**</sup> | Specializes in numerology, divination, astrology, and blood type analysis<br/>`numerology` `divination` `astrology` `psychology` `blood-type` `constellation` |
267
- | [Healthy Recipe Recommender](https://chat-preview.lobehub.com/market?agent=healthy-recipe-recommender)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | Customized nutrition meals, scientific combinations, healthy eating, your personal nutritionist.<br/>`recipes` `fitness-meals` `nutrition-meals` |
268
- | [SmartWeather Assistant](https://chat-preview.lobehub.com/market?agent=personal-weather-consultant)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | SmartWeather Assistant, your personal weather advisor, fashion guide, and positive energy booster!<br/>`weather` `assistant` `fashion` |
269
-
270
- > 📊 Total agents: [<kbd>**238**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
263
+ | Recent Submits | Description |
264
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
265
+ | [Chinese Academic Paper Editor](https://chat-preview.lobehub.com/market?agent=chinese-paper-polishing)<br/><sup>By **[y22emc2](https://github.com/y22emc2)** on **2024-04-15**</sup> | As an assistant for improving Chinese academic paper writing, your task is to enhance the provided text in terms of spelling, grammar, clarity, conciseness, and overall readability, to improve the text's academic standards and literary quality. This includes breaking down long sentences, reducing repetition, and providing improvement suggestions. Please provide the corrected version of the text first, then list the modifications in the markdown table below, along with the reasons for the changes.<br/>`academic-paper-writing` `proofreading` `text-editing` |
266
+ | [Biology Professor](https://chat-preview.lobehub.com/market?agent=bio-professor)<br/><sup>By **[luxiangze](https://github.com/luxiangze)** on **2024-04-13**</sup> | As a biology professor, you will receive questions and concepts about biology. Please explain these questions and concepts in specific and concise language, and try to use practical examples to illustrate them to help your audience better understand. Please ensure that your explanations are accurate and clear, and try to encourage creative and flexible answers. Respond in Chinese.<br/>`biology` |
267
+ | [Master of Fortune Telling](https://chat-preview.lobehub.com/market?agent=fortune-teller)<br/><sup>By **[kamilkenrich](https://github.com/kamilkenrich)** on **2024-04-13**</sup> | Specializes in numerology, divination, astrology, and blood type analysis<br/>`numerology` `divination` `astrology` `psychology` `blood-type` `constellation` |
268
+ | [High School Science Study Assistant](https://chat-preview.lobehub.com/market?agent=highschool-master)<br/><sup>By **[cnliucheng](https://github.com/cnliucheng)** on **2024-04-13**</sup> | I am a study assistant AI specially designed for Chinese high school students. Whether you encounter difficulties in physics, chemistry, mathematics, or biology, I can provide detailed answers and explanations for you. Not only that, I can also recommend suitable practice questions based on your learning progress to help you consolidate knowledge and improve learning efficiency. Additionally, I will use LaTeX format as much as possible to present the solution process and formulas.<br/>`high-school-study` `science-assistant` `problem-solving` `learning-progress` `la-te-x` |
269
+
270
+ > 📊 Total agents: [<kbd>**240**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
271
271
 
272
272
  <!-- AGENT LIST -->
273
273
 
package/README.zh-CN.md CHANGED
@@ -248,14 +248,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
248
248
 
249
249
  <!-- AGENT LIST -->
250
250
 
251
- | 最近新增 | 助手说明 |
252
- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
253
- | [生物学教授](https://chat-preview.lobehub.com/market?agent=bio-professor)<br/><sup>By **[luxiangze](https://github.com/luxiangze)** on **2024-04-13**</sup> | 作为一位生物学教授,您将收到关于生物学的问题和概念,请用具体而简明的语言解释这些问题和概念,并尽量使用实际例子进行说明,以帮助您的听众更好地理解。请确保您的解释准确而清晰,并试图鼓励创造性和灵活性的答案。用中文回答<br/>`生物` |
254
- | [命理大师](https://chat-preview.lobehub.com/market?agent=fortune-teller)<br/><sup>By **[kamilkenrich](https://github.com/kamilkenrich)** on **2024-04-13**</sup> | 擅长命理学、占卜预测、占星术和血型学分析<br/>`命理学、占卜、占星学、心理学、血型、星座` |
255
- | [健康食谱推荐师](https://chat-preview.lobehub.com/market?agent=healthy-recipe-recommender)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | 精准定制营养餐,科学搭配,健康饮食,你的私人营养师。<br/>`食谱、健身餐、营养餐` |
256
- | [智预小助手](https://chat-preview.lobehub.com/market?agent=personal-weather-consultant)<br/><sup>By **[Greasen](https://github.com/Greasen)** on **2024-04-11**</sup> | 智预小助手,您的私人天气顾问,穿搭指南,正能量加油器!<br/>`天气` `助理、穿搭` |
257
-
258
- > 📊 Total agents: [<kbd>**238**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
251
+ | 最近新增 | 助手说明 |
252
+ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
253
+ | [中文论文编辑师](https://chat-preview.lobehub.com/market?agent=chinese-paper-polishing)<br/><sup>By **[y22emc2](https://github.com/y22emc2)** on **2024-04-15**</sup> | 作为一名中文学术论文写作改进助理,你的任务是改进所提供文本的拼写、语法、清晰、简洁和整体可读性,提高文本的学术规范性、文学性,同时分解长句,减少重复,并提供改进建议。请先提供文本的更正版本,然后在 markdown 表格中列出修改的内容,并给出修改的理由。<br/>`学术论文写作` `校对` `文本编辑` |
254
+ | [生物学教授](https://chat-preview.lobehub.com/market?agent=bio-professor)<br/><sup>By **[luxiangze](https://github.com/luxiangze)** on **2024-04-13**</sup> | 作为一位生物学教授,您将收到关于生物学的问题和概念,请用具体而简明的语言解释这些问题和概念,并尽量使用实际例子进行说明,以帮助您的听众更好地理解。请确保您的解释准确而清晰,并试图鼓励创造性和灵活性的答案。用中文回答<br/>`生物` |
255
+ | [命理大师](https://chat-preview.lobehub.com/market?agent=fortune-teller)<br/><sup>By **[kamilkenrich](https://github.com/kamilkenrich)** on **2024-04-13**</sup> | 擅长命理学、占卜预测、占星术和血型学分析<br/>`命理学、占卜、占星学、心理学、血型、星座` |
256
+ | [高中理科学习助手](https://chat-preview.lobehub.com/market?agent=highschool-master)<br/><sup>By **[cnliucheng](https://github.com/cnliucheng)** on **2024-04-13**</sup> | 我是一个专门为中国高中生设计的学习辅助 AI。无论你在物理、化学、数学还是生物上遇到难题,我都能为你提供详细的解答和解析。不仅如此,我还能根据你的学习进度,推荐合适的练习题,帮助我巩固知识,提升学习效率。同时,我会尽可能使用 LaTeX 格式来呈现解题过程和公式<br/>`高中学习` `理科辅助` `题目解答` `学习进度` `la-te-x` |
257
+
258
+ > 📊 Total agents: [<kbd>**240**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
259
259
 
260
260
  <!-- AGENT LIST -->
261
261
 
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "تحديث معلومات المساعد",
120
120
  "upload": {
121
+ "actionFiletip": "تحميل المستند",
121
122
  "actionTooltip": "تحميل الصورة",
122
123
  "disabled": "النموذج الحالي لا يدعم التعرف على الرؤية، يرجى تغيير النموذج المستخدم",
123
124
  "dragDesc": "اسحب الملفات إلى هنا، يدعم تحميل عدة صور. اضغط على Shift لإرسال الصور مباشرة",
125
+ "dragFileDesc": "اسحب الصور والملفات هنا لدعم تحميل صور وملفات متعددة. اضغط باستمرار على Shift لإرسال صورة أو ملف مباشرة",
126
+ "dragFileTitle": "تحميل المستند",
124
127
  "dragTitle": "تحميل الصورة"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Актуализирай информацията за агента",
120
120
  "upload": {
121
+ "actionFiletip": "Загрузите файл",
121
122
  "actionTooltip": "Качи изображение",
122
123
  "disabled": "Текущият модел не поддържа визуално разпознаване. Моля, превключи моделите, за да използваш тази функция.",
123
124
  "dragDesc": "Плъзни и пусни файлове тук, поддържа се качване на няколко изображения. Задръж Shift, за да изпратиш изображения директно.",
125
+ "dragFileDesc": "Перетащите сюда изображения и файлы, чтобы можно было загрузить несколько изображений и файлов. Удерживайте нажатой клавишу Shift, чтобы отправить изображение или файл напрямую.",
126
+ "dragFileTitle": "Загрузите файл",
124
127
  "dragTitle": "Качи изображение"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Assistenteninformationen aktualisieren",
120
120
  "upload": {
121
+ "actionFiletip": "Laden Sie die Datei hoch",
121
122
  "actionTooltip": "Bild hochladen",
122
123
  "disabled": "Das aktuelle Modell unterstützt keine visuelle Erkennung. Bitte wechseln Sie das Modell, um es zu verwenden.",
123
124
  "dragDesc": "Dateien hierher ziehen, um mehrere Bilder hochzuladen. Halte die Umschalttaste gedrückt, um Bilder direkt zu senden.",
125
+ "dragFileDesc": "Ziehen Sie Bilder und Dateien hierher, um das Hochladen mehrerer Bilder und Dateien zu unterstützen. Halten Sie die Umschalttaste gedrückt, um ein Bild oder eine Datei direkt zu senden.",
126
+ "dragFileTitle": "Laden Sie die Datei hoch",
124
127
  "dragTitle": "Bild hochladen"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Update Agent Information",
120
120
  "upload": {
121
+ "actionFiletip": "Update File",
121
122
  "actionTooltip": "Upload Image",
122
123
  "disabled": "The current model does not support visual recognition. Please switch models to use this feature.",
123
124
  "dragDesc": "Drag and drop files here, support uploading multiple images. Hold down Shift to send images directly.",
125
+ "dragFileDesc": "Drag pictures and files here to support uploading multiple pictures and files. Hold down Shift to send an image or file directly.",
126
+ "dragFileTitle": "Update File",
124
127
  "dragTitle": "Upload Image"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Actualizar información del asistente",
120
120
  "upload": {
121
+ "actionFiletip": "Sube el archivo",
121
122
  "actionTooltip": "Subir imagen",
122
123
  "disabled": "El modelo actual no admite reconocimiento visual. Por favor, cambia de modelo para usar esta función",
123
124
  "dragDesc": "Arrastra y suelta archivos aquí, admite la carga de varias imágenes. Mantén presionada la tecla Shift para enviar las imágenes directamente.",
125
+ "dragFileDesc": "Arrastre imágenes y archivos aquí para admitir la carga de varias imágenes y archivos. Mantenga presionada la tecla Mayús para enviar una imagen o un archivo directamente.",
126
+ "dragFileTitle": "Sube el archivo",
124
127
  "dragTitle": "Subir imagen"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Mettre à jour les informations de l'agent",
120
120
  "upload": {
121
+ "actionFiletip": "Télécharger le fichier",
121
122
  "actionTooltip": "Télécharger une image",
122
123
  "disabled": "Le modèle actuel ne prend pas en charge la reconnaissance visuelle. Veuillez changer de modèle pour utiliser cette fonctionnalité.",
123
124
  "dragDesc": "Faites glisser les fichiers ici pour télécharger plusieurs images. Maintenez la touche Maj enfoncée pour envoyer directement les images.",
125
+ "dragFileDesc": "Faites glisser les images et les fichiers ici pour prendre en charge le téléchargement de plusieurs images et fichiers. Maintenez la touche Shift enfoncée pour envoyer directement une image ou un fichier.",
126
+ "dragFileTitle": "Télécharger le fichier",
124
127
  "dragTitle": "Télécharger une image"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Aggiorna informazioni assistente",
120
120
  "upload": {
121
+ "actionFiletip": "Carica il file",
121
122
  "actionTooltip": "Carica immagine",
122
123
  "disabled": "Il modello attuale non supporta il riconoscimento visivo, si prega di cambiare modello prima di utilizzarlo",
123
124
  "dragDesc": "Trascina i file qui, supporta il caricamento di più immagini. Tieni premuto Shift per inviare direttamente le immagini",
125
+ "dragFileDesc": "Trascina qui immagini e file per supportare il caricamento di più immagini e file. Tieni premuto Maiusc per inviare direttamente un'immagine o un file",
126
+ "dragFileTitle": "Carica il file",
124
127
  "dragTitle": "Carica immagine"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "エージェント情報を更新",
120
120
  "upload": {
121
+ "actionFiletip": "ファイルをアップロードする",
121
122
  "actionTooltip": "画像をアップロード",
122
123
  "disabled": "現在のモデルはビジュアル認識をサポートしていません。モデルを切り替えて使用してください",
123
124
  "dragDesc": "ファイルをここにドラッグしてください。複数の画像をアップロードできます。Shift キーを押しながら画像を直接送信することもできます。",
125
+ "dragFileDesc": "複数の写真やファイルのアップロードをサポートするには、ここに写真やファイルをドラッグします。 Shift キーを押しながら画像またはファイルを直接送信します。",
126
+ "dragFileTitle": "ファイルをアップロードする",
124
127
  "dragTitle": "画像をアップロード"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "도우미 정보 업데이트",
120
120
  "upload": {
121
+ "actionFiletip": "파일 업로드",
121
122
  "actionTooltip": "이미지 업로드",
122
123
  "disabled": "현재 모델은 시각 인식을 지원하지 않습니다. 모델을 전환한 후 사용해주세요.",
123
124
  "dragDesc": "여기로 파일을 끌어다 놓거나 여러 이미지를 업로드할 수 있습니다. Shift를 누른 채로 이미지를 직접 보내기",
125
+ "dragFileDesc": "여러 사진과 파일 업로드를 지원하려면 여기로 사진과 파일을 드래그하세요. 이미지나 파일을 직접 보내려면 Shift 키를 누르세요",
126
+ "dragFileTitle": "파일 업로드",
124
127
  "dragTitle": "이미지 업로드"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Assistentgegevens bijwerken",
120
120
  "upload": {
121
+ "actionFiletip": "Upload het bestand",
121
122
  "actionTooltip": "Upload afbeelding",
122
123
  "disabled": "Het huidige model ondersteunt geen visuele herkenning. Schakel over naar een ander model om dit te gebruiken.",
123
124
  "dragDesc": "Sleep bestanden hierheen om meerdere afbeeldingen te uploaden. Houd Shift ingedrukt om afbeeldingen direct te verzenden",
125
+ "dragFileDesc": "Sleep afbeeldingen en bestanden hierheen om het uploaden van meerdere afbeeldingen en bestanden te ondersteunen. Houd Shift ingedrukt om een ​​afbeelding of bestand rechtstreeks te verzenden",
126
+ "dragFileTitle": "Upload het bestand",
124
127
  "dragTitle": "Upload afbeelding"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Aktualizuj informacje asystenta",
120
120
  "upload": {
121
+ "actionFiletip": "Prześlij plik",
121
122
  "actionTooltip": "Prześlij obraz",
122
123
  "disabled": "Obecny model nie obsługuje rozpoznawania wizyjnego. Proszę przełączyć model.",
123
124
  "dragDesc": "Przeciągnij pliki tutaj, obsługiwane jest przesyłanie wielu obrazów. Naciśnij klawisz Shift, aby wysłać obraz bezpośrednio",
125
+ "dragFileDesc": "Przeciągnij zdjęcia i pliki tutaj, aby umożliwić przesyłanie wielu zdjęć i plików. Przytrzymaj klawisz Shift, aby bezpośrednio wysłać obraz lub plik",
126
+ "dragFileTitle": "Prześlij plik",
124
127
  "dragTitle": "Prześlij obraz"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Atualizar Informações do Assistente",
120
120
  "upload": {
121
+ "actionFiletip": "Enviar arquivo",
121
122
  "actionTooltip": "Enviar Imagem",
122
123
  "disabled": "O modelo atual não suporta reconhecimento visual. Por favor, altere o modelo antes de usar.",
123
124
  "dragDesc": "Arraste os arquivos aqui, suporta o envio de várias imagens. Pressione Shift para enviar as imagens diretamente.",
125
+ "dragFileDesc": "Arraste fotos e arquivos aqui para suportar o upload de várias fotos e arquivos. Mantenha pressionada a tecla Shift para enviar uma imagem ou arquivo diretamente.",
126
+ "dragFileTitle": "Enviar arquivo",
124
127
  "dragTitle": "Enviar Imagem"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Обновить информацию помощника",
120
120
  "upload": {
121
+ "actionFiletip": "Загрузите файл",
121
122
  "actionTooltip": "Загрузить изображение",
122
123
  "disabled": "Текущая модель не поддерживает визуальное распознавание. Пожалуйста, выберите другую модель.",
123
124
  "dragDesc": "Перетащите файлы сюда, поддерживается загрузка нескольких изображений. Удерживайте Shift для отправки изображений",
125
+ "dragFileDesc": "Перетащите сюда изображения и файлы, чтобы можно было загрузить несколько изображений и файлов. Удерживайте нажатой клавишу Shift, чтобы отправить изображение или файл напрямую",
126
+ "dragFileTitle": "Загрузите файл",
124
127
  "dragTitle": "Загрузить изображение"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Asistan Bilgilerini Güncelle",
120
120
  "upload": {
121
+ "actionFiletip": "Dosyayı Yükle",
121
122
  "actionTooltip": "Resim Yükle",
122
123
  "disabled": "Geçerli model görüntü tanıma desteğini desteklemiyor, lütfen modeli değiştirerek kullanın",
123
124
  "dragDesc": "Dosyaları buraya sürükleyip bırakın, birden fazla resim yüklemeyi destekler. Resimleri doğrudan göndermek için Shift tuşunu basılı tutun.",
125
+ "dragFileDesc": "Birden fazla resim ve dosya yüklemeyi desteklemek için resimleri ve dosyaları buraya sürükleyin. Bir görüntüyü veya dosyayı doğrudan göndermek için Shift tuşunu basılı tutun.",
126
+ "dragFileTitle": "Dosyayı Yükle",
124
127
  "dragTitle": "Resim Yükle"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "Cập nhật thông tin trợ lý",
120
120
  "upload": {
121
+ "actionFiletip": "Tải lên tập tin",
121
122
  "actionTooltip": "Tải lên hình ảnh",
122
123
  "disabled": "Mô hình hiện tại không hỗ trợ nhận diện hình ảnh, vui lòng chuyển đổi mô hình trước khi sử dụng",
123
124
  "dragDesc": "Kéo và thả tệp vào đây, hỗ trợ tải lên nhiều hình ảnh. Giữ phím Shift để gửi hình ảnh trực tiếp",
125
+ "dragFileDesc": "Kéo ảnh và tệp vào đây để hỗ trợ tải lên nhiều ảnh và tệp. Giữ phím Shift để gửi hình ảnh hoặc tập tin trực tiếp",
126
+ "dragFileTitle": "Tải lên tập tin",
124
127
  "dragTitle": "Tải lên hình ảnh"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "更新助理信息",
120
120
  "upload": {
121
+ "actionFiletip": "上传文件",
121
122
  "actionTooltip": "上传图片",
122
- "disabled": "当前模型不支持视觉识别,请切换模型后使用",
123
+ "disabled": "当前模型不支持视觉识别和文件分析,请切换模型后使用",
123
124
  "dragDesc": "拖拽文件到这里,支持上传多个图片。按住 Shift 直接发送图片",
125
+ "dragFileDesc": "拖拽图片和文件到这里,支持上传多个图片和文件。按住 Shift 直接发送图片或文件",
126
+ "dragFileTitle": "上传文件",
124
127
  "dragTitle": "上传图片"
125
128
  }
126
129
  }
@@ -118,9 +118,12 @@
118
118
  },
119
119
  "updateAgent": "更新助理信息",
120
120
  "upload": {
121
+ "actionFiletip": "上傳文件",
121
122
  "actionTooltip": "上傳圖片",
122
123
  "disabled": "當前模型不支援視覺識別,請切換模型後使用",
123
124
  "dragDesc": "拖拽文件到這裡,支持上傳多個圖片。按住 Shift 直接發送圖片",
125
+ "dragFileDesc": "拖曳圖片和文件至此,支援上傳多張圖片和文件。按住 Shift 直接傳送圖片或文件",
126
+ "dragFileTitle": "上傳文件",
124
127
  "dragTitle": "上傳圖片"
125
128
  }
126
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.147.20",
3
+ "version": "0.147.21",
4
4
  "description": "Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
5
5
  "keywords": [
6
6
  "framework",
@@ -151,7 +151,7 @@ const DragUpload = memo(() => {
151
151
  window.removeEventListener('drop', handleDrop);
152
152
  window.removeEventListener('paste', handlePaste);
153
153
  };
154
- }, [handleDrop, handlePaste]);
154
+ }, [handleDragEnter, handleDragOver, handleDragLeave, handleDrop, handlePaste]);
155
155
 
156
156
  return (
157
157
  isDragging && (
@@ -164,8 +164,8 @@ const DragUpload = memo(() => {
164
164
  <Icon icon={FileText} size={{ fontSize: 64, strokeWidth: 1 }} />
165
165
  </Flexbox>
166
166
  <Flexbox align={'center'} gap={8} style={{ textAlign: 'center' }}>
167
- <Flexbox className={styles.title}>{t('upload.dragTitle')}</Flexbox>
168
- <Flexbox className={styles.desc}>{t('upload.dragDesc')}</Flexbox>
167
+ <Flexbox className={styles.title}>{t(enabledFiles ? 'upload.dragFileTitle' : 'upload.dragTitle')}</Flexbox>
168
+ <Flexbox className={styles.desc}>{t(enabledFiles ? 'upload.dragFileDesc' : 'upload.dragDesc')}</Flexbox>
169
169
  </Flexbox>
170
170
  </Center>
171
171
  </div>
@@ -1,7 +1,7 @@
1
1
  import { ActionIcon, Icon } from '@lobehub/ui';
2
2
  import { Upload } from 'antd';
3
3
  import { useTheme } from 'antd-style';
4
- import { LucideImage, LucideLoader2 } from 'lucide-react';
4
+ import { LucideImage, FileUp, LucideLoader2 } from 'lucide-react';
5
5
  import { memo, useState } from 'react';
6
6
  import { useTranslation } from 'react-i18next';
7
7
  import { Center } from 'react-layout-kit';
@@ -51,9 +51,9 @@ const FileUpload = memo(() => {
51
51
  ) : (
52
52
  <ActionIcon
53
53
  disable={!canUpload}
54
- icon={LucideImage}
54
+ icon={enabledFiles ? FileUp : LucideImage}
55
55
  placement={'bottom'}
56
- title={t(canUpload ? 'upload.actionTooltip' : 'upload.disabled')}
56
+ title={t(canUpload ? (enabledFiles ? 'upload.actionFiletip' : 'upload.actionTooltip') : 'upload.disabled')}
57
57
  />
58
58
  )}
59
59
  </Upload>
@@ -120,9 +120,12 @@ export default {
120
120
  },
121
121
  updateAgent: '更新助理信息',
122
122
  upload: {
123
+ actionFiletip: '上传文件',
123
124
  actionTooltip: '上传图片',
124
- disabled: '当前模型不支持视觉识别,请切换模型后使用',
125
+ disabled: '当前模型不支持视觉识别和文件分析,请切换模型后使用',
125
126
  dragDesc: '拖拽文件到这里,支持上传多个图片。按住 Shift 直接发送图片',
126
- dragTitle: '上传图片',
127
+ dragFileDesc: '拖拽图片和文件到这里,支持上传多个图片和文件。按住 Shift 直接发送图片或文件',
128
+ dragFileTitle: '上传文件',
129
+ dragTitle: '上传图片'
127
130
  },
128
131
  };
package/vercel.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "installCommand": "bun install"
2
+ "installCommand": "npx bun@1.1.3 install"
3
3
  }