Skip to content

Commit

Permalink
✨ feat: support export as markdown and JSON (lobehub#4615)
Browse files Browse the repository at this point in the history
* ✨ feat: support share to content & json

* 📱 style: improve mobile

* 🔥 chore: remove shareGPT

* 🌐 chore: add i18n

* 💄 style: screenshot by default

* 🐛 fix: fix system role

* 💄 style: fix style

* 🐛 fix: fix tools and tool_call_id be null
  • Loading branch information
arvinxx authored Nov 5, 2024
1 parent 90d7dcb commit 16ded12
Show file tree
Hide file tree
Showing 61 changed files with 1,157 additions and 656 deletions.
8 changes: 7 additions & 1 deletion locales/ar/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "يجب أن يكون طول اسم المجموعة بين 1 و 20"
},
"shareModal": {
"copy": "نسخ",
"download": "تحميل اللقطة",
"downloadFile": "تحميل الملف",
"exportTitle": "العنوان الافتراضي",
"imageType": "نوع الصورة",
"includeTool": "تضمين رسالة الأداة",
"includeUser": "تضمين رسالة المستخدم",
"screenshot": "لقطة شاشة",
"settings": "إعدادات التصدير",
"shareToShareGPT": "إنشاء رابط مشاركة ShareGPT",
"text": "نص",
"withBackground": "تضمين صورة الخلفية",
"withFooter": "تضمين تذييل",
"withPluginInfo": "تضمين معلومات البرنامج المساعد",
"withRole": "تضمين رسالة الدور",
"withSystemRole": "تضمين دور المساعد"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/ar/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 يوفر تقدمًا في القدرات الأساسية للمؤسسات، بما في ذلك سياق يصل إلى 200K توكن، وتقليل كبير في معدل حدوث الهلوسة في النموذج، وإشعارات النظام، وميزة اختبار جديدة: استدعاء الأدوات."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku هو أسرع نموذج من الجيل التالي من Anthropic. مقارنةً بـ Claude 3 Haiku، فإن Claude 3.5 Haiku قد حقق تحسينات في جميع المهارات، وتفوق في العديد من اختبارات الذكاء على أكبر نموذج من الجيل السابق، Claude 3 Opus."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet يوفر قدرات تتجاوز Opus وسرعة أكبر من Sonnet، مع الحفاظ على نفس السعر. Sonnet بارع بشكل خاص في البرمجة، وعلوم البيانات، ومعالجة الصور، ومهام الوكالة."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/bg-BG/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "Дължината на името на групата трябва да бъде между 1-20 символа"
},
"shareModal": {
"copy": "Копирай",
"download": "Изтегли екранна снимка",
"downloadFile": "Изтегли файла",
"exportTitle": "По подразбиране заглавие",
"imageType": "Формат на изображението",
"includeTool": "Включи съобщения от инструмента",
"includeUser": "Включи съобщения от потребителя",
"screenshot": "Екранна снимка",
"settings": "Настройки за експортиране",
"shareToShareGPT": "Генерирай ShareGPT линк за споделяне",
"text": "Текст",
"withBackground": "Включи фоново изображение",
"withFooter": "Включи долен колонтитул",
"withPluginInfo": "Включи информация за плъгина",
"withRole": "Включи роля на съобщението",
"withSystemRole": "Включи настройката за роля на агента"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/bg-BG/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 предлага напредък в ключовите способности за бизнеса, включително водещи в индустрията 200K токена контекст, значително намаляване на честотата на илюзии на модела, системни подсказки и нова тестова функция: извикване на инструменти."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku е най-бързият следващ модел на Anthropic. В сравнение с Claude 3 Haiku, Claude 3.5 Haiku е подобрен във всички умения и надминава предишния най-голям модел Claude 3 Opus в много интелектуални тестове."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet предлага способности, надминаващи Opus и по-бърза скорост от Sonnet, като същевременно поддържа същата цена. Sonnet е особено силен в програмирането, науката за данни, визуалната обработка и задачи с агенти."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/de-DE/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "Gruppenname muss zwischen 1 und 20 Zeichen lang sein"
},
"shareModal": {
"copy": "Kopieren",
"download": "Screenshot herunterladen",
"downloadFile": "Datei herunterladen",
"exportTitle": "Standardtitel",
"imageType": "Bildformat",
"includeTool": "Plugin-Nachricht einfügen",
"includeUser": "Benutzernachricht einfügen",
"screenshot": "Screenshot",
"settings": "Exporteinstellungen",
"shareToShareGPT": "ShareGPT-Link generieren",
"text": "Text",
"withBackground": "Mit Hintergrundbild",
"withFooter": "Mit Fußzeile",
"withPluginInfo": "Mit Plugin-Informationen",
"withRole": "Nachrichtenrolle einfügen",
"withSystemRole": "Mit Assistentenrolle"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/de-DE/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 bietet Unternehmen Fortschritte in kritischen Fähigkeiten, einschließlich branchenführenden 200K Token Kontext, erheblich reduzierter Häufigkeit von Modellillusionen, Systemaufforderungen und einer neuen Testfunktion: Werkzeugaufrufe."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku ist das schnellste nächste Modell von Anthropic. Im Vergleich zu Claude 3 Haiku hat Claude 3.5 Haiku in allen Fähigkeiten Verbesserungen erzielt und übertrifft das vorherige größte Modell, Claude 3 Opus, in vielen intellektuellen Benchmark-Tests."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet bietet Fähigkeiten, die über Opus hinausgehen, und ist schneller als Sonnet, während es den gleichen Preis wie Sonnet beibehält. Sonnet ist besonders gut in Programmierung, Datenwissenschaft, visueller Verarbeitung und Agenturaufgaben."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/en-US/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "Group name length should be between 1-20"
},
"shareModal": {
"copy": "Copy",
"download": "Download Screenshot",
"downloadFile": "Download File",
"exportTitle": "Default Title",
"imageType": "Image Format",
"includeTool": "Include Plugin Messages",
"includeUser": "Include User Messages",
"screenshot": "Screenshot",
"settings": "Export Settings",
"shareToShareGPT": "Generate ShareGPT Sharing Link",
"text": "Text",
"withBackground": "Include Background Image",
"withFooter": "Include Footer",
"withPluginInfo": "Include Plugin Information",
"withRole": "Include Message Role",
"withSystemRole": "Include Assistant Role Setting"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/en-US/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 provides advancements in key capabilities for enterprises, including industry-leading 200K token context, significantly reducing the occurrence of model hallucinations, system prompts, and a new testing feature: tool invocation."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku is Anthropic's fastest next-generation model. Compared to Claude 3 Haiku, Claude 3.5 Haiku has improved in various skills and has surpassed the previous generation's largest model, Claude 3 Opus, in many intelligence benchmark tests."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet offers capabilities that surpass Opus and faster speeds than Sonnet, while maintaining the same price as Sonnet. Sonnet excels particularly in programming, data science, visual processing, and agent tasks."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/es-ES/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "El nombre del grupo debe tener entre 1 y 20 caracteres"
},
"shareModal": {
"copy": "Copiar",
"download": "Descargar captura de pantalla",
"downloadFile": "Descargar archivo",
"exportTitle": "Título predeterminado",
"imageType": "Tipo de imagen",
"includeTool": "Incluir mensajes de herramientas",
"includeUser": "Incluir mensajes de usuario",
"screenshot": "Captura de pantalla",
"settings": "Configuración de exportación",
"shareToShareGPT": "Generar enlace de compartición ShareGPT",
"text": "Texto",
"withBackground": "Incluir imagen de fondo",
"withFooter": "Incluir pie de página",
"withPluginInfo": "Incluir información del plugin",
"withRole": "Incluir rol de mensaje",
"withSystemRole": "Incluir configuración de rol del asistente"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/es-ES/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 ofrece avances en capacidades clave para empresas, incluyendo un contexto líder en la industria de 200K tokens, una reducción significativa en la tasa de alucinaciones del modelo, indicaciones del sistema y una nueva función de prueba: llamadas a herramientas."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku es el modelo de próxima generación más rápido de Anthropic. En comparación con Claude 3 Haiku, Claude 3.5 Haiku ha mejorado en todas las habilidades y ha superado al modelo más grande de la generación anterior, Claude 3 Opus, en muchas pruebas de referencia de inteligencia."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet ofrece capacidades que superan a Opus y una velocidad más rápida que Sonnet, manteniendo el mismo precio que Sonnet. Sonnet es especialmente bueno en programación, ciencia de datos, procesamiento visual y tareas de agentes."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/fa-IR/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "طول نام گروه باید بین 1 تا 20 کاراکتر باشد"
},
"shareModal": {
"copy": "کپی",
"download": "دانلود اسکرین‌شات",
"downloadFile": "دانلود فایل",
"exportTitle": "عنوان پیش‌فرض",
"imageType": "فرمت تصویر",
"includeTool": "شامل پیام‌های ابزار",
"includeUser": "شامل پیام‌های کاربر",
"screenshot": "اسکرین‌شات",
"settings": "تنظیمات خروجی",
"shareToShareGPT": "ایجاد لینک اشتراک‌گذاری ShareGPT",
"text": "متن",
"withBackground": "شامل تصویر پس‌زمینه",
"withFooter": "شامل پاورقی",
"withPluginInfo": "شامل اطلاعات افزونه",
"withRole": "شامل نقش پیام",
"withSystemRole": "شامل تنظیمات نقش دستیار"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/fa-IR/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 پیشرفت‌های کلیدی را برای کسب‌وکارها فراهم می‌کند، از جمله زمینه 200K توکن پیشرو در صنعت، کاهش قابل توجه در نرخ توهم مدل، اعلان‌های سیستمی و یک ویژگی آزمایشی جدید: فراخوانی ابزار."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku سریع‌ترین مدل نسل بعدی Anthropic است. در مقایسه با Claude 3 Haiku، Claude 3.5 Haiku در تمام مهارت‌ها بهبود یافته و در بسیاری از آزمون‌های استاندارد هوش، از بزرگ‌ترین مدل نسل قبلی یعنی Claude 3 Opus پیشی گرفته است."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet توانایی‌هایی فراتر از Opus ارائه می‌دهد و سرعتی سریع‌تر از Sonnet دارد، در حالی که قیمت آن با Sonnet یکسان است. Sonnet به‌ویژه در برنامه‌نویسی، علم داده، پردازش بصری و وظایف نمایندگی مهارت دارد."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/fr-FR/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "Le nom du groupe doit comporter entre 1 et 20 caractères"
},
"shareModal": {
"copy": "Copier",
"download": "Télécharger la capture d'écran",
"downloadFile": "Télécharger le fichier",
"exportTitle": "Titre par défaut",
"imageType": "Type d'image",
"includeTool": "Inclure les messages de l'outil",
"includeUser": "Inclure les messages de l'utilisateur",
"screenshot": "Capture d'écran",
"settings": "Paramètres d'exportation",
"shareToShareGPT": "Générer un lien de partage ShareGPT",
"text": "Texte",
"withBackground": "Avec image de fond",
"withFooter": "Avec pied de page",
"withPluginInfo": "Avec informations sur le plugin",
"withRole": "Inclure le rôle du message",
"withSystemRole": "Avec rôle de l'agent"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/fr-FR/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 offre des avancées clés pour les entreprises, y compris un contexte de 200K jetons, une réduction significative du taux d'illusion du modèle, des invites système et une nouvelle fonctionnalité de test : l'appel d'outils."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku est le modèle de prochaine génération le plus rapide d'Anthropic. Par rapport à Claude 3 Haiku, Claude 3.5 Haiku a amélioré ses compétences dans tous les domaines et a surpassé le plus grand modèle de la génération précédente, Claude 3 Opus, dans de nombreux tests de référence intellectuels."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet offre des capacités dépassant celles d'Opus et une vitesse plus rapide que Sonnet, tout en maintenant le même prix que Sonnet. Sonnet excelle particulièrement dans la programmation, la science des données, le traitement visuel et les tâches d'agent."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/it-IT/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "Il nome del gruppo deve essere lungo 1-20 caratteri"
},
"shareModal": {
"copy": "Copia",
"download": "Scarica screenshot",
"downloadFile": "Scarica file",
"exportTitle": "Titolo predefinito",
"imageType": "Tipo di immagine",
"includeTool": "Includi messaggio dello strumento",
"includeUser": "Includi messaggio dell'utente",
"screenshot": "Screenshot",
"settings": "Impostazioni di esportazione",
"shareToShareGPT": "Genera link di condivisione ShareGPT",
"text": "Testo",
"withBackground": "Con immagine di sfondo",
"withFooter": "Con piè di pagina",
"withPluginInfo": "Con informazioni sul plugin",
"withRole": "Includi ruolo del messaggio",
"withSystemRole": "Con impostazione del ruolo dell'assistente"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/it-IT/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2 offre progressi nelle capacità chiave per le aziende, inclusi contesti leader del settore fino a 200K token, riduzione significativa della frequenza di allucinazioni del modello, suggerimenti di sistema e una nuova funzionalità di test: chiamate di strumenti."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku è il modello di prossima generazione più veloce di Anthropic. Rispetto a Claude 3 Haiku, Claude 3.5 Haiku ha migliorato le proprie capacità in vari ambiti e ha superato il modello di generazione precedente, Claude 3 Opus, in molti test di intelligenza."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet offre capacità superiori a Opus e velocità più elevate rispetto a Sonnet, mantenendo lo stesso prezzo. Sonnet è particolarmente abile in programmazione, scienza dei dati, elaborazione visiva e compiti di agenti."
},
Expand Down
8 changes: 7 additions & 1 deletion locales/ja-JP/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "グループ名は1〜20文字で入力してください"
},
"shareModal": {
"copy": "コピー",
"download": "スクリーンショットをダウンロード",
"downloadFile": "ファイルをダウンロード",
"exportTitle": "デフォルトタイトル",
"imageType": "画像形式",
"includeTool": "ツールメッセージを含める",
"includeUser": "ユーザーメッセージを含める",
"screenshot": "スクリーンショット",
"settings": "エクスポート設定",
"shareToShareGPT": "ShareGPT 共有リンクを生成",
"text": "テキスト",
"withBackground": "背景画像を含む",
"withFooter": "フッターを含む",
"withPluginInfo": "プラグイン情報を含む",
"withRole": "メッセージの役割を含める",
"withSystemRole": "エージェントの役割を含む"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/ja-JP/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2は、業界をリードする200Kトークンのコンテキスト、モデルの幻覚の発生率を大幅に低下させる、システムプロンプト、および新しいテスト機能:ツール呼び出しを含む、企業にとって重要な能力の進歩を提供します。"
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haikuは、Anthropicの最も高速な次世代モデルです。Claude 3 Haikuと比較して、Claude 3.5 Haikuはすべてのスキルで向上しており、多くの知能ベンチマークテストで前の世代の最大モデルであるClaude 3 Opusを超えています。"
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnetは、Opusを超える能力とSonnetよりも速い速度を提供し、Sonnetと同じ価格を維持します。Sonnetは特にプログラミング、データサイエンス、視覚処理、エージェントタスクに優れています。"
},
Expand Down
8 changes: 7 additions & 1 deletion locales/ko-KR/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,20 @@
"tooLong": "그룹 이름은 1-20자여야 합니다"
},
"shareModal": {
"copy": "복사",
"download": "스크린샷 다운로드",
"downloadFile": "파일 다운로드",
"exportTitle": "기본 제목",
"imageType": "이미지 형식",
"includeTool": "플러그인 메시지 포함",
"includeUser": "사용자 메시지 포함",
"screenshot": "스크린샷",
"settings": "내보내기 설정",
"shareToShareGPT": "ShareGPT 공유 링크 생성",
"text": "텍스트",
"withBackground": "배경 이미지 포함",
"withFooter": "푸터 포함",
"withPluginInfo": "플러그인 정보 포함",
"withRole": "메시지 역할 포함",
"withSystemRole": "도우미 역할 포함"
},
"stt": {
Expand Down
3 changes: 3 additions & 0 deletions locales/ko-KR/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,9 @@
"claude-2.1": {
"description": "Claude 2는 기업에 중요한 능력의 발전을 제공하며, 업계 최고의 200K 토큰 컨텍스트, 모델 환각 발생률 대폭 감소, 시스템 프롬프트 및 새로운 테스트 기능인 도구 호출을 포함합니다."
},
"claude-3-5-haiku-20241022": {
"description": "Claude 3.5 Haiku는 Anthropic의 가장 빠른 차세대 모델입니다. Claude 3 Haiku와 비교할 때, Claude 3.5 Haiku는 모든 기술에서 향상되었으며, 많은 지능 기준 테스트에서 이전 세대의 가장 큰 모델인 Claude 3 Opus를 초월했습니다."
},
"claude-3-5-sonnet-20240620": {
"description": "Claude 3.5 Sonnet은 Opus를 초월하는 능력과 Sonnet보다 더 빠른 속도를 제공하며, Sonnet과 동일한 가격을 유지합니다. Sonnet은 프로그래밍, 데이터 과학, 시각 처리 및 대리 작업에 특히 강합니다."
},
Expand Down
Loading

0 comments on commit 16ded12

Please sign in to comment.