diff --git a/locales/ar/error.json b/locales/ar/error.json index 0c45466d80c45..b289b17e76804 100644 --- a/locales/ar/error.json +++ b/locales/ar/error.json @@ -13,7 +13,10 @@ "title": "واجهت الصفحة مشكلة ما.." }, "fetchError": "فشل الطلب", - "fetchErrorDetail": "تفاصيل الخطأ", + "loginRequired": { + "desc": "سيتم التحويل تلقائيًا إلى صفحة تسجيل الدخول", + "title": "يرجى تسجيل الدخول لاستخدام هذه الميزة" + }, "notFound": { "backHome": "العودة إلى الصفحة الرئيسية", "check": "يرجى التحقق من صحة عنوان URL الخاص بك", diff --git a/locales/ar/models.json b/locales/ar/models.json index 104b96e69ca0b..965ed16164091 100644 --- a/locales/ar/models.json +++ b/locales/ar/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "مناسب للأسئلة السريعة، وسيناريوهات ضبط النموذج." }, - "SenseChat-Vision": { - "description": "أحدث إصدار من النموذج (V5.5)، بطول سياق 16K، يدعم إدخال صور متعددة، ويحقق تحسينات شاملة في القدرات الأساسية للنموذج، مع تحسينات كبيرة في التعرف على خصائص الكائنات، العلاقات المكانية، التعرف على أحداث الحركة، فهم المشاهد، التعرف على المشاعر، الاستدلال المنطقي وفهم النصوص وتوليدها." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B هو إصدار مفتوح المصدر، يوفر تجربة حوار محسنة لتطبيقات الحوار." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "جمني 1.5 فلاش 002 هو نموذج متعدد الوسائط فعال، يدعم توسيع التطبيقات على نطاق واسع." }, + "gemini-1.5-flash-8b": { + "description": "جمني 1.5 فلاش 8B هو نموذج متعدد الوسائط عالي الكفاءة، يدعم مجموعة واسعة من التطبيقات." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "جمني 1.5 فلاش 8B 0924 هو النموذج التجريبي الأحدث، حيث حقق تحسينات ملحوظة في الأداء في حالات الاستخدام النصية ومتعددة الوسائط." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "نموذج عالي السرعة، مناسب للحوار في الوقت الحقيقي." }, - "step-1.5v-turbo": { - "description": "يمتلك هذا النموذج قدرات قوية لفهم الفيديو." + "step-1.5v-mini": { + "description": "يمتلك هذا النموذج قدرة قوية على فهم الفيديو." }, "step-1v-32k": { "description": "يدعم المدخلات البصرية، يعزز تجربة التفاعل متعدد الوسائط." diff --git a/locales/bg-BG/error.json b/locales/bg-BG/error.json index ce25e05a12e38..a6b7b1a9657d1 100644 --- a/locales/bg-BG/error.json +++ b/locales/bg-BG/error.json @@ -13,7 +13,10 @@ "title": "Страницата се е сблъскала с проблем.." }, "fetchError": "Грешка при извличане", - "fetchErrorDetail": "Подробности за грешката", + "loginRequired": { + "desc": "Ще бъдете автоматично пренасочени към страницата за вход", + "title": "Моля, влезте, за да използвате тази функция" + }, "notFound": { "backHome": "Върни се в началото", "check": "Моля, проверете дали URL адресът е правилен", diff --git a/locales/bg-BG/models.json b/locales/bg-BG/models.json index 25407b75826c6..d557fce6f440e 100644 --- a/locales/bg-BG/models.json +++ b/locales/bg-BG/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Подходящ за бързи въпроси и отговори, сцени на фино настройване на модела." }, - "SenseChat-Vision": { - "description": "Най-новата версия на модела (V5.5), с контекстна дължина 16K, поддържа вход с множество изображения, напълно реализирана оптимизация на основните способности на модела, с голямо подобрение в разпознаването на свойства на обекти, пространствени отношения, разпознаване на действия, разбиране на сцени, разпознаване на емоции, логическо разсъждение и генериране на текст." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B е отворен код версия, предоставяща оптимизирано изживяване в разговорните приложения." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 е ефективен мултимодален модел, който поддържа разширения за широко приложение." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B е ефективен многомодален модел, който поддържа разширения за широко приложение." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 е най-новият експериментален модел, който показва значителни подобрения в производителността както в текстови, така и в мултимодални приложения." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Бърз модел, подходящ за реални диалози." }, - "step-1.5v-turbo": { - "description": "Този модел има мощни способности за разбиране на видео." + "step-1.5v-mini": { + "description": "Този модел разполага с мощни способности за разбиране на видео." }, "step-1v-32k": { "description": "Поддържа визуални входове, подобряваща мултимодалното взаимодействие." diff --git a/locales/de-DE/error.json b/locales/de-DE/error.json index 389aa83c449b9..9db106862c006 100644 --- a/locales/de-DE/error.json +++ b/locales/de-DE/error.json @@ -13,7 +13,10 @@ "title": "Ein Problem ist aufgetreten auf der Seite.." }, "fetchError": "Anforderung fehlgeschlagen", - "fetchErrorDetail": "Fehlerdetails", + "loginRequired": { + "desc": "Sie werden in Kürze zur Anmeldeseite weitergeleitet", + "title": "Bitte melden Sie sich an, um diese Funktion zu nutzen" + }, "notFound": { "backHome": "Zurück zur Startseite", "check": "Bitte überprüfen Sie, ob Ihre URL korrekt ist.", diff --git a/locales/de-DE/models.json b/locales/de-DE/models.json index 903db4d295624..b08aff7af436b 100644 --- a/locales/de-DE/models.json +++ b/locales/de-DE/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Geeignet für schnelle Fragen und Antworten sowie Szenarien zur Feinabstimmung des Modells." }, - "SenseChat-Vision": { - "description": "Die neueste Modellversion (V5.5) mit 16K Kontextlänge unterstützt die Eingabe mehrerer Bilder und optimiert umfassend die grundlegenden Fähigkeiten des Modells. Es hat erhebliche Fortschritte in der Erkennung von Objektattributen, räumlichen Beziehungen, Erkennung von Handlungsereignissen, Szenenverständnis, Emotionserkennung, logischem Wissen und Textverständnis und -generierung erzielt." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B ist die Open-Source-Version, die ein optimiertes Dialogerlebnis für Konversationsanwendungen bietet." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 ist ein effizientes multimodales Modell, das eine breite Palette von Anwendungen unterstützt." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B ist ein leistungsstarkes multimodales Modell, das eine breite Palette von Anwendungen unterstützt." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 ist das neueste experimentelle Modell, das in Text- und multimodalen Anwendungsfällen erhebliche Leistungsverbesserungen aufweist." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Hochgeschwindigkeitsmodell, geeignet für Echtzeitdialoge." }, - "step-1.5v-turbo": { - "description": "Dieses Modell verfügt über starke Fähigkeiten im Verständnis von Videos." + "step-1.5v-mini": { + "description": "Dieses Modell verfügt über starke Fähigkeiten zur Videoanalyse." }, "step-1v-32k": { "description": "Unterstützt visuelle Eingaben und verbessert die multimodale Interaktionserfahrung." diff --git a/locales/en-US/error.json b/locales/en-US/error.json index 810f8f3fddac6..8e91a594bb90b 100644 --- a/locales/en-US/error.json +++ b/locales/en-US/error.json @@ -13,7 +13,10 @@ "title": "Oops, something went wrong.." }, "fetchError": "Request Failed", - "fetchErrorDetail": "Error Details", + "loginRequired": { + "desc": "You will be redirected to the login page shortly", + "title": "Please log in to use this feature" + }, "notFound": { "backHome": "Back to Home", "check": "Please check if your URL is correct.", diff --git a/locales/en-US/models.json b/locales/en-US/models.json index 1cdb0f20c8b1c..e6ca9cb1194dc 100644 --- a/locales/en-US/models.json +++ b/locales/en-US/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Suitable for fast question answering and model fine-tuning scenarios." }, - "SenseChat-Vision": { - "description": "The latest version model (V5.5) with a context length of 16K supports multi-image input and fully optimizes the model's foundational capabilities, achieving substantial improvements in object attribute recognition, spatial relationships, action event recognition, scene understanding, emotion recognition, logical reasoning, and text comprehension and generation." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B is an open-source version that provides an optimized conversational experience for chat applications." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 is an efficient multimodal model that supports a wide range of applications." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B is an efficient multimodal model that supports a wide range of applications." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 is the latest experimental model, showcasing significant performance improvements in both text and multimodal use cases." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "High-speed model, suitable for real-time dialogues." }, - "step-1.5v-turbo": { - "description": "This model possesses strong video understanding capabilities." + "step-1.5v-mini": { + "description": "This model has powerful video understanding capabilities." }, "step-1v-32k": { "description": "Supports visual input, enhancing multimodal interaction experiences." diff --git a/locales/es-ES/error.json b/locales/es-ES/error.json index 1ba5dbe1a3e5a..ef0e876bd68cf 100644 --- a/locales/es-ES/error.json +++ b/locales/es-ES/error.json @@ -13,7 +13,10 @@ "title": "Se ha producido un problema en la página.." }, "fetchError": "Error en la solicitud", - "fetchErrorDetail": "Detalles del error", + "loginRequired": { + "desc": "Serás redirigido automáticamente a la página de inicio de sesión", + "title": "Por favor, inicie sesión para utilizar esta función" + }, "notFound": { "backHome": "Volver a la página de inicio", "check": "Por favor, verifica si tu URL es correcta", diff --git a/locales/es-ES/models.json b/locales/es-ES/models.json index 80226860dbdef..695ecd872377b 100644 --- a/locales/es-ES/models.json +++ b/locales/es-ES/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Adecuado para preguntas rápidas y escenarios de ajuste fino del modelo." }, - "SenseChat-Vision": { - "description": "Modelo de última versión (V5.5), longitud de contexto de 16K, admite entradas de múltiples imágenes, optimizando las capacidades básicas del modelo, logrando mejoras significativas en el reconocimiento de propiedades de objetos, relaciones espaciales, identificación de eventos de acción, comprensión de escenas, reconocimiento de emociones, razonamiento lógico y generación de comprensión de texto." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B es una versión de código abierto, que proporciona una experiencia de conversación optimizada para aplicaciones de diálogo." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 es un modelo multimodal eficiente, que admite una amplia gama de aplicaciones." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B es un modelo multimodal eficiente que admite una amplia gama de aplicaciones." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 es el último modelo experimental, con mejoras significativas en el rendimiento tanto en casos de uso de texto como multimodal." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Modelo de alta velocidad, adecuado para diálogos en tiempo real." }, - "step-1.5v-turbo": { - "description": "Este modelo cuenta con potentes capacidades de comprensión de video." + "step-1.5v-mini": { + "description": "Este modelo tiene una potente capacidad de comprensión de video." }, "step-1v-32k": { "description": "Soporta entradas visuales, mejorando la experiencia de interacción multimodal." diff --git a/locales/fr-FR/error.json b/locales/fr-FR/error.json index 86d0306ab7652..acf5cb8e1967e 100644 --- a/locales/fr-FR/error.json +++ b/locales/fr-FR/error.json @@ -13,7 +13,10 @@ "title": "Un problème est survenu sur la page.." }, "fetchError": "Échec de la requête", - "fetchErrorDetail": "Détails de l'erreur", + "loginRequired": { + "desc": "Vous allez être redirigé vers la page de connexion", + "title": "Veuillez vous connecter pour utiliser cette fonctionnalité" + }, "notFound": { "backHome": "Retour à la page d'accueil", "check": "Veuillez vérifier si votre URL est correcte", diff --git a/locales/fr-FR/models.json b/locales/fr-FR/models.json index 2dceb59829c09..774a67699e0e5 100644 --- a/locales/fr-FR/models.json +++ b/locales/fr-FR/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Conçu pour des questions-réponses rapides et des scénarios de micro-ajustement du modèle." }, - "SenseChat-Vision": { - "description": "Modèle de dernière version (V5.5), longueur de contexte de 16K, prenant en charge l'entrée de plusieurs images, optimisant les capacités fondamentales du modèle, avec des améliorations significatives dans la reconnaissance des attributs d'objets, les relations spatiales, la reconnaissance d'événements d'action, la compréhension de scènes, la reconnaissance des émotions, le raisonnement logique et la génération de texte." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B est une version open source, offrant une expérience de dialogue optimisée pour les applications de conversation." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 est un modèle multimodal efficace, prenant en charge une large gamme d'applications." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B est un modèle multimodal efficace, prenant en charge une large gamme d'applications." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 est le dernier modèle expérimental, offrant des améliorations significatives en termes de performance dans les cas d'utilisation textuels et multimodaux." }, @@ -1042,7 +1042,7 @@ "step-1-flash": { "description": "Modèle à haute vitesse, adapté aux dialogues en temps réel." }, - "step-1.5v-turbo": { + "step-1.5v-mini": { "description": "Ce modèle possède de puissantes capacités de compréhension vidéo." }, "step-1v-32k": { diff --git a/locales/it-IT/error.json b/locales/it-IT/error.json index 912ccb13afc16..f91bb16c2d947 100644 --- a/locales/it-IT/error.json +++ b/locales/it-IT/error.json @@ -13,7 +13,10 @@ "title": "La pagina ha riscontrato un problema.." }, "fetchError": "Errore di richiesta", - "fetchErrorDetail": "Dettagli dell'errore", + "loginRequired": { + "desc": "Verrai reindirizzato automaticamente alla pagina di accesso", + "title": "Accedi per utilizzare questa funzione" + }, "notFound": { "backHome": "Torna alla homepage", "check": "Controlla se l'URL è corretto", diff --git a/locales/it-IT/models.json b/locales/it-IT/models.json index 84f0e1e4300d1..bf932b2a3c408 100644 --- a/locales/it-IT/models.json +++ b/locales/it-IT/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Adatto per domande e risposte rapide, scenari di micro-ottimizzazione del modello." }, - "SenseChat-Vision": { - "description": "Modello dell'ultima versione (V5.5), lunghezza del contesto di 16K, supporta input multipli di immagini, ottimizzazione completa delle capacità di base del modello, con notevoli miglioramenti nel riconoscimento delle proprietà degli oggetti, relazioni spaziali, riconoscimento di eventi, comprensione delle scene, riconoscimento delle emozioni, ragionamento logico e generazione di testi." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B è una versione open source, progettata per fornire un'esperienza di dialogo ottimizzata per applicazioni conversazionali." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 è un modello multimodale altamente efficiente, che supporta un'ampia gamma di applicazioni." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B è un modello multimodale altamente efficiente, che supporta un'ampia gamma di applicazioni." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 è il modello sperimentale più recente, con miglioramenti significativi nelle prestazioni sia nei casi d'uso testuali che multimodali." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Modello ad alta velocità, adatto per dialoghi in tempo reale." }, - "step-1.5v-turbo": { - "description": "Questo modello ha potenti capacità di comprensione video." + "step-1.5v-mini": { + "description": "Questo modello possiede potenti capacità di comprensione video." }, "step-1v-32k": { "description": "Supporta input visivi, migliorando l'esperienza di interazione multimodale." diff --git a/locales/ja-JP/error.json b/locales/ja-JP/error.json index 66f064fafbbae..8fb8cf777892e 100644 --- a/locales/ja-JP/error.json +++ b/locales/ja-JP/error.json @@ -13,7 +13,10 @@ "title": "ページに問題が発生しました.." }, "fetchError": "リクエストが失敗しました", - "fetchErrorDetail": "エラーの詳細", + "loginRequired": { + "desc": "自動的にログインページにリダイレクトされます", + "title": "この機能を使用するにはログインしてください" + }, "notFound": { "backHome": "ホームに戻る", "check": "URLが正しいかどうかを確認してください", diff --git a/locales/ja-JP/models.json b/locales/ja-JP/models.json index c156cfa8ce9aa..a772d9fffbdcc 100644 --- a/locales/ja-JP/models.json +++ b/locales/ja-JP/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "迅速な質問応答やモデルの微調整シーンに適しています。" }, - "SenseChat-Vision": { - "description": "最新バージョンのモデル (V5.5)、16Kのコンテキスト長で、複数の画像入力をサポートし、モデルの基本能力を全面的に最適化しています。物体の属性認識、空間関係、動作イベントの認識、シーン理解、感情認識、論理的常識推論、テキスト理解生成において大幅な向上を実現しました。" - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9Bはオープンソース版で、会話アプリケーションに最適化された対話体験を提供します。" }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002は効率的なマルチモーダルモデルで、幅広いアプリケーションの拡張をサポートしています。" }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8Bは、高効率のマルチモーダルモデルで、幅広いアプリケーションの拡張をサポートしています。" + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924は最新の実験モデルで、テキストおよびマルチモーダルのユースケースにおいて顕著な性能向上を実現しています。" }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "高速モデルであり、リアルタイムの対話に適しています。" }, - "step-1.5v-turbo": { - "description": "このモデルは強力なビデオ理解能力を持っています。" + "step-1.5v-mini": { + "description": "このモデルは、強力なビデオ理解能力を備えています。" }, "step-1v-32k": { "description": "視覚入力をサポートし、多モーダルインタラクション体験を強化します。" diff --git a/locales/ko-KR/error.json b/locales/ko-KR/error.json index 9d416d1e76f4f..4325a75e0240e 100644 --- a/locales/ko-KR/error.json +++ b/locales/ko-KR/error.json @@ -13,7 +13,10 @@ "title": "페이지에서 문제가 발생했습니다." }, "fetchError": "요청 실패", - "fetchErrorDetail": "오류 상세", + "loginRequired": { + "desc": "곧 로그인 페이지로 자동 이동합니다", + "title": "이 기능을 사용하려면 로그인해 주세요" + }, "notFound": { "backHome": "홈페이지로 돌아가기", "check": "URL이 올바른지 확인해 주세요.", diff --git a/locales/ko-KR/models.json b/locales/ko-KR/models.json index 54d2617d762c6..c0e0593d9369d 100644 --- a/locales/ko-KR/models.json +++ b/locales/ko-KR/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "빠른 질문 응답 및 모델 미세 조정 시나리오에 적합합니다." }, - "SenseChat-Vision": { - "description": "최신 버전 모델(V5.5), 16K 컨텍스트 길이, 다중 이미지 입력을 지원하며, 모델의 기본 능력 최적화를 전면적으로 구현하여 객체 속성 인식, 공간 관계, 동작 사건 인식, 장면 이해, 감정 인식, 논리 상식 추론 및 텍스트 이해 생성에서 큰 향상을 이루었습니다." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B 오픈 소스 버전으로, 대화 응용을 위한 최적화된 대화 경험을 제공합니다." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002는 효율적인 다중 모달 모델로, 광범위한 응용 프로그램의 확장을 지원합니다." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B는 효율적인 다중 모달 모델로, 광범위한 응용 프로그램의 확장을 지원합니다." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924는 최신 실험 모델로, 텍스트 및 다중 모달 사용 사례에서 상당한 성능 향상을 보여줍니다." }, @@ -1042,7 +1042,7 @@ "step-1-flash": { "description": "고속 모델로, 실시간 대화에 적합합니다." }, - "step-1.5v-turbo": { + "step-1.5v-mini": { "description": "이 모델은 강력한 비디오 이해 능력을 가지고 있습니다." }, "step-1v-32k": { diff --git a/locales/nl-NL/error.json b/locales/nl-NL/error.json index 4aeff48320639..c01ce17cfa6d8 100644 --- a/locales/nl-NL/error.json +++ b/locales/nl-NL/error.json @@ -13,7 +13,10 @@ "title": "Er is een probleem opgetreden op de pagina.." }, "fetchError": "Verzoek mislukt", - "fetchErrorDetail": "Foutdetails", + "loginRequired": { + "desc": "U wordt binnenkort automatisch doorgestuurd naar de inlogpagina", + "title": "Log in om deze functie te gebruiken" + }, "notFound": { "backHome": "Terug naar startpagina", "check": "Controleer of je URL correct is", diff --git a/locales/nl-NL/models.json b/locales/nl-NL/models.json index bceb672fdfd9e..54dbeaa65887b 100644 --- a/locales/nl-NL/models.json +++ b/locales/nl-NL/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Geschikt voor snelle vraag-en-antwoord en modelafstemming." }, - "SenseChat-Vision": { - "description": "De nieuwste versie van het model (V5.5), met een contextlengte van 16K, ondersteunt meerdere afbeeldingsinvoeren en heeft de basiscapaciteiten van het model geoptimaliseerd, met aanzienlijke verbeteringen in objecteigenschappenherkenning, ruimtelijke relaties, actie-evenementherkenning, scènebegrip, emotieherkenning, logische redenering en tekstbegrip en -generatie." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B is de open-source versie die een geoptimaliseerde gesprekservaring biedt voor gespreksapplicaties." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 is een efficiënt multimodaal model dat ondersteuning biedt voor een breed scala aan toepassingen." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B is een efficiënte multimodale model dat een breed scala aan toepassingen ondersteunt." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 is het nieuwste experimentele model, met aanzienlijke prestatieverbeteringen in tekst- en multimodale toepassingen." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Hogesnelheidsmodel, geschikt voor realtime gesprekken." }, - "step-1.5v-turbo": { - "description": "Dit model heeft krachtige mogelijkheden voor video begrip." + "step-1.5v-mini": { + "description": "Dit model heeft krachtige video begrip capaciteiten." }, "step-1v-32k": { "description": "Ondersteunt visuele invoer, verbetert de multimodale interactie-ervaring." diff --git a/locales/pl-PL/error.json b/locales/pl-PL/error.json index bb5dac3253ff2..5f605553b5040 100644 --- a/locales/pl-PL/error.json +++ b/locales/pl-PL/error.json @@ -13,7 +13,10 @@ "title": "Napotkano problem na stronie.." }, "fetchError": "Błąd żądania", - "fetchErrorDetail": "Szczegóły błędu", + "loginRequired": { + "desc": "Zaraz nastąpi automatyczne przekierowanie do strony logowania", + "title": "Proszę zalogować się, aby korzystać z tej funkcji" + }, "notFound": { "backHome": "Powrót do strony głównej", "check": "Proszę sprawdzić, czy Twój adres URL jest poprawny", diff --git a/locales/pl-PL/models.json b/locales/pl-PL/models.json index 21e381aeff653..fbd9a7c6c333e 100644 --- a/locales/pl-PL/models.json +++ b/locales/pl-PL/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Idealny do szybkich odpowiedzi i scenariuszy dostosowywania modelu." }, - "SenseChat-Vision": { - "description": "Najnowsza wersja modelu (V5.5), długość kontekstu 16K, obsługuje wiele obrazów jako wejście, w pełni realizuje optymalizację podstawowych zdolności modelu, osiągając znaczne postępy w rozpoznawaniu atrybutów obiektów, relacjach przestrzennych, rozpoznawaniu zdarzeń, rozumieniu scen, rozpoznawaniu emocji, rozumowaniu logicznym oraz generowaniu i rozumieniu tekstu." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B to otwarta wersja, oferująca zoptymalizowane doświadczenie dialogowe dla aplikacji konwersacyjnych." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 to wydajny model multimodalny, który wspiera szeroką gamę zastosowań." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B to wydajny model multimodalny, który wspiera szeroki zakres zastosowań." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 to najnowszy eksperymentalny model, który wykazuje znaczące poprawy wydajności w zastosowaniach tekstowych i multimodalnych." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Model o wysokiej prędkości, odpowiedni do dialogów w czasie rzeczywistym." }, - "step-1.5v-turbo": { - "description": "Ten model ma potężne możliwości zrozumienia wideo." + "step-1.5v-mini": { + "description": "Ten model ma potężne zdolności rozumienia wideo." }, "step-1v-32k": { "description": "Obsługuje wejścia wizualne, wzmacniając doświadczenie interakcji multimodalnych." diff --git a/locales/pt-BR/error.json b/locales/pt-BR/error.json index 8967bcfabe896..232a7c778e303 100644 --- a/locales/pt-BR/error.json +++ b/locales/pt-BR/error.json @@ -13,7 +13,10 @@ "title": "Ocorreu um problema na página.." }, "fetchError": "Falha na solicitação", - "fetchErrorDetail": "Detalhes do erro", + "loginRequired": { + "desc": "Você será redirecionado para a página de login em breve", + "title": "Por favor, faça login para usar esta função" + }, "notFound": { "backHome": "Voltar para a página inicial", "check": "Por favor, verifique se a sua URL está correta", diff --git a/locales/pt-BR/models.json b/locales/pt-BR/models.json index 7a8494b266649..f7b9ea31de167 100644 --- a/locales/pt-BR/models.json +++ b/locales/pt-BR/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Adequado para perguntas rápidas e cenários de ajuste fino do modelo." }, - "SenseChat-Vision": { - "description": "Modelo da versão mais recente (V5.5), com comprimento de contexto de 16K, suporta entrada de múltiplas imagens, implementa otimizações abrangentes nas capacidades básicas do modelo, com grandes melhorias em reconhecimento de propriedades de objetos, relações espaciais, reconhecimento de eventos de ação, compreensão de cenas, reconhecimento de emoções, raciocínio lógico e compreensão e geração de texto." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B é uma versão de código aberto, oferecendo uma experiência de diálogo otimizada para aplicações de conversa." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "O Gemini 1.5 Flash 002 é um modelo multimodal eficiente, que suporta uma ampla gama de aplicações." }, + "gemini-1.5-flash-8b": { + "description": "O Gemini 1.5 Flash 8B é um modelo multimodal eficiente, com suporte para uma ampla gama de aplicações." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "O Gemini 1.5 Flash 8B 0924 é o mais recente modelo experimental, com melhorias significativas de desempenho em casos de uso de texto e multimídia." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Modelo de alta velocidade, adequado para diálogos em tempo real." }, - "step-1.5v-turbo": { - "description": "Este modelo possui poderosas capacidades de entendimento de vídeo." + "step-1.5v-mini": { + "description": "Este modelo possui uma poderosa capacidade de compreensão de vídeo." }, "step-1v-32k": { "description": "Suporta entradas visuais, aprimorando a experiência de interação multimodal." diff --git a/locales/ru-RU/error.json b/locales/ru-RU/error.json index 1043aa527b8b2..9ce4b793c99ed 100644 --- a/locales/ru-RU/error.json +++ b/locales/ru-RU/error.json @@ -13,7 +13,10 @@ "title": "Произошла проблема на странице.." }, "fetchError": "Ошибка запроса", - "fetchErrorDetail": "Подробности ошибки", + "loginRequired": { + "desc": "Скоро произойдет автоматический переход на страницу входа", + "title": "Пожалуйста, войдите в систему, чтобы использовать эту функцию" + }, "notFound": { "backHome": "Вернуться на главную", "check": "Пожалуйста, проверьте, правильный ли ваш URL", diff --git a/locales/ru-RU/models.json b/locales/ru-RU/models.json index 9622ecdc95559..2f57d4088acd5 100644 --- a/locales/ru-RU/models.json +++ b/locales/ru-RU/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Подходит для быстрого ответа на вопросы и сценариев тонкой настройки модели." }, - "SenseChat-Vision": { - "description": "Последняя версия модели (V5.5), длина контекста 16K, поддерживает ввод нескольких изображений, полностью реализована оптимизация базовых возможностей модели, значительно улучшены распознавание свойств объектов, пространственные отношения, распознавание событий, понимание сцен, распознавание эмоций, логическое рассуждение и генерация текста." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B — это открытая версия, обеспечивающая оптимизированный диалоговый опыт для приложений." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 — это эффективная мультимодальная модель, поддерживающая расширенные применения." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B — это высокоэффективная многомодальная модель, поддерживающая широкий спектр приложений." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 — это последняя экспериментальная модель, которая демонстрирует значительное улучшение производительности как в текстовых, так и в мультимодальных задачах." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Высокоскоростная модель, подходящая для реального времени диалогов." }, - "step-1.5v-turbo": { - "description": "Эта модель обладает мощными способностями к пониманию видео." + "step-1.5v-mini": { + "description": "Эта модель обладает мощными возможностями понимания видео." }, "step-1v-32k": { "description": "Поддерживает визуальный ввод, улучшая мультимодальный опыт взаимодействия." diff --git a/locales/tr-TR/error.json b/locales/tr-TR/error.json index 4a3e86eb47ec8..3e348018a82e8 100644 --- a/locales/tr-TR/error.json +++ b/locales/tr-TR/error.json @@ -13,7 +13,10 @@ "title": "Sayfa bir sorunla karşılaştı.." }, "fetchError": "İstek başarısız oldu", - "fetchErrorDetail": "Hata detayı", + "loginRequired": { + "desc": "Otomatik olarak giriş sayfasına yönlendirileceksiniz", + "title": "Lütfen bu özelliği kullanmadan önce giriş yapın" + }, "notFound": { "backHome": "Ana Sayfaya Dön", "check": "Lütfen URL'nizin doğru olduğundan emin olun", diff --git a/locales/tr-TR/models.json b/locales/tr-TR/models.json index 05842baca18b3..21034f3b3ca43 100644 --- a/locales/tr-TR/models.json +++ b/locales/tr-TR/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Hızlı soru-cevap ve model ince ayar senaryoları için uygundur." }, - "SenseChat-Vision": { - "description": "En son sürüm model (V5.5), 16K bağlam uzunluğu, çoklu görüntü girişini destekler, modelin temel yetenek optimizasyonunu tam olarak gerçekleştirir ve nesne özellik tanıma, mekansal ilişkiler, eylem olayı tanıma, sahne anlama, duygu tanıma, mantıksal bilgi akıl yürütme ve metin anlama üretiminde önemli iyileştirmeler sağlamıştır." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B açık kaynak versiyonu, diyalog uygulamaları için optimize edilmiş bir diyalog deneyimi sunar." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002, geniş uygulama yelpazesini destekleyen verimli bir çok modlu modeldir." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B, geniş uygulama yelpazesini destekleyen verimli bir çok modlu modeldir." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924, metin ve çok modlu kullanım durumlarında önemli performans artışları sunan en son deneysel modeldir." }, @@ -1042,7 +1042,7 @@ "step-1-flash": { "description": "Yüksek hızlı model, gerçek zamanlı diyaloglar için uygundur." }, - "step-1.5v-turbo": { + "step-1.5v-mini": { "description": "Bu model, güçlü bir video anlama yeteneğine sahiptir." }, "step-1v-32k": { diff --git a/locales/vi-VN/error.json b/locales/vi-VN/error.json index ef8453f2a1cc8..bd9dda57d85e6 100644 --- a/locales/vi-VN/error.json +++ b/locales/vi-VN/error.json @@ -13,7 +13,10 @@ "title": "Trang gặp một chút vấn đề.." }, "fetchError": "Yêu cầu thất bại", - "fetchErrorDetail": "Chi tiết lỗi", + "loginRequired": { + "desc": "Sẽ tự động chuyển hướng đến trang đăng nhập", + "title": "Vui lòng đăng nhập để sử dụng tính năng này" + }, "notFound": { "backHome": "Quay về Trang chủ", "check": "Vui lòng kiểm tra xem URL của bạn có đúng không", diff --git a/locales/vi-VN/models.json b/locales/vi-VN/models.json index 5bdafd2765130..8c02548cb27ee 100644 --- a/locales/vi-VN/models.json +++ b/locales/vi-VN/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "Phù hợp cho các tình huống hỏi đáp nhanh và tinh chỉnh mô hình." }, - "SenseChat-Vision": { - "description": "Phiên bản mô hình mới nhất (V5.5), độ dài ngữ cảnh 16K, hỗ trợ đầu vào nhiều hình ảnh, hoàn thiện khả năng cơ bản của mô hình, đạt được sự cải thiện lớn trong nhận diện thuộc tính đối tượng, mối quan hệ không gian, nhận diện sự kiện hành động, hiểu biết cảnh, nhận diện cảm xúc, suy luận kiến thức logic và hiểu biết sinh văn bản." - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B là phiên bản mã nguồn mở, cung cấp trải nghiệm đối thoại tối ưu cho các ứng dụng hội thoại." }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 là một mô hình đa phương thức hiệu quả, hỗ trợ mở rộng cho nhiều ứng dụng." }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B là một mô hình đa phương thức hiệu quả, hỗ trợ mở rộng cho nhiều ứng dụng." + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 là mô hình thử nghiệm mới nhất, có sự cải thiện đáng kể về hiệu suất trong các trường hợp sử dụng văn bản và đa phương thức." }, @@ -1042,8 +1042,8 @@ "step-1-flash": { "description": "Mô hình tốc độ cao, phù hợp cho đối thoại thời gian thực." }, - "step-1.5v-turbo": { - "description": "Mô hình này sở hữu khả năng hiểu video mạnh mẽ." + "step-1.5v-mini": { + "description": "Mô hình này có khả năng hiểu video mạnh mẽ." }, "step-1v-32k": { "description": "Hỗ trợ đầu vào hình ảnh, tăng cường trải nghiệm tương tác đa mô hình." diff --git a/locales/zh-CN/error.json b/locales/zh-CN/error.json index 62bb8ed2bfcaa..bf4177bbe0daa 100644 --- a/locales/zh-CN/error.json +++ b/locales/zh-CN/error.json @@ -12,8 +12,14 @@ "retry": "重新加载", "title": "页面遇到一点问题.." }, - "fetchError": "请求失败", - "fetchErrorDetail": "错误详情", + "fetchError": { + "detail": "错误详情", + "title": "请求失败" + }, + "loginRequired": { + "desc": "即将自动跳转到登录页面", + "title": "请登录后使用该功能" + }, "notFound": { "backHome": "返回首页", "check": "请检查你的 URL 是否正确", diff --git a/locales/zh-CN/models.json b/locales/zh-CN/models.json index 9012c0fd3d1a0..f3f4575a0505f 100644 --- a/locales/zh-CN/models.json +++ b/locales/zh-CN/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "适用于快速问答、模型微调场景" }, - "SenseChat-Vision": { - "description": "最新版本模型 (V5.5),16K上下文长度,支持多图的输入,全面实现模型基础能力优化,在对象属性识别、空间关系、动作事件识别、场景理解、情感识别、逻辑常识推理和文本理解生成上都实现了较大提升。" - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B 开放源码版本,为会话应用提供优化后的对话体验。" }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 是一款高效的多模态模型,支持广泛应用的扩展。" }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B 是一款高效的多模态模型,支持广泛应用的扩展。" + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 是最新的实验性模型,在文本和多模态用例中都有显著的性能提升。" }, @@ -1042,7 +1042,7 @@ "step-1-flash": { "description": "高速模型,适合实时对话。" }, - "step-1.5v-turbo": { + "step-1.5v-mini": { "description": "该模型拥有强大的视频理解能力。" }, "step-1v-32k": { diff --git a/locales/zh-TW/error.json b/locales/zh-TW/error.json index 8ab88baa7c8a3..14034aeaa5ba8 100644 --- a/locales/zh-TW/error.json +++ b/locales/zh-TW/error.json @@ -13,7 +13,10 @@ "title": "頁面遇到一點問題.." }, "fetchError": "請求失敗", - "fetchErrorDetail": "錯誤詳情", + "loginRequired": { + "desc": "即將自動跳轉到登入頁面", + "title": "請登入後使用該功能" + }, "notFound": { "backHome": "返回首頁", "check": "請檢查你的 URL 是否正確", diff --git a/locales/zh-TW/models.json b/locales/zh-TW/models.json index 010777f03e186..c2f05614b80f2 100644 --- a/locales/zh-TW/models.json +++ b/locales/zh-TW/models.json @@ -173,9 +173,6 @@ "SenseChat-Turbo": { "description": "適用於快速問答、模型微調場景" }, - "SenseChat-Vision": { - "description": "最新版本模型 (V5.5),16K上下文長度,支持多圖的輸入,全面實現模型基礎能力優化,在物件屬性識別、空間關係、動作事件識別、場景理解、情感識別、邏輯常識推理和文本理解生成上都實現了較大提升。" - }, "THUDM/glm-4-9b-chat": { "description": "GLM-4 9B 開放源碼版本,為會話應用提供優化後的對話體驗。" }, @@ -425,6 +422,9 @@ "gemini-1.5-flash-002": { "description": "Gemini 1.5 Flash 002 是一款高效的多模態模型,支持廣泛應用的擴展。" }, + "gemini-1.5-flash-8b": { + "description": "Gemini 1.5 Flash 8B 是一款高效的多模態模型,支持廣泛應用的擴展。" + }, "gemini-1.5-flash-8b-exp-0924": { "description": "Gemini 1.5 Flash 8B 0924 是最新的實驗性模型,在文本和多模態用例中都有顯著的性能提升。" }, @@ -1042,7 +1042,7 @@ "step-1-flash": { "description": "高速模型,適合實時對話。" }, - "step-1.5v-turbo": { + "step-1.5v-mini": { "description": "該模型擁有強大的視頻理解能力。" }, "step-1v-32k": { diff --git a/src/components/FetchErrorNotification/Description.tsx b/src/components/Error/Description.tsx similarity index 94% rename from src/components/FetchErrorNotification/Description.tsx rename to src/components/Error/Description.tsx index 6ff8b3a4a606b..e0433afc7bbf1 100644 --- a/src/components/FetchErrorNotification/Description.tsx +++ b/src/components/Error/Description.tsx @@ -34,7 +34,7 @@ const Description = memo<{ message: string; status: number }>(({ message, status }} style={{ cursor: 'pointer', fontSize: 12 }} > - {t('fetchErrorDetail')} + {t('fetchError.detail')} (({ timeout = 2000 }) => { + const signIn = useUserStore((s) => s.openLogin); + const { t } = useTranslation('error'); + + useTimeout(() => { + signIn(); + }, timeout); + + return
{t('loginRequired.desc')}
; +}); + +export default RedirectLogin; diff --git a/src/components/FetchErrorNotification/index.tsx b/src/components/Error/fetchErrorNotification.tsx similarity index 72% rename from src/components/FetchErrorNotification/index.tsx rename to src/components/Error/fetchErrorNotification.tsx index 1b11a1cfd09bf..95919108f148d 100644 --- a/src/components/FetchErrorNotification/index.tsx +++ b/src/components/Error/fetchErrorNotification.tsx @@ -1,3 +1,4 @@ +import { FluentEmoji } from '@lobehub/ui'; import { t } from 'i18next'; import { notification } from '@/components/AntdStaticMethods'; @@ -8,7 +9,8 @@ export const fetchErrorNotification = { error: ({ status, errorMessage }: { errorMessage: string; status: number }) => { notification.error({ description: , - message: t('fetchError', { ns: 'error' }), + icon: , + message: t('fetchError.title', { ns: 'error' }), type: 'error', }); }, diff --git a/src/components/Error/loginRequiredNotification.tsx b/src/components/Error/loginRequiredNotification.tsx new file mode 100644 index 0000000000000..305cd63c70c1e --- /dev/null +++ b/src/components/Error/loginRequiredNotification.tsx @@ -0,0 +1,19 @@ +import { FluentEmoji } from '@lobehub/ui'; +import { t } from 'i18next'; + +import { notification } from '@/components/AntdStaticMethods'; + +import RedirectLogin from './RedirectLogin'; + +export const loginRequired = { + redirect: ({ timeout = 2000 }: { timeout?: number } = {}) => { + notification.error({ + description: , + duration: timeout / 1000, + icon: , + message: t('loginRequired.title', { ns: 'error' }), + showProgress: true, + type: 'warning', + }); + }, +}; diff --git a/src/features/User/UserInfo.tsx b/src/features/User/UserInfo.tsx index 414f87d2411f9..5b7a2bd0d41bc 100644 --- a/src/features/User/UserInfo.tsx +++ b/src/features/User/UserInfo.tsx @@ -6,7 +6,7 @@ import { Flexbox, FlexboxProps } from 'react-layout-kit'; import PlanTag from '@/features/User/PlanTag'; import { useUserStore } from '@/store/user'; -import { userProfileSelectors } from '@/store/user/selectors'; +import { authSelectors, userProfileSelectors } from '@/store/user/selectors'; import UserAvatar, { type UserAvatarProps } from './UserAvatar'; @@ -28,7 +28,7 @@ export interface UserInfoProps extends FlexboxProps { const UserInfo = memo(({ avatarProps, ...rest }) => { const { styles, theme } = useStyles(); - + const isSignedIn = useUserStore(authSelectors.isLogin); const [nickname, username] = useUserStore((s) => [ userProfileSelectors.nickName(s), userProfileSelectors.username(s), @@ -51,7 +51,7 @@ const UserInfo = memo(({ avatarProps, ...rest }) => {
{username}
- + {isSignedIn && } ); }); diff --git a/src/libs/trpc/client/lambda.ts b/src/libs/trpc/client/lambda.ts index 8edb114608a43..543cee1268f74 100644 --- a/src/libs/trpc/client/lambda.ts +++ b/src/libs/trpc/client/lambda.ts @@ -2,7 +2,8 @@ import { createTRPCClient, httpBatchLink } from '@trpc/client'; import { createTRPCReact } from '@trpc/react-query'; import superjson from 'superjson'; -import { fetchErrorNotification } from '@/components/FetchErrorNotification'; +import { fetchErrorNotification } from '@/components/Error/fetchErrorNotification'; +import { loginRequired } from '@/components/Error/loginRequiredNotification'; import { ModelProvider } from '@/libs/agent-runtime'; import type { LambdaRouter } from '@/server/routers/lambda'; @@ -20,7 +21,16 @@ const links = [ const errorData = item.error.json; const status = errorData.data.httpStatus; - fetchErrorNotification.error({ errorMessage: errorData.message, status }); + + switch (status) { + case 401: { + loginRequired.redirect(); + break; + } + default: { + fetchErrorNotification.error({ errorMessage: errorData.message, status }); + } + } }); return response; diff --git a/src/locales/default/error.ts b/src/locales/default/error.ts index bc1d86cf907f4..4d4f06c9ab61a 100644 --- a/src/locales/default/error.ts +++ b/src/locales/default/error.ts @@ -12,8 +12,14 @@ export default { retry: '重新加载', title: '页面遇到一点问题..', }, - fetchError: '请求失败', - fetchErrorDetail: '错误详情', + fetchError: { + detail: '错误详情', + title: '请求失败', + }, + loginRequired: { + desc: '即将自动跳转到登录页面', + title: '请登录后使用该功能', + }, notFound: { backHome: '返回首页', check: '请检查你的 URL 是否正确', diff --git a/src/store/user/slices/auth/action.ts b/src/store/user/slices/auth/action.ts index f5b6fac1b2ee3..5787730bff963 100644 --- a/src/store/user/slices/auth/action.ts +++ b/src/store/user/slices/auth/action.ts @@ -41,7 +41,12 @@ export const createAuthSlice: StateCreator< }, openLogin: async () => { if (enableClerk) { - get().clerkSignIn?.({ fallbackRedirectUrl: location.toString() }); + const reditectUrl = location.toString(); + get().clerkSignIn?.({ + fallbackRedirectUrl: reditectUrl, + signUpForceRedirectUrl: reditectUrl, + signUpUrl: '/signup', + }); return; }