Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/lobehub/lobe-chat
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Sep 18, 2024
2 parents e7285bf + c7092e5 commit 9fe7578
Show file tree
Hide file tree
Showing 181 changed files with 9,084 additions and 410 deletions.
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,58 @@

# Changelog

## [Version 1.19.0](https://github.com/lobehub/lobe-chat/compare/v1.18.2...v1.19.0)

<sup>Released on **2024-09-18**</sup>

#### ✨ Features

- **misc**: Add Ai21Labs model provider, add Github Models provider, support native Artifacts just like Claude.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's improved

- **misc**: Add Ai21Labs model provider, closes [#3727](https://github.com/lobehub/lobe-chat/issues/3727) ([d2fe0f0](https://github.com/lobehub/lobe-chat/commit/d2fe0f0))
- **misc**: Add Github Models provider, closes [#3869](https://github.com/lobehub/lobe-chat/issues/3869) ([8eac1bd](https://github.com/lobehub/lobe-chat/commit/8eac1bd))
- **misc**: Support native Artifacts just like Claude, closes [#3985](https://github.com/lobehub/lobe-chat/issues/3985) ([0c42c46](https://github.com/lobehub/lobe-chat/commit/0c42c46))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.18.2](https://github.com/lobehub/lobe-chat/compare/v1.18.1...v1.18.2)

<sup>Released on **2024-09-18**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix InterceptingRoutes in discover.

<br/>

<details>
<summary><kbd>Improvements and Fixes</kbd></summary>

#### What's fixed

- **misc**: Fix InterceptingRoutes in discover, closes [#4011](https://github.com/lobehub/lobe-chat/issues/4011) ([2b75040](https://github.com/lobehub/lobe-chat/commit/2b75040))

</details>

<div align="right">

[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)

</div>

### [Version 1.18.1](https://github.com/lobehub/lobe-chat/compare/v1.18.0...v1.18.1)

<sup>Released on **2024-09-18**</sup>
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ ENV ACCESS_CODE="" \

# Model Variables
ENV \
# AI21
AI21_API_KEY="" \
# Ai360
AI360_API_KEY="" \
# Anthropic
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.database
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ ENV NEXT_PUBLIC_S3_DOMAIN="" \

# Model Variables
ENV \
# AI21
AI21_API_KEY="" \
# Ai360
AI360_API_KEY="" \
# Anthropic
Expand Down
6 changes: 6 additions & 0 deletions locales/ar/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"agentDefaultMessageWithSystemRole": "مرحبًا، أنا **{{name}}**، {{systemRole}}، دعنا نبدأ الدردشة!",
"agentDefaultMessageWithoutEdit": "مرحبًا، أنا **{{name}}**، دعنا نبدأ المحادثة!",
"agentsAndConversations": "الوكلاء والمحادثات",
"artifact": {
"generating": "جاري الإنشاء",
"thinking": "جاري التفكير",
"thought": "عملية التفكير",
"unknownTitle": "عمل غير مسمى"
},
"backToBottom": "العودة إلى الأسفل",
"chatList": {
"longMessageDetail": "عرض التفاصيل"
Expand Down
1 change: 1 addition & 0 deletions locales/ar/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"InvalidAccessCode": "كلمة المرور غير صحيحة أو فارغة، يرجى إدخال كلمة مرور الوصول الصحيحة أو إضافة مفتاح API مخصص",
"InvalidBedrockCredentials": "فشلت مصادقة Bedrock، يرجى التحقق من AccessKeyId/SecretAccessKey وإعادة المحاولة",
"InvalidClerkUser": "عذرًا، لم تقم بتسجيل الدخول بعد، يرجى تسجيل الدخول أو التسجيل للمتابعة",
"InvalidGithubToken": "رمز وصول شخصية GitHub غير صحيح أو فارغ، يرجى التحقق من رمز وصول GitHub الشخصي والمحاولة مرة أخرى",
"InvalidOllamaArgs": "تكوين Ollama غير صحيح، يرجى التحقق من تكوين Ollama وإعادة المحاولة",
"InvalidProviderAPIKey": "{{provider}} مفتاح API غير صحيح أو فارغ، يرجى التحقق من مفتاح API {{provider}} الخاص بك وحاول مرة أخرى",
"LocationNotSupportError": "عذرًا، لا يدعم موقعك الحالي خدمة هذا النموذج، قد يكون ذلك بسبب قيود المنطقة أو عدم توفر الخدمة. يرجى التحقق مما إذا كان الموقع الحالي يدعم استخدام هذه الخدمة، أو محاولة استخدام معلومات الموقع الأخرى.",
Expand Down
7 changes: 7 additions & 0 deletions locales/ar/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"title": "استخدام معلومات المصادقة الخاصة بـ Bedrock المخصصة"
}
},
"github": {
"personalAccessToken": {
"desc": "أدخل رمز الوصول الشخصي الخاص بك على Github، انقر [هنا](https://github.com/settings/tokens) لإنشاء واحد",
"placeholder": "ghp_xxxxxx",
"title": "GitHub PAT"
}
},
"ollama": {
"checker": {
"desc": "اختبر ما إذا تم إدخال عنوان الوكيل بشكل صحيح",
Expand Down
16 changes: 16 additions & 0 deletions locales/ar/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
"file": "ملف"
}
},
"Plugins": "ملحقات",
"actions": {
"genAiMessage": "إنشاء رسالة مساعد ذكاء اصطناعي",
"summary": "ملخص",
"summaryTooltip": "ملخص للمحتوى الحالي"
},
"artifacts": {
"display": {
"code": "رمز",
"preview": "معاينة"
},
"svg": {
"copyAsImage": "نسخ كصورة",
"copyFail": "فشل النسخ، سبب الخطأ: {{error}}",
"copySuccess": "تم نسخ الصورة بنجاح",
"download": {
"png": "تحميل كـ PNG",
"svg": "تحميل كـ SVG"
}
}
},
"emptyArtifactList": "قائمة القطع الأثرية الحالية فارغة، يرجى استخدام الإضافات في الجلسة ومن ثم التحقق مرة أخرى",
"emptyKnowledgeList": "قائمة المعرفة الحالية فارغة، يرجى فتح قاعدة المعرفة حسب الحاجة في المحادثة قبل العرض",
"files": "ملفات",
Expand Down
6 changes: 6 additions & 0 deletions locales/bg-BG/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"agentDefaultMessageWithSystemRole": "Здравей, аз съм **{{name}}**, {{systemRole}}. Нека започнем да чатим!",
"agentDefaultMessageWithoutEdit": "Здравей, аз съм **{{name}}** и нека започнем разговора!",
"agentsAndConversations": "агенти и разговори",
"artifact": {
"generating": "Генериране",
"thinking": "В процес на мислене",
"thought": "Процес на мислене",
"unknownTitle": "Неназован артефакт"
},
"backToBottom": "Върни се в началото",
"chatList": {
"longMessageDetail": "Вижте детайлите"
Expand Down
1 change: 1 addition & 0 deletions locales/bg-BG/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"InvalidAccessCode": "Невалиден или празен код за достъп. Моля, въведете правилния код за достъп или добавете персонализиран API ключ.",
"InvalidBedrockCredentials": "Удостоверяването на Bedrock е неуспешно. Моля, проверете AccessKeyId/SecretAccessKey и опитайте отново.",
"InvalidClerkUser": "很抱歉,你当前尚未登录,请先登录或注册账号后继续操作",
"InvalidGithubToken": "GitHub Личният Достъпен Токен е неправилен или е празен. Моля, проверете Личния Достъпен Токен на GitHub и опитайте отново.",
"InvalidOllamaArgs": "Невалидна конфигурация на Ollama, моля, проверете конфигурацията на Ollama и опитайте отново",
"InvalidProviderAPIKey": "{{provider}} API ключ е невалиден или липсва, моля проверете {{provider}} API ключа и опитайте отново",
"LocationNotSupportError": "Съжаляваме, вашето текущо местоположение не поддържа тази услуга на модела. Това може да се дължи на регионални ограничения или на недостъпност на услугата. Моля, потвърдете дали текущото местоположение поддържа използването на тази услуга или опитайте да използвате друго местоположение.",
Expand Down
7 changes: 7 additions & 0 deletions locales/bg-BG/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"title": "Използване на персонализирана информация за удостоверяване на Bedrock"
}
},
"github": {
"personalAccessToken": {
"desc": "Въведете вашия GitHub PAT, кликнете [тук](https://github.com/settings/tokens), за да създадете",
"placeholder": "ghp_xxxxxx",
"title": "GitHub PAT"
}
},
"ollama": {
"checker": {
"desc": "Тестване дали адресът на прокси е попълнен правилно",
Expand Down
16 changes: 16 additions & 0 deletions locales/bg-BG/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
"file": "Файл"
}
},
"Plugins": "Плъгини",
"actions": {
"genAiMessage": "Създаване на съобщение на помощника",
"summary": "Обобщение",
"summaryTooltip": "Обобщение на текущото съдържание"
},
"artifacts": {
"display": {
"code": "Код",
"preview": "Преглед"
},
"svg": {
"copyAsImage": "Копирай като изображение",
"copyFail": "Копирането не успя, причина за грешката: {{error}}",
"copySuccess": "Изображението е копирано успешно",
"download": {
"png": "Изтегли като PNG",
"svg": "Изтегли като SVG"
}
}
},
"emptyArtifactList": "Списъкът с текущите артефакти е празен. Моля, използвайте добавки в разговора и след това проверете отново.",
"emptyKnowledgeList": "Текущият списък с познания е празен. Моля, активирайте базата данни на познанията по време на сесията, за да я прегледате.",
"files": "файлове",
Expand Down
6 changes: 6 additions & 0 deletions locales/de-DE/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"agentDefaultMessageWithSystemRole": "Hallo, ich bin **{{name}}**, {{systemRole}}. Lass uns chatten!",
"agentDefaultMessageWithoutEdit": "Hallo, ich bin **{{name}}**. Lassen Sie uns ins Gespräch kommen!",
"agentsAndConversations": "Agenten und Unterhaltungen",
"artifact": {
"generating": "Wird generiert",
"thinking": "Denken",
"thought": "Denkenprozess",
"unknownTitle": "Unbenanntes Werk"
},
"backToBottom": "Zurück zum Ende",
"chatList": {
"longMessageDetail": "Details anzeigen"
Expand Down
1 change: 1 addition & 0 deletions locales/de-DE/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"InvalidAccessCode": "Das Passwort ist ungültig oder leer. Bitte geben Sie das richtige Zugangspasswort ein oder fügen Sie einen benutzerdefinierten API-Schlüssel hinzu.",
"InvalidBedrockCredentials": "Die Bedrock-Authentifizierung ist fehlgeschlagen. Bitte überprüfen Sie AccessKeyId/SecretAccessKey und versuchen Sie es erneut.",
"InvalidClerkUser": "Entschuldigung, du bist derzeit nicht angemeldet. Bitte melde dich an oder registriere ein Konto, um fortzufahren.",
"InvalidGithubToken": "Der persönliche Zugriffstoken für Github ist ungültig oder leer. Bitte überprüfen Sie den persönlichen Zugriffstoken für Github und versuchen Sie es erneut.",
"InvalidOllamaArgs": "Ollama-Konfiguration ist ungültig. Bitte überprüfen Sie die Ollama-Konfiguration und versuchen Sie es erneut.",
"InvalidProviderAPIKey": "{{provider}} API-Schlüssel ist ungültig oder leer. Bitte überprüfen Sie den {{provider}} API-Schlüssel und versuchen Sie es erneut.",
"LocationNotSupportError": "Entschuldigung, Ihr Standort unterstützt diesen Modellservice möglicherweise aufgrund von regionalen Einschränkungen oder nicht aktivierten Diensten nicht. Bitte überprüfen Sie, ob der aktuelle Standort die Verwendung dieses Dienstes unterstützt, oder versuchen Sie, andere Standortinformationen zu verwenden.",
Expand Down
7 changes: 7 additions & 0 deletions locales/de-DE/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"title": "Verwenden Sie benutzerdefinierte Bedrock-Authentifizierungsinformationen"
}
},
"github": {
"personalAccessToken": {
"desc": "Geben Sie Ihr GitHub-PAT ein und klicken Sie [hier](https://github.com/settings/tokens), um eines zu erstellen.",
"placeholder": "ghp_xxxxxx",
"title": "GitHub PAT"
}
},
"ollama": {
"checker": {
"desc": "Testen Sie, ob die Proxy-Adresse korrekt eingetragen wurde",
Expand Down
16 changes: 16 additions & 0 deletions locales/de-DE/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
"file": "Datei"
}
},
"Plugins": "Plugins",
"actions": {
"genAiMessage": "Assistenten-Nachricht erstellen",
"summary": "Zusammenfassung",
"summaryTooltip": "Zusammenfassung des aktuellen Inhalts"
},
"artifacts": {
"display": {
"code": "Code",
"preview": "Vorschau"
},
"svg": {
"copyAsImage": "Als Bild kopieren",
"copyFail": "Kopieren fehlgeschlagen, Fehlerursache: {{error}}",
"copySuccess": "Bild erfolgreich kopiert",
"download": {
"png": "Als PNG herunterladen",
"svg": "Als SVG herunterladen"
}
}
},
"emptyArtifactList": "Die Liste der Artefakte ist derzeit leer. Bitte verwenden Sie Plugins in der Sitzung und überprüfen Sie sie erneut.",
"emptyKnowledgeList": "Die aktuelle Wissensliste ist leer. Bitte aktivieren Sie die Wissensdatenbank nach Bedarf in der Sitzung, um sie anzuzeigen.",
"files": "Dateien",
Expand Down
6 changes: 6 additions & 0 deletions locales/en-US/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"agentDefaultMessageWithSystemRole": "Hello, I'm **{{name}}**, {{systemRole}}. Let's start chatting!",
"agentDefaultMessageWithoutEdit": "Hello, I'm **{{name}}**, let's start chatting!",
"agentsAndConversations": "Assistants and Conversations",
"artifact": {
"generating": "Generating",
"thinking": "Thinking",
"thought": "Thought Process",
"unknownTitle": "Untitled Work"
},
"backToBottom": "Back to bottom",
"chatList": {
"longMessageDetail": "View Details"
Expand Down
1 change: 1 addition & 0 deletions locales/en-US/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"InvalidAccessCode": "Invalid access code or empty. Please enter the correct access code or add a custom API Key.",
"InvalidBedrockCredentials": "Bedrock authentication failed. Please check the AccessKeyId/SecretAccessKey and retry.",
"InvalidClerkUser": "Sorry, you are not currently logged in. Please log in or register an account to continue.",
"InvalidGithubToken": "The GitHub Personal Access Token is incorrect or empty. Please check your GitHub Personal Access Token and try again.",
"InvalidOllamaArgs": "Invalid Ollama configuration, please check Ollama configuration and try again",
"InvalidProviderAPIKey": "{{provider}} API Key is incorrect or empty, please check your {{provider}} API Key and try again",
"LocationNotSupportError": "We're sorry, your current location does not support this model service. This may be due to regional restrictions or the service not being available. Please confirm if the current location supports using this service, or try using a different location.",
Expand Down
7 changes: 7 additions & 0 deletions locales/en-US/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"title": "Use Custom Bedrock Authentication Information"
}
},
"github": {
"personalAccessToken": {
"desc": "Enter your GitHub PAT. Click [here](https://github.com/settings/tokens) to create one.",
"placeholder": "ghp_xxxxxx",
"title": "GitHub PAT"
}
},
"ollama": {
"checker": {
"desc": "Test if the proxy address is correctly filled in",
Expand Down
16 changes: 16 additions & 0 deletions locales/en-US/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
"file": "File"
}
},
"Plugins": "Plugins",
"actions": {
"genAiMessage": "Generate Assistant Message",
"summary": "Summary",
"summaryTooltip": "Summarize current content"
},
"artifacts": {
"display": {
"code": "Code",
"preview": "Preview"
},
"svg": {
"copyAsImage": "Copy as Image",
"copyFail": "Copy failed, reason: {{error}}",
"copySuccess": "Image copied successfully",
"download": {
"png": "Download as PNG",
"svg": "Download as SVG"
}
}
},
"emptyArtifactList": "The current Artifacts list is empty. Please use plugins in the session as needed before viewing.",
"emptyKnowledgeList": "The current knowledge list is empty. Please enable the knowledge base as needed during the conversation before viewing.",
"files": "Files",
Expand Down
6 changes: 6 additions & 0 deletions locales/es-ES/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
"agentDefaultMessageWithSystemRole": "Hola, soy **{{name}}**, {{systemRole}}, ¡comencemos a chatear!",
"agentDefaultMessageWithoutEdit": "¡Hola, soy **{{name}}**! Comencemos nuestra conversación.",
"agentsAndConversations": "agentesYConversaciones",
"artifact": {
"generating": "Generando",
"thinking": "Pensando",
"thought": "Proceso de pensamiento",
"unknownTitle": "Obra sin título"
},
"backToBottom": "Volver al fondo",
"chatList": {
"longMessageDetail": "Ver detalles"
Expand Down
1 change: 1 addition & 0 deletions locales/es-ES/error.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"InvalidAccessCode": "La contraseña no es válida o está vacía. Por favor, introduce una contraseña de acceso válida o añade una clave API personalizada",
"InvalidBedrockCredentials": "La autenticación de Bedrock no se ha completado con éxito, por favor, verifica AccessKeyId/SecretAccessKey e inténtalo de nuevo",
"InvalidClerkUser": "Lo siento mucho, actualmente no has iniciado sesión. Por favor, inicia sesión o regístrate antes de continuar.",
"InvalidGithubToken": "El token de acceso personal de Github es incorrecto o está vacío. Por favor, verifica el token de acceso personal de Github y vuelve a intentarlo.",
"InvalidOllamaArgs": "La configuración de Ollama no es válida, por favor revisa la configuración de Ollama e inténtalo de nuevo",
"InvalidProviderAPIKey": "{{provider}} API Key incorrecta o vacía, por favor revisa tu {{provider}} API Key e intenta de nuevo",
"LocationNotSupportError": "Lo sentimos, tu ubicación actual no es compatible con este servicio de modelo, puede ser debido a restricciones geográficas o a que el servicio no está disponible. Por favor, verifica si tu ubicación actual es compatible con este servicio o intenta usar otra información de ubicación.",
Expand Down
7 changes: 7 additions & 0 deletions locales/es-ES/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,13 @@
"title": "Usar información de autenticación de Bedrock personalizada"
}
},
"github": {
"personalAccessToken": {
"desc": "Introduce tu PAT de Github, haz clic [aquí](https://github.com/settings/tokens) para crear uno",
"placeholder": "ghp_xxxxxx",
"title": "GitHub PAT"
}
},
"ollama": {
"checker": {
"desc": "Prueba si la dirección del proxy de la interfaz se ha introducido correctamente",
Expand Down
16 changes: 16 additions & 0 deletions locales/es-ES/portal.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,27 @@
"file": "Archivo"
}
},
"Plugins": "Complementos",
"actions": {
"genAiMessage": "Crear mensaje de IA",
"summary": "Resumen",
"summaryTooltip": "Resumir el contenido actual"
},
"artifacts": {
"display": {
"code": "Código",
"preview": "Vista previa"
},
"svg": {
"copyAsImage": "Copiar como imagen",
"copyFail": "Error al copiar, motivo del error: {{error}}",
"copySuccess": "Imagen copiada con éxito",
"download": {
"png": "Descargar como PNG",
"svg": "Descargar como SVG"
}
}
},
"emptyArtifactList": "La lista de Artefactos actual está vacía. Por favor, utilice los complementos en la conversación y vuelva a intentarlo.",
"emptyKnowledgeList": "La lista de conocimientos actual está vacía. Por favor, activa la base de conocimientos según sea necesario en la conversación antes de volver a revisar.",
"files": "archivos",
Expand Down
Loading

0 comments on commit 9fe7578

Please sign in to comment.