@lobehub/chat 0.123.1 → 0.123.2

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.123.2](https://github.com/lobehub/lobe-chat/compare/v0.123.1...v0.123.2)
6
+
7
+ <sup>Released on **2024-02-06**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix docker build.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix docker build, closes [#1231](https://github.com/lobehub/lobe-chat/issues/1231) ([e180722](https://github.com/lobehub/lobe-chat/commit/e180722))
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.123.1](https://github.com/lobehub/lobe-chat/compare/v0.123.0...v0.123.1)
6
31
 
7
32
  <sup>Released on **2024-02-05**</sup>
package/README.md CHANGED
@@ -193,7 +193,7 @@ e-commerce platform data access, and various third-party services.
193
193
  | [TokenInsights](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **feednews** on **2024-01-27**</sup> | Get realtime crypto price, BTC, ETH, BNB, and the latest insights.The latest coin news and airdrop opportunities.<br/>`crypto` `btc` `eth` `bnb` |
194
194
  | [Bilibili](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | Dive into Bilibili's vast content with features like keyword video search, replay access, interactive danmaku, trending video recommendations, and hot-search insights, all at your fingertips.<br/>`video` `bilibili` `search` |
195
195
 
196
- > 📊 Total plugins: [<kbd>**62**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
196
+ > 📊 Total plugins: [<kbd>**61**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
197
197
 
198
198
  <!-- PLUGIN LIST -->
199
199
 
package/README.zh-CN.md CHANGED
@@ -177,7 +177,7 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
177
177
  | [TokenInsights](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **feednews** on **2024-01-27**</sup> | 获取实时加密货币价格,BTC,ETH,BNB 和最新见解。最新的币新闻和空投机会。<br/>`加密货币` `btc` `eth` `bnb` |
178
178
  | [哔哩哔哩](https://chat-preview.lobehub.com/settings/agent)<br/><sup>By **LobeHub** on **2024-01-27**</sup> | 通过关键词视频搜索、回放访问、互动弹幕、热门视频推荐和热搜洞察等功能,深入体验哔哩哔哩丰富的内容,尽在您的指尖。<br/>`视频` `哔哩哔哩` `搜索` |
179
179
 
180
- > 📊 Total plugins: [<kbd>**62**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
180
+ > 📊 Total plugins: [<kbd>**61**</kbd>](https://github.com/lobehub/lobe-chat-plugins)
181
181
 
182
182
  <!-- PLUGIN LIST -->
183
183
 
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "نموذج مخصص، يدعم الوظائف والتعرف على الرؤية، يرجى التحقق من قدرة النموذج على القيام بذلك وفقًا للحالة الفعلية",
5
+ "file": "يدعم هذا النموذج قراءة وتعرف على الملفات المرفقة",
5
6
  "functionCall": "يدعم هذا النموذج استدعاء الوظائف",
6
7
  "tokens": "هذا النموذج يدعم حتى {{tokens}} رموز في جلسة واحدة",
7
8
  "vision": "يدعم هذا النموذج التعرف على الرؤية"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Benutzerdefiniertes Modell, das standardmäßig sowohl Funktionsaufrufe als auch visuelle Erkennung unterstützt. Bitte überprüfen Sie die Verfügbarkeit dieser Fähigkeiten basierend auf den tatsächlichen Anforderungen.",
5
+ "file": "Dieses Modell unterstützt das Hochladen von Dateien zur Erkennung.",
5
6
  "functionCall": "Dieses Modell unterstützt Funktionsaufrufe (Function Call).",
6
7
  "tokens": "Dieses Modell unterstützt maximal {{tokens}} Tokens pro einzelner Sitzung.",
7
8
  "vision": "Dieses Modell unterstützt visuelle Erkennung."
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Custom model, by default, supports both function call and visual recognition. Please verify the availability of the above capabilities based on actual situations.",
5
+ "file": "This model supports file upload for reading and recognition",
5
6
  "functionCall": "This model supports function call.",
6
7
  "tokens": "This model supports a maximum of {{tokens}} tokens per session.",
7
8
  "vision": "This model supports visual recognition."
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Modelo personalizado: admite tanto la llamada de funciones como el reconocimiento visual. Por favor, verifique la disponibilidad de estas capacidades según sea necesario.",
5
+ "file": "Este modelo admite la carga y reconocimiento de archivos",
5
6
  "functionCall": "Este modelo admite la llamada de funciones (Function Call).",
6
7
  "tokens": "Este modelo admite un máximo de {{tokens}} tokens por sesión.",
7
8
  "vision": "Este modelo admite el reconocimiento visual."
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Modèle personnalisé, par défaut prend en charge à la fois l'appel de fonction et la reconnaissance visuelle. Veuillez vérifier la disponibilité de ces capacités selon les besoins réels.",
5
+ "file": "Ce modèle prend en charge la lecture et la reconnaissance de fichiers",
5
6
  "functionCall": "Ce modèle prend en charge l'appel de fonction (Function Call).",
6
7
  "tokens": "Ce modèle prend en charge jusqu'à {{tokens}} jetons par session.",
7
8
  "vision": "Ce modèle prend en charge la reconnaissance visuelle."
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Modello personalizzato, di default supporta sia la chiamata di funzioni che il riconoscimento visivo. Si prega di verificare l'effettiva disponibilità di tali funzionalità in base alle esigenze specifiche.",
5
+ "file": "Questo modello supporta il caricamento e il riconoscimento dei file",
5
6
  "functionCall": "Questo modello supporta la chiamata di funzioni (Function Call)",
6
7
  "tokens": "Questo modello supporta un massimo di {{tokens}} token per singola sessione",
7
8
  "vision": "Questo modello supporta il riconoscimento visivo"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "カスタムモデル、デフォルトでは関数呼び出しとビジョン認識の両方をサポートしています。上記の機能の有効性を実際の状況で検証してください。",
5
+ "file": "このモデルはファイルのアップロードと認識をサポートしています",
5
6
  "functionCall": "このモデルは関数呼び出し(Function Call)をサポートしています。",
6
7
  "tokens": "このモデルは1つのセッションあたり最大{{tokens}}トークンをサポートしています。",
7
8
  "vision": "このモデルはビジョン認識をサポートしています。"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "사용자 정의 모델, 기본적으로 함수 호출 및 시각 인식을 모두 지원하며, 상기 기능의 가용성을 실제로 확인하십시오",
5
+ "file": "이 모델은 파일 업로드를 지원하여 인식할 수 있습니다.",
5
6
  "functionCall": "이 모델은 함수 호출을 지원합니다",
6
7
  "tokens": "이 모델은 단일 세션당 최대 {{tokens}} 토큰을 지원합니다",
7
8
  "vision": "이 모델은 시각 인식을 지원합니다"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Aangepast model, standaard ingesteld om zowel functieoproep als visuele herkenning te ondersteunen. Verifieer de beschikbaarheid van deze mogelijkheden op basis van de werkelijke situatie.",
5
+ "file": "Dit model ondersteunt het uploaden van bestanden voor lezen en herkenning",
5
6
  "functionCall": "Dit model ondersteunt functieoproep (Function Call).",
6
7
  "tokens": "Dit model ondersteunt maximaal {{tokens}} tokens per sessie.",
7
8
  "vision": "Dit model ondersteunt visuele herkenning."
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Niestandardowy model, domyślnie obsługujący zarówno wywołania funkcji, jak i rozpoznawanie wizualne. Proszę zweryfikować możliwość użycia tych funkcji w praktyce.",
5
+ "file": "Ten model obsługuje wczytywanie plików i rozpoznawanie",
5
6
  "functionCall": "Ten model obsługuje wywołania funkcji (Function Call).",
6
7
  "tokens": "Ten model obsługuje maksymalnie {{tokens}} tokenów w pojedynczej sesji.",
7
8
  "vision": "Ten model obsługuje rozpoznawanie wizualne."
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Modelo personalizado, suporta chamadas de função e reconhecimento visual. Por favor, verifique a disponibilidade dessas capacidades de acordo com a situação real.",
5
+ "file": "Este modelo suporta o carregamento de arquivos para leitura e reconhecimento",
5
6
  "functionCall": "Este modelo suporta chamadas de função (Function Call)",
6
7
  "tokens": "Este modelo suporta no máximo {{tokens}} tokens por sessão",
7
8
  "vision": "Este modelo suporta reconhecimento visual"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Пользовательская модель. По умолчанию поддерживает как вызов функций, так и визуальное распознавание. Пожалуйста, проверьте возможность использования указанных функций в вашем конкретном случае.",
5
+ "file": "Эта модель поддерживает загрузку файлов для чтения и распознавания",
5
6
  "functionCall": "Эта модель поддерживает вызов функций (Function Call).",
6
7
  "tokens": "Эта модель поддерживает до {{tokens}} токенов в одной сессии.",
7
8
  "vision": "Эта модель поддерживает визуальное распознавание."
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Özel model, varsayılan olarak hem fonksiyon çağrısını hem de görüntü tanımayı destekler, lütfen yukarıdaki yeteneklerin kullanılabilirliğini doğrulayın",
5
+ "file": "Bu model dosya yükleme ve tanıma desteği sağlar",
5
6
  "functionCall": "Bu model fonksiyon çağrısını destekler (Function Call)",
6
7
  "tokens": "Bu model, tek bir oturumda en fazla {{tokens}} Token'ı destekler",
7
8
  "vision": "Bu model görüntü tanımı destekler"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "Chọn mô hình tùy chỉnh, mặc định hỗ trợ cả cuộc gọi hàm và nhận diện thị giác, vui lòng xác minh khả năng sử dụng của các tính năng trên dựa trên tình hình thực tế",
5
+ "file": "Mô hình này hỗ trợ tải lên tệp để đọc và nhận dạng",
5
6
  "functionCall": "Mô hình này hỗ trợ cuộc gọi hàm (Function Call)",
6
7
  "tokens": "Mô hình này hỗ trợ tối đa {{tokens}} Tokens cho mỗi phiên",
7
8
  "vision": "Mô hình này hỗ trợ nhận diện thị giác"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "自定义模型,默认设定同时支持函数调用与视觉识别,请根据实际情况验证上述能力的可用性",
5
+ "file": "该模型支持上传文件读取与识别",
5
6
  "functionCall": "该模型支持函数调用(Function Call)",
6
7
  "tokens": "该模型单个会话最多支持 {{tokens}} Tokens",
7
8
  "vision": "该模型支持视觉识别"
@@ -2,6 +2,7 @@
2
2
  "ModelSelect": {
3
3
  "featureTag": {
4
4
  "custom": "自訂模型,預設支援函數呼叫與視覺辨識,請根據實際情況驗證上述能力的可用性",
5
+ "file": "該模型支援上傳檔案讀取與識別",
5
6
  "functionCall": "該模型支援函數呼叫(Function Call)",
6
7
  "tokens": "該模型單個會話最多支援 {{tokens}} Tokens",
7
8
  "vision": "該模型支援視覺辨識"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.123.1",
3
+ "version": "0.123.2",
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",
@@ -84,6 +84,7 @@
84
84
  "@lobehub/tts": "latest",
85
85
  "@lobehub/ui": "latest",
86
86
  "@vercel/analytics": "^1",
87
+ "ahooks": "^3",
87
88
  "ai": "^2",
88
89
  "antd": "^5",
89
90
  "antd-style": "^3",
@@ -41,7 +41,7 @@ export const POST = async (req: Request, { params }: { params: { provider: strin
41
41
  // if catch the error, just return it
42
42
  const err = e as AgentInitErrorPayload;
43
43
 
44
- return createErrorResponse(err.type as ILobeAgentRuntimeErrorType, {
44
+ return createErrorResponse(err.errorType as ILobeAgentRuntimeErrorType, {
45
45
  error: err.error,
46
46
  provider: params.provider,
47
47
  });
@@ -63,7 +63,7 @@ export const POST = async (req: Request) => {
63
63
  // if catch the error, just return it
64
64
  const err = e as AgentInitErrorPayload;
65
65
 
66
- return createErrorResponse(err.type as ILobeAgentRuntimeErrorType, {
66
+ return createErrorResponse(err.errorType as ILobeAgentRuntimeErrorType, {
67
67
  error: err.error,
68
68
  provider: 'google',
69
69
  });
@@ -1,6 +1,6 @@
1
1
  import { Icon, Tooltip } from '@lobehub/ui';
2
2
  import { createStyles } from 'antd-style';
3
- import { LucideEye, ToyBrick } from 'lucide-react';
3
+ import { LucideEye, LucidePaperclip, ToyBrick } from 'lucide-react';
4
4
  import numeral from 'numeral';
5
5
  import { rgba } from 'polished';
6
6
  import { memo } from 'react';
@@ -72,6 +72,13 @@ export const ModelItemRender = memo<ModelItemRenderProps>(({ showInfoTag = true,
72
72
 
73
73
  {showInfoTag && (
74
74
  <Flexbox gap={4} horizontal>
75
+ {model.files && (
76
+ <Tooltip placement={'right'} title={t('ModelSelect.featureTag.file')}>
77
+ <div className={cx(styles.tag, styles.tagGreen)}>
78
+ <Icon icon={LucidePaperclip} />
79
+ </div>
80
+ </Tooltip>
81
+ )}
75
82
  {model.vision && (
76
83
  <Tooltip placement={'right'} title={t('ModelSelect.featureTag.vision')}>
77
84
  <div className={cx(styles.tag, styles.tagGreen)}>
@@ -90,7 +97,6 @@ export const ModelItemRender = memo<ModelItemRenderProps>(({ showInfoTag = true,
90
97
  </div>
91
98
  </Tooltip>
92
99
  )}
93
-
94
100
  {model.tokens && (
95
101
  <Tooltip
96
102
  overlayStyle={{ maxWidth: 'unset' }}
@@ -5,7 +5,7 @@ import { ChatStreamPayload } from './chat';
5
5
 
6
6
  export interface AgentInitErrorPayload {
7
7
  error: object;
8
- type: string | number;
8
+ errorType: string | number;
9
9
  }
10
10
 
11
11
  export interface ChatCompletionErrorPayload {
@@ -6,5 +6,5 @@ export const AgentRuntimeError = {
6
6
  createError: (
7
7
  errorType: ILobeAgentRuntimeErrorType | string | number,
8
8
  error?: any,
9
- ): AgentInitErrorPayload => ({ error, type: errorType }),
9
+ ): AgentInitErrorPayload => ({ error, errorType }),
10
10
  };
@@ -2,6 +2,7 @@ export default {
2
2
  ModelSelect: {
3
3
  featureTag: {
4
4
  custom: '自定义模型,默认设定同时支持函数调用与视觉识别,请根据实际情况验证上述能力的可用性',
5
+ file: '该模型支持上传文件读取与识别',
5
6
  functionCall: '该模型支持函数调用(Function Call)',
6
7
  tokens: '该模型单个会话最多支持 {{tokens}} Tokens',
7
8
  vision: '该模型支持视觉识别',