@lobehub/chat 1.74.6 → 1.74.8
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 +50 -0
- package/changelog/v1.json +18 -0
- package/locales/ar/error.json +1 -0
- package/locales/bg-BG/error.json +1 -0
- package/locales/de-DE/error.json +1 -0
- package/locales/en-US/error.json +1 -0
- package/locales/es-ES/error.json +1 -0
- package/locales/fa-IR/error.json +1 -0
- package/locales/fr-FR/error.json +1 -0
- package/locales/it-IT/error.json +1 -0
- package/locales/ja-JP/error.json +1 -0
- package/locales/ko-KR/error.json +1 -0
- package/locales/nl-NL/error.json +1 -0
- package/locales/pl-PL/error.json +1 -0
- package/locales/pt-BR/error.json +1 -0
- package/locales/ru-RU/error.json +1 -0
- package/locales/tr-TR/error.json +1 -0
- package/locales/vi-VN/error.json +1 -0
- package/locales/zh-CN/error.json +1 -0
- package/locales/zh-TW/error.json +1 -0
- package/package.json +1 -1
- package/src/features/ChatInput/Topic/index.tsx +6 -8
- package/src/locales/default/error.ts +2 -0
- package/src/store/chat/slices/aiChat/actions/__tests__/generateAIChat.test.ts +3 -3
- package/src/store/chat/slices/aiChat/actions/generateAIChat.ts +8 -0
- package/src/store/chat/slices/builtinTool/actions/searXNG.ts +1 -0
- package/src/store/chat/slices/message/action.ts +26 -9
- package/src/store/chat/slices/plugin/action.ts +1 -0
- package/src/store/chat/slices/thread/action.ts +1 -0
- package/src/types/fetch.ts +1 -1
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,56 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.74.8](https://github.com/lobehub/lobe-chat/compare/v1.74.7...v1.74.8)
|
6
|
+
|
7
|
+
<sup>Released on **2025-03-24**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Update create message loading issue.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Update create message loading issue, closes [#7116](https://github.com/lobehub/lobe-chat/issues/7116) ([a4558a4](https://github.com/lobehub/lobe-chat/commit/a4558a4))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
30
|
+
### [Version 1.74.7](https://github.com/lobehub/lobe-chat/compare/v1.74.6...v1.74.7)
|
31
|
+
|
32
|
+
<sup>Released on **2025-03-24**</sup>
|
33
|
+
|
34
|
+
#### 🐛 Bug Fixes
|
35
|
+
|
36
|
+
- **misc**: Remove Tooltip component in Topic in mobile mode.
|
37
|
+
|
38
|
+
<br/>
|
39
|
+
|
40
|
+
<details>
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
42
|
+
|
43
|
+
#### What's fixed
|
44
|
+
|
45
|
+
- **misc**: Remove Tooltip component in Topic in mobile mode, closes [#7121](https://github.com/lobehub/lobe-chat/issues/7121) ([375f924](https://github.com/lobehub/lobe-chat/commit/375f924))
|
46
|
+
|
47
|
+
</details>
|
48
|
+
|
49
|
+
<div align="right">
|
50
|
+
|
51
|
+
[](#readme-top)
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
5
55
|
### [Version 1.74.6](https://github.com/lobehub/lobe-chat/compare/v1.74.5...v1.74.6)
|
6
56
|
|
7
57
|
<sup>Released on **2025-03-24**</sup>
|
package/changelog/v1.json
CHANGED
@@ -1,4 +1,22 @@
|
|
1
1
|
[
|
2
|
+
{
|
3
|
+
"children": {
|
4
|
+
"fixes": [
|
5
|
+
"Update create message loading issue."
|
6
|
+
]
|
7
|
+
},
|
8
|
+
"date": "2025-03-24",
|
9
|
+
"version": "1.74.8"
|
10
|
+
},
|
11
|
+
{
|
12
|
+
"children": {
|
13
|
+
"fixes": [
|
14
|
+
"Remove Tooltip component in Topic in mobile mode."
|
15
|
+
]
|
16
|
+
},
|
17
|
+
"date": "2025-03-24",
|
18
|
+
"version": "1.74.7"
|
19
|
+
},
|
2
20
|
{
|
3
21
|
"children": {
|
4
22
|
"fixes": [
|
package/locales/ar/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "عذرًا، انتهت مهلة الخادم أثناء الانتظار للرد، قد يكون ذلك بسبب بطء الاستجابة، يرجى المحاولة مرة أخرى لاحقًا",
|
70
70
|
"AgentRuntimeError": "حدث خطأ في تشغيل نموذج Lobe اللغوي، يرجى التحقق من المعلومات التالية أو إعادة المحاولة",
|
71
71
|
"ConnectionCheckFailed": "الاستجابة فارغة، يرجى التحقق من أن عنوان وكيل الـ API لا ينتهي بـ `/v1`",
|
72
|
+
"CreateMessageError": "عذرًا، لم يتم إرسال الرسالة بشكل صحيح، يرجى نسخ المحتوى وإعادة إرساله، بعد تحديث الصفحة لن يتم الاحتفاظ بهذه الرسالة",
|
72
73
|
"ExceededContextWindow": "المحتوى المطلوب الحالي يتجاوز الطول الذي يمكن للنموذج معالجته، يرجى تقليل كمية المحتوى ثم إعادة المحاولة",
|
73
74
|
"FreePlanLimit": "أنت حاليًا مستخدم مجاني، لا يمكنك استخدام هذه الوظيفة، يرجى الترقية إلى خطة مدفوعة للمتابعة",
|
74
75
|
"InsufficientQuota": "عذرًا، لقد reached الحد الأقصى للحصة (quota) لهذه المفتاح، يرجى التحقق من رصيد الحساب الخاص بك أو زيادة حصة المفتاح ثم المحاولة مرة أخرى",
|
package/locales/bg-BG/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Съжаляваме, сървърът изтече времето за изчакване при очакване на отговор, вероятно поради бавен отговор, моля, опитайте отново по-късно",
|
70
70
|
"AgentRuntimeError": "Грешка при изпълнение на времето за изпълнение на езиковия модел Lobe. Моля, отстранете неизправностите или опитайте отново въз основа на следната информация.",
|
71
71
|
"ConnectionCheckFailed": "Заявката върна празен отговор. Моля, проверете дали адресът на API проксито не завършва с `/v1`.",
|
72
|
+
"CreateMessageError": "Съжалявам, съобщението не можа да бъде изпратено успешно. Моля, копирайте съдържанието и го изпратете отново. След опресняване на страницата, това съобщение няма да бъде запазено.",
|
72
73
|
"ExceededContextWindow": "Текущото съдържание на заявката надвишава дължината, която моделът може да обработи. Моля, намалете обема на съдържанието и опитайте отново.",
|
73
74
|
"FreePlanLimit": "В момента сте потребител на безплатен план и не можете да използвате тази функционалност. Моля, надстройте до платен план, за да продължите да я използвате.",
|
74
75
|
"InsufficientQuota": "Съжаляваме, квотата за този ключ е достигнала лимита. Моля, проверете баланса на акаунта си или увеличете квотата на ключа и опитайте отново.",
|
package/locales/de-DE/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Es tut uns leid, der Server hat beim Warten auf eine Antwort die Zeit überschritten, möglicherweise aufgrund einer zu langsamen Antwort. Bitte versuchen Sie es später erneut.",
|
70
70
|
"AgentRuntimeError": "Es ist ein Fehler bei der Ausführung des Lobe-Sprachmodells aufgetreten. Bitte überprüfen Sie die folgenden Informationen oder versuchen Sie es erneut.",
|
71
71
|
"ConnectionCheckFailed": "Die Anfrage brachte eine leere Antwort zurück. Bitte überprüfen Sie, ob die API-Proxy-Adresse am Ende nicht mit `/v1` endet.",
|
72
|
+
"CreateMessageError": "Es tut uns leid, die Nachricht konnte nicht erfolgreich gesendet werden. Bitte kopieren Sie den Inhalt und senden Sie ihn erneut. Nach dem Aktualisieren der Seite wird diese Nachricht nicht gespeichert.",
|
72
73
|
"ExceededContextWindow": "Der aktuelle Anfrageinhalt überschreitet die von dem Modell verarbeitbare Länge. Bitte reduzieren Sie die Menge des Inhalts und versuchen Sie es erneut.",
|
73
74
|
"FreePlanLimit": "Sie sind derzeit ein kostenloser Benutzer und können diese Funktion nicht nutzen. Bitte aktualisieren Sie auf ein kostenpflichtiges Abonnement, um fortzufahren.",
|
74
75
|
"InsufficientQuota": "Es tut uns leid, das Kontingent (Quota) für diesen Schlüssel ist erreicht. Bitte überprüfen Sie Ihr Kontoguthaben oder erhöhen Sie das Kontingent des Schlüssels und versuchen Sie es erneut.",
|
package/locales/en-US/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Sorry, the server timed out while waiting for a response, possibly due to a slow reply. Please try again later.",
|
70
70
|
"AgentRuntimeError": "Lobe language model runtime execution error. Please troubleshoot or retry based on the following information.",
|
71
71
|
"ConnectionCheckFailed": "The request returned empty. Please check if the API proxy address does not end with `/v1`.",
|
72
|
+
"CreateMessageError": "Sorry, the message could not be sent successfully. Please copy the content and try sending it again. This message will not be retained after refreshing the page.",
|
72
73
|
"ExceededContextWindow": "The current request content exceeds the length that the model can handle. Please reduce the amount of content and try again.",
|
73
74
|
"FreePlanLimit": "You are currently a free user and cannot use this feature. Please upgrade to a paid plan to continue using it.",
|
74
75
|
"InsufficientQuota": "Sorry, the quota for this key has been reached. Please check your account balance or increase the key quota and try again.",
|
package/locales/es-ES/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Lo sentimos, el servidor ha agotado el tiempo de espera mientras esperaba una respuesta, puede ser debido a que la respuesta es demasiado lenta, por favor inténtelo de nuevo más tarde",
|
70
70
|
"AgentRuntimeError": "Se produjo un error en la ejecución del tiempo de ejecución del modelo de lenguaje Lobe, por favor, verifica la siguiente información o inténtalo de nuevo",
|
71
71
|
"ConnectionCheckFailed": "La respuesta de la solicitud está vacía, por favor verifica que la dirección del proxy de la API no termine con `/v1`",
|
72
|
+
"CreateMessageError": "Lo sentimos, el mensaje no se pudo enviar correctamente. Por favor, copia el contenido y vuelve a enviarlo. Después de actualizar la página, este mensaje no se conservará.",
|
72
73
|
"ExceededContextWindow": "El contenido de la solicitud actual excede la longitud que el modelo puede procesar. Por favor, reduzca la cantidad de contenido y vuelva a intentarlo.",
|
73
74
|
"FreePlanLimit": "Actualmente eres un usuario gratuito y no puedes utilizar esta función. Por favor, actualiza a un plan de pago para seguir utilizando.",
|
74
75
|
"InsufficientQuota": "Lo sentimos, la cuota de esta clave ha alcanzado su límite. Por favor, verifique si el saldo de su cuenta es suficiente o aumente la cuota de la clave y vuelva a intentarlo.",
|
package/locales/fa-IR/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "متأسفیم، سرور در انتظار پاسخ زمانسنجی کرد، ممکن است به دلیل کندی پاسخ باشد، لطفاً بعداً دوباره تلاش کنید",
|
70
70
|
"AgentRuntimeError": "اجرای Lobe AI Runtime با خطا مواجه شد، لطفاً بر اساس اطلاعات زیر بررسی کنید یا دوباره تلاش کنید",
|
71
71
|
"ConnectionCheckFailed": "درخواست بدون پاسخ برگشت، لطفاً بررسی کنید که آیا آدرس پروکسی API در انتها شامل `/v1` نیست",
|
72
|
+
"CreateMessageError": "متأسفیم، پیام نتوانست به درستی ارسال شود، لطفاً محتوا را کپی کرده و دوباره ارسال کنید، پس از تازهسازی صفحه، این پیام حفظ نخواهد شد",
|
72
73
|
"ExceededContextWindow": "محتوای درخواست فعلی از طول قابل پردازش مدل فراتر رفته است، لطفاً حجم محتوا را کاهش داده و دوباره تلاش کنید",
|
73
74
|
"FreePlanLimit": "شما در حال حاضر کاربر رایگان هستید و نمیتوانید از این قابلیت استفاده کنید، لطفاً به یک طرح پولی ارتقا دهید تا ادامه دهید",
|
74
75
|
"InsufficientQuota": "متأسفیم، سهمیه این کلید به حداکثر رسیده است، لطفاً موجودی حساب خود را بررسی کرده یا سهمیه کلید را افزایش دهید و دوباره تلاش کنید",
|
package/locales/fr-FR/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Désolé, le serveur a dépassé le délai d'attente en attendant une réponse, cela peut être dû à une réponse trop lente, veuillez réessayer plus tard.",
|
70
70
|
"AgentRuntimeError": "Erreur d'exécution du modèle linguistique Lobe, veuillez vérifier les informations ci-dessous ou réessayer",
|
71
71
|
"ConnectionCheckFailed": "La réponse est vide, veuillez vérifier si l'URL du proxy API se termine par `/v1`",
|
72
|
+
"CreateMessageError": "Désolé, le message n'a pas pu être envoyé correctement. Veuillez copier le contenu et le renvoyer. Ce message ne sera pas conservé après le rafraîchissement de la page.",
|
72
73
|
"ExceededContextWindow": "Le contenu de la demande actuelle dépasse la longueur que le modèle peut traiter. Veuillez réduire la quantité de contenu et réessayer.",
|
73
74
|
"FreePlanLimit": "Vous êtes actuellement un utilisateur gratuit et ne pouvez pas utiliser cette fonction. Veuillez passer à un plan payant pour continuer à l'utiliser.",
|
74
75
|
"InsufficientQuota": "Désolé, le quota de cette clé a atteint sa limite. Veuillez vérifier si le solde de votre compte est suffisant ou augmenter le quota de la clé avant de réessayer.",
|
package/locales/it-IT/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Ci dispiace, il server ha superato il timeout in attesa di una risposta, potrebbe essere a causa di una risposta troppo lenta, per favore riprova più tardi",
|
70
70
|
"AgentRuntimeError": "Errore di esecuzione del modello linguistico Lobe, controlla le informazioni seguenti o riprova",
|
71
71
|
"ConnectionCheckFailed": "La risposta è vuota, controlla se l'indirizzo del proxy API termina con `/v1`",
|
72
|
+
"CreateMessageError": "Ci dispiace, il messaggio non è stato inviato correttamente. Si prega di copiare il contenuto e inviarlo nuovamente. Dopo aver aggiornato la pagina, questo messaggio non verrà conservato.",
|
72
73
|
"ExceededContextWindow": "Il contenuto della richiesta attuale supera la lunghezza che il modello può gestire. Si prega di ridurre la quantità di contenuto e riprovare.",
|
73
74
|
"FreePlanLimit": "Attualmente sei un utente gratuito e non puoi utilizzare questa funzione. Per favore, passa a un piano a pagamento per continuare.",
|
74
75
|
"InsufficientQuota": "Ci dispiace, la quota per questa chiave ha raggiunto il limite. Si prega di controllare il saldo dell'account o di aumentare la quota della chiave e riprovare.",
|
package/locales/ja-JP/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "申し訳ありませんが、サーバーは応答を待っている間にタイムアウトしました。応答が遅すぎる可能性があります。後でもう一度お試しください。",
|
70
70
|
"AgentRuntimeError": "Lobe言語モデルの実行時にエラーが発生しました。以下の情報に基づいてトラブルシューティングを行うか、再試行してください。",
|
71
71
|
"ConnectionCheckFailed": "リクエストの返答が空です。API プロキシのアドレスの末尾に `/v1` が含まれているか確認してください。",
|
72
|
+
"CreateMessageError": "申し訳ありませんが、メッセージを正常に送信できませんでした。内容をコピーして再送信してください。このページを更新すると、このメッセージは保持されません。",
|
72
73
|
"ExceededContextWindow": "現在のリクエスト内容がモデルが処理できる長さを超えています。内容量を減らして再試行してください。",
|
73
74
|
"FreePlanLimit": "現在は無料ユーザーですので、この機能を使用することはできません。有料プランにアップグレードして継続してください。",
|
74
75
|
"InsufficientQuota": "申し訳ありませんが、そのキーのクォータが上限に達しました。アカウントの残高を確認するか、キーのクォータを増やしてから再試行してください。",
|
package/locales/ko-KR/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "죄송합니다. 서버가 응답을 기다리는 동안 시간 초과가 발생했습니다. 응답이 너무 느릴 수 있습니다. 잠시 후 다시 시도해 주세요.",
|
70
70
|
"AgentRuntimeError": "Lobe 언어 모델 실행 중 오류가 발생했습니다. 아래 정보를 확인하고 다시 시도하십시오.",
|
71
71
|
"ConnectionCheckFailed": "요청이 빈 응답으로 돌아왔습니다. API 프록시 주소의 끝에 `/v1`이 포함되어 있는지 확인하세요.",
|
72
|
+
"CreateMessageError": "죄송합니다. 메시지를 정상적으로 전송할 수 없습니다. 내용을 복사한 후 다시 전송해 주시고, 페이지를 새로 고치면 이 메시지는 보존되지 않습니다.",
|
72
73
|
"ExceededContextWindow": "현재 요청 내용이 모델이 처리할 수 있는 길이를 초과했습니다. 내용량을 줄인 후 다시 시도해 주십시오.",
|
73
74
|
"FreePlanLimit": "현재 무료 사용자이므로이 기능을 사용할 수 없습니다. 유료 요금제로 업그레이드 한 후 계속 사용하십시오.",
|
74
75
|
"InsufficientQuota": "죄송합니다. 해당 키의 할당량이 초과되었습니다. 계좌 잔액이 충분한지 확인하거나 키 할당량을 늘린 후 다시 시도해 주십시오.",
|
package/locales/nl-NL/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Het spijt ons, de server heeft een time-out terwijl hij op een antwoord wacht, mogelijk omdat de reactie te traag is, probeer het alstublieft later opnieuw",
|
70
70
|
"AgentRuntimeError": "Lobe language model runtime execution error, please troubleshoot or retry based on the following information",
|
71
71
|
"ConnectionCheckFailed": "Het verzoek heeft geen antwoord geleverd. Controleer of het API-proxyadres niet eindigt met `/v1`.",
|
72
|
+
"CreateMessageError": "Het spijt ons, het bericht kon niet correct worden verzonden. Kopieer de inhoud en probeer het opnieuw. Na het vernieuwen van de pagina gaat dit bericht verloren.",
|
72
73
|
"ExceededContextWindow": "De inhoud van de huidige aanvraag overschrijdt de lengte die het model kan verwerken. Verminder de hoeveelheid inhoud en probeer het opnieuw.",
|
73
74
|
"FreePlanLimit": "U bent momenteel een gratis gebruiker en kunt deze functie niet gebruiken. Upgrade naar een betaald plan om door te gaan met gebruiken.",
|
74
75
|
"InsufficientQuota": "Het spijt ons, de quotum van deze sleutel is bereikt. Controleer of uw account voldoende saldo heeft of vergroot het sleutelquotum en probeer het opnieuw.",
|
package/locales/pl-PL/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Przykro nam, serwer przekroczył czas oczekiwania na odpowiedź, może to być spowodowane zbyt wolną odpowiedzią, proszę spróbować ponownie później",
|
70
70
|
"AgentRuntimeError": "Wystąpił błąd wykonania modelu językowego Lobe, prosimy o sprawdzenie poniższych informacji lub ponowne próbowanie.",
|
71
71
|
"ConnectionCheckFailed": "Odpowiedź jest pusta. Sprawdź, czy na końcu adresu proxy API nie brakuje `/v1`",
|
72
|
+
"CreateMessageError": "Przykro nam, wiadomość nie została wysłana poprawnie. Proszę skopiować treść i spróbować ponownie, po odświeżeniu strony ta wiadomość nie zostanie zachowana.",
|
72
73
|
"ExceededContextWindow": "Aktualna zawartość żądania przekracza długość, którą model może przetworzyć. Proszę zmniejszyć ilość treści i spróbować ponownie.",
|
73
74
|
"FreePlanLimit": "Jesteś obecnie użytkownikiem darmowej wersji, nie możesz korzystać z tej funkcji. Proszę uaktualnić do planu płatnego, aby kontynuować korzystanie.",
|
74
75
|
"InsufficientQuota": "Przykro nam, limit dla tego klucza został osiągnięty. Proszę sprawdzić saldo konta lub zwiększyć limit klucza i spróbować ponownie.",
|
package/locales/pt-BR/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Desculpe, o servidor excedeu o tempo de espera enquanto aguardava uma resposta, possivelmente devido à lentidão da resposta. Por favor, tente novamente mais tarde.",
|
70
70
|
"AgentRuntimeError": "Erro de execução do modelo de linguagem Lobe, por favor, verifique as informações abaixo ou tente novamente",
|
71
71
|
"ConnectionCheckFailed": "A resposta da solicitação está vazia. Verifique se o endereço do proxy da API não termina com `/v1`",
|
72
|
+
"CreateMessageError": "Desculpe, a mensagem não pôde ser enviada corretamente. Por favor, copie o conteúdo e tente enviar novamente. Após atualizar a página, esta mensagem não será mantida.",
|
72
73
|
"ExceededContextWindow": "O conteúdo da solicitação atual excede o comprimento que o modelo pode processar. Por favor, reduza a quantidade de conteúdo e tente novamente.",
|
73
74
|
"FreePlanLimit": "Atualmente, você é um usuário gratuito e não pode usar essa função. Por favor, faça upgrade para um plano pago para continuar usando.",
|
74
75
|
"InsufficientQuota": "Desculpe, a cota dessa chave atingiu o limite. Verifique se o saldo da conta é suficiente ou aumente a cota da chave e tente novamente.",
|
package/locales/ru-RU/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Извините, сервер превысил время ожидания ответа, возможно, из-за слишком медленного ответа. Пожалуйста, попробуйте позже.",
|
70
70
|
"AgentRuntimeError": "Ошибка выполнения времени выполнения языковой модели Lobe, пожалуйста, проверьте и повторите попытку в соответствии с предоставленной информацией",
|
71
71
|
"ConnectionCheckFailed": "Запрос вернул пустой ответ, пожалуйста, проверьте, что в конце адреса API-прокси не указано `/v1`",
|
72
|
+
"CreateMessageError": "Извините, сообщение не удалось отправить. Пожалуйста, скопируйте содержимое и отправьте его снова. После обновления страницы это сообщение не будет сохранено.",
|
72
73
|
"ExceededContextWindow": "Содержимое текущего запроса превышает длину, которую модель может обработать. Пожалуйста, уменьшите объем содержимого и попробуйте снова.",
|
73
74
|
"FreePlanLimit": "Вы являетесь бесплатным пользователем и не можете использовать эту функцию. Пожалуйста, перейдите на платный план для продолжения использования.",
|
74
75
|
"InsufficientQuota": "Извините, квота для этого ключа достигла предела. Пожалуйста, проверьте, достаточно ли средств на вашем счете, или увеличьте квоту ключа и попробуйте снова.",
|
package/locales/tr-TR/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Üzgünüm, sunucu yanıt beklerken zaman aşımına uğradı, bu muhtemelen yanıtın çok yavaş olmasından kaynaklanıyor, lütfen daha sonra tekrar deneyin",
|
70
70
|
"AgentRuntimeError": "Lobe dil modeli çalışma zamanı hatası, lütfen aşağıdaki bilgilere göre sorunu gidermeye çalışın veya tekrar deneyin",
|
71
71
|
"ConnectionCheckFailed": "İstek boş döndü, lütfen API代理地址ının sonuna `/v1` ekleyip eklemediğinizi kontrol edin.",
|
72
|
+
"CreateMessageError": "Üzgünüm, mesaj düzgün bir şekilde gönderilemedi. Lütfen içeriği kopyalayın ve yeniden gönderin, sayfayı yeniledikten sonra bu mesaj kaydedilmeyecek.",
|
72
73
|
"ExceededContextWindow": "Mevcut istek içeriği modelin işleyebileceği uzunluğu aşıyor, lütfen içerik miktarını azaltıp tekrar deneyin",
|
73
74
|
"FreePlanLimit": "Şu anda ücretsiz bir kullanıcısınız, bu özelliği kullanamazsınız. Lütfen devam etmek için bir ücretli plana yükseltin.",
|
74
75
|
"InsufficientQuota": "Üzgünüm, bu anahtarın kotası (quota) dolmuş durumda, lütfen hesap bakiyenizi kontrol edin veya anahtar kotasını artırdıktan sonra tekrar deneyin",
|
package/locales/vi-VN/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "Xin lỗi, máy chủ đã hết thời gian chờ khi đang chờ phản hồi, có thể do phản hồi quá chậm, vui lòng thử lại sau",
|
70
70
|
"AgentRuntimeError": "Lobe mô hình ngôn ngữ thực thi gặp lỗi, vui lòng kiểm tra và thử lại dựa trên thông tin dưới đây",
|
71
71
|
"ConnectionCheckFailed": "Yêu cầu trả về trống, xin kiểm tra xem địa chỉ API proxy có đang thiếu `/v1` ở cuối không",
|
72
|
+
"CreateMessageError": "Xin lỗi, tin nhắn không thể được gửi đi bình thường, vui lòng sao chép nội dung và gửi lại, tin nhắn này sẽ không được lưu lại sau khi làm mới trang.",
|
72
73
|
"ExceededContextWindow": "Nội dung yêu cầu hiện tại vượt quá độ dài mà mô hình có thể xử lý, vui lòng giảm khối lượng nội dung và thử lại",
|
73
74
|
"FreePlanLimit": "Hiện tại bạn đang sử dụng tài khoản miễn phí, không thể sử dụng tính năng này. Vui lòng nâng cấp lên gói trả phí để tiếp tục sử dụng.",
|
74
75
|
"InsufficientQuota": "Xin lỗi, hạn mức của khóa này đã đạt giới hạn, vui lòng kiểm tra số dư tài khoản của bạn hoặc tăng hạn mức khóa trước khi thử lại",
|
package/locales/zh-CN/error.json
CHANGED
@@ -84,6 +84,7 @@
|
|
84
84
|
"InvalidClerkUser": "很抱歉,你当前尚未登录,请先登录或注册账号后继续操作",
|
85
85
|
"SystemTimeNotMatchError": "很抱歉,您的系统时间和服务器不匹配,请检查您的系统时间后重试",
|
86
86
|
"SubscriptionKeyMismatch": "很抱歉,由于系统偶发故障,当前订阅用量暂时失效,请点击下方按钮恢复订阅,或邮件联系我们获取支持",
|
87
|
+
"CreateMessageError": "很抱歉,消息未能正常发送,请复制内容后重新发送,刷新页面后此消息将不会保留",
|
87
88
|
"LocationNotSupportError": "很抱歉,你的所在地区不支持此模型服务,可能是由于区域限制或服务未开通。请确认当前地区是否支持使用此服务,或尝试使用切换到其他地区后重试。",
|
88
89
|
"InsufficientQuota": "很抱歉,该密钥的配额(quota)已达上限,请检查账户余额是否充足,或增大密钥配额后再试",
|
89
90
|
"ModelNotFound": "很抱歉,无法请求到相应的模型,可能是模型不存在或者没有访问权限导致,请更换 API Key 或调整访问权限后重试",
|
package/locales/zh-TW/error.json
CHANGED
@@ -69,6 +69,7 @@
|
|
69
69
|
"524": "很抱歉,伺服器在等待回覆時超時,可能是因為回應太慢,請稍後再試",
|
70
70
|
"AgentRuntimeError": "Lobe 語言模型運行時執行出錯,請根據以下信息排查或重試",
|
71
71
|
"ConnectionCheckFailed": "請求返回為空,請檢查 API 代理地址末尾是否未包含 `/v1`",
|
72
|
+
"CreateMessageError": "很抱歉,訊息未能正常發送,請複製內容後重新發送,刷新頁面後此訊息將不會保留",
|
72
73
|
"ExceededContextWindow": "當前請求內容超出模型可處理的長度,請減少內容量後重試",
|
73
74
|
"FreePlanLimit": "目前為免費用戶,無法使用該功能,請升級到付費計劃後繼續使用",
|
74
75
|
"InsufficientQuota": "很抱歉,該金鑰的配額已達上限,請檢查帳戶餘額是否充足,或增加金鑰配額後再試",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.74.
|
3
|
+
"version": "1.74.8",
|
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",
|
@@ -49,14 +49,12 @@ const SaveTopic = memo<{ mobile?: boolean }>(({ mobile }) => {
|
|
49
49
|
</div>
|
50
50
|
}
|
51
51
|
>
|
52
|
-
<
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
/>
|
59
|
-
</Tooltip>
|
52
|
+
<ActionIcon
|
53
|
+
aria-label={desc}
|
54
|
+
icon={icon}
|
55
|
+
loading={isValidating}
|
56
|
+
onClick={() => setConfirmOpened(true)}
|
57
|
+
/>
|
60
58
|
</Popconfirm>
|
61
59
|
);
|
62
60
|
} else {
|
@@ -93,6 +93,8 @@ export default {
|
|
93
93
|
SystemTimeNotMatchError: '很抱歉,您的系统时间和服务器不匹配,请检查您的系统时间后重试',
|
94
94
|
SubscriptionKeyMismatch:
|
95
95
|
'很抱歉,由于系统偶发故障,当前订阅用量暂时失效,请点击下方按钮恢复订阅,或邮件联系我们获取支持',
|
96
|
+
CreateMessageError:
|
97
|
+
'很抱歉,消息未能正常发送,请复制内容后重新发送,刷新页面后此消息将不会保留',
|
96
98
|
LocationNotSupportError:
|
97
99
|
'很抱歉,你的所在地区不支持此模型服务,可能是由于区域限制或服务未开通。请确认当前地区是否支持使用此服务,或尝试使用切换到其他地区后重试。',
|
98
100
|
InsufficientQuota:
|
@@ -423,9 +423,9 @@ describe('chatMessage actions', () => {
|
|
423
423
|
new Error('create message error'),
|
424
424
|
);
|
425
425
|
|
426
|
-
|
427
|
-
|
428
|
-
)
|
426
|
+
try {
|
427
|
+
await result.current.sendMessage({ message: 'test' });
|
428
|
+
} catch (e) {}
|
429
429
|
|
430
430
|
expect(result.current.internal_coreProcessMessage).not.toHaveBeenCalled();
|
431
431
|
});
|
@@ -216,6 +216,12 @@ export const generateAIChat: StateCreator<
|
|
216
216
|
skipRefresh: !onlyAddUserMessage && newMessage.fileList?.length === 0,
|
217
217
|
});
|
218
218
|
|
219
|
+
if (!id) {
|
220
|
+
set({ isCreatingMessage: false }, false, n('creatingMessage/start'));
|
221
|
+
if (!!newTopicId) get().internal_updateTopicLoading(newTopicId, false);
|
222
|
+
return;
|
223
|
+
}
|
224
|
+
|
219
225
|
if (tempMessageId) get().internal_toggleMessageLoading(false, tempMessageId);
|
220
226
|
|
221
227
|
// switch to the new topic if create the new topic
|
@@ -346,6 +352,8 @@ export const generateAIChat: StateCreator<
|
|
346
352
|
|
347
353
|
const assistantId = await get().internal_createMessage(assistantMessage);
|
348
354
|
|
355
|
+
if (!assistantId) return;
|
356
|
+
|
349
357
|
// 3. place a search with the search working model if this model is not support tool use
|
350
358
|
const isModelSupportToolUse = aiModelSelectors.isModelSupportToolUse(
|
351
359
|
model,
|
@@ -12,6 +12,7 @@ import { topicService } from '@/services/topic';
|
|
12
12
|
import { traceService } from '@/services/trace';
|
13
13
|
import { ChatStore } from '@/store/chat/store';
|
14
14
|
import { messageMapKey } from '@/store/chat/utils/messageMapKey';
|
15
|
+
import { ChatErrorType } from '@/types/fetch';
|
15
16
|
import {
|
16
17
|
ChatMessage,
|
17
18
|
ChatMessageError,
|
@@ -101,7 +102,7 @@ export interface ChatMessageAction {
|
|
101
102
|
internal_createMessage: (
|
102
103
|
params: CreateMessageParams,
|
103
104
|
context?: { tempMessageId?: string; skipRefresh?: boolean },
|
104
|
-
) => Promise<string>;
|
105
|
+
) => Promise<string | undefined>;
|
105
106
|
/**
|
106
107
|
* create a temp message for optimistic update
|
107
108
|
* otherwise the message will be too slow to show
|
@@ -327,7 +328,12 @@ export const chatMessage: StateCreator<
|
|
327
328
|
},
|
328
329
|
|
329
330
|
internal_createMessage: async (message, context) => {
|
330
|
-
const {
|
331
|
+
const {
|
332
|
+
internal_createTmpMessage,
|
333
|
+
refreshMessages,
|
334
|
+
internal_toggleMessageLoading,
|
335
|
+
internal_dispatchMessage,
|
336
|
+
} = get();
|
331
337
|
let tempId = context?.tempMessageId;
|
332
338
|
if (!tempId) {
|
333
339
|
// use optimistic update to avoid the slow waiting
|
@@ -336,14 +342,25 @@ export const chatMessage: StateCreator<
|
|
336
342
|
internal_toggleMessageLoading(true, tempId);
|
337
343
|
}
|
338
344
|
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
345
|
+
try {
|
346
|
+
const id = await messageService.createMessage(message);
|
347
|
+
if (!context?.skipRefresh) {
|
348
|
+
internal_toggleMessageLoading(true, tempId);
|
349
|
+
await refreshMessages();
|
350
|
+
}
|
351
|
+
|
352
|
+
internal_toggleMessageLoading(false, tempId);
|
353
|
+
return id;
|
354
|
+
} catch (e) {
|
355
|
+
internal_toggleMessageLoading(false, tempId);
|
356
|
+
internal_dispatchMessage({
|
357
|
+
id: tempId,
|
358
|
+
type: 'updateMessage',
|
359
|
+
value: {
|
360
|
+
error: { type: ChatErrorType.CreateMessageError, message: (e as Error).message, body: e },
|
361
|
+
},
|
362
|
+
});
|
343
363
|
}
|
344
|
-
|
345
|
-
internal_toggleMessageLoading(false, tempId);
|
346
|
-
return id;
|
347
364
|
},
|
348
365
|
|
349
366
|
internal_fetchMessages: async () => {
|
@@ -158,6 +158,7 @@ export const chatThreadMessage: StateCreator<
|
|
158
158
|
|
159
159
|
get().internal_toggleMessageLoading(false, tempMessageId);
|
160
160
|
|
161
|
+
if (!parentMessageId) return;
|
161
162
|
// update assistant update to make it rerank
|
162
163
|
useSessionStore.getState().triggerSessionUpdate(get().activeId);
|
163
164
|
|
package/src/types/fetch.ts
CHANGED