Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:

jobs:
# Package tests - using each package's own test script
test-packages:
test-intenral-packages:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down Expand Up @@ -41,6 +41,41 @@ jobs:
files: ./packages/${{ matrix.package }}/coverage/lcov.info
flags: packages/${{ matrix.package }}

test-packages:
runs-on: ubuntu-latest
strategy:
matrix:
package: [model-bank]

name: Test package ${{ matrix.package }}

steps:
- uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Install bun
uses: oven-sh/setup-bun@v1
with:
bun-version: ${{ secrets.BUN_VERSION }}

- name: Install deps
run: bun i

- name: Test ${{ matrix.package }} package with coverage
run: bun run --filter ${{ matrix.package }} test:coverage

- name: Upload ${{ matrix.package }} coverage to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/${{ matrix.package }}/coverage/lcov.info
flags: packages/${{ matrix.package }}


# App tests
test-website:
name: Test Website
Expand Down
84 changes: 84 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,90 @@

# Changelog

### [Version 1.118.6](https://github.com/lobehub/lobe-chat/compare/v1.118.5...v1.118.6)

<sup>Released on **2025-08-29**</sup>

#### 💄 Styles

- **misc**: Support non-stream mode.

<br/>

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

#### Styles

- **misc**: Support non-stream mode, closes [#8751](https://github.com/lobehub/lobe-chat/issues/8751) ([ce623bb](https://github.com/lobehub/lobe-chat/commit/ce623bb))

</details>

<div align="right">

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

</div>

### [Version 1.118.5](https://github.com/lobehub/lobe-chat/compare/v1.118.4...v1.118.5)

<sup>Released on **2025-08-29**</sup>

#### ♻ Code Refactoring

- **misc**: Refactor the `model-bank` package from `src/config/aiModels`.

#### 💄 Styles

- **misc**: Fix clerk scrollBox style, ModelFetcher support getting prices.

<br/>

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

#### Code refactoring

- **misc**: Refactor the `model-bank` package from `src/config/aiModels`, closes [#8983](https://github.com/lobehub/lobe-chat/issues/8983) ([c65eb09](https://github.com/lobehub/lobe-chat/commit/c65eb09))

#### Styles

- **misc**: Fix clerk scrollBox style, closes [#8989](https://github.com/lobehub/lobe-chat/issues/8989) ([b25b5a0](https://github.com/lobehub/lobe-chat/commit/b25b5a0))
- **misc**: ModelFetcher support getting prices, closes [#8985](https://github.com/lobehub/lobe-chat/issues/8985) ([58b73ec](https://github.com/lobehub/lobe-chat/commit/58b73ec))

</details>

<div align="right">

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

</div>

### [Version 1.118.4](https://github.com/lobehub/lobe-chat/compare/v1.118.3...v1.118.4)

<sup>Released on **2025-08-29**</sup>

#### 💄 Styles

- **misc**: Fix chat session part switch theme issue.

<br/>

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

#### Styles

- **misc**: Fix chat session part switch theme issue, closes [#8987](https://github.com/lobehub/lobe-chat/issues/8987) ([b7111be](https://github.com/lobehub/lobe-chat/commit/b7111be))

</details>

<div align="right">

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

</div>

### [Version 1.118.3](https://github.com/lobehub/lobe-chat/compare/v1.118.2...v1.118.3)

<sup>Released on **2025-08-29**</sup>
Expand Down
21 changes: 21 additions & 0 deletions changelog/v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,25 @@
[
{
"children": {
"improvements": ["Support non-stream mode."]
},
"date": "2025-08-29",
"version": "1.118.6"
},
{
"children": {
"improvements": ["Fix clerk scrollBox style, ModelFetcher support getting prices."]
},
"date": "2025-08-29",
"version": "1.118.5"
},
{
"children": {
"improvements": ["Fix chat session part switch theme issue."]
},
"date": "2025-08-29",
"version": "1.118.4"
},
{
"children": {
"fixes": ["Correct totalOutputTokens calculation for XAI provider."]
Expand Down
4 changes: 4 additions & 0 deletions locales/ar/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "تحديد عدد الرسائل التاريخية",
"unlimited": "غير محدود"
},
"enableStreaming": {
"desc": "تمكين الإخراج المتدفق لعرض الاستجابات في الوقت الفعلي. عند التعطيل، يتم عرض الاستجابة الكاملة فقط.",
"title": "تمكين الإخراج المتدفق"
},
"historyCount": {
"desc": "عدد الرسائل التي يتم إرفاقها في كل طلب (تشمل الأسئلة والأجوبة الجديدة. يُحسب كل سؤال وجواب كرسالة واحدة)",
"title": "عدد الرسائل المرفقة"
Expand Down
4 changes: 4 additions & 0 deletions locales/bg-BG/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Ограничаване на броя на съобщенията в историята",
"unlimited": "Неограничен брой съобщения в историята"
},
"enableStreaming": {
"desc": "Активирайте поточно предаване, за да показвате отговорите в реално време. Ако е деактивирано, ще се показва само пълният отговор.",
"title": "Активиране на поточно предаване"
},
"historyCount": {
"desc": "Брой исторически съобщения, носени с всяка заявка",
"title": "Брой прикачени съобщения в историята"
Expand Down
4 changes: 4 additions & 0 deletions locales/de-DE/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Historiennachrichten begrenzen",
"unlimited": "Unbegrenzte Historiennachrichten"
},
"enableStreaming": {
"desc": "Aktivieren Sie den Streaming-Ausgang, um Antworten in Echtzeit anzuzeigen. Wenn deaktiviert, wird nur die vollständige Antwort angezeigt.",
"title": "Streaming-Ausgabe aktivieren"
},
"historyCount": {
"desc": "Anzahl der Nachrichten pro Anfrage (einschließlich der neuesten Fragen und Antworten. Jede Frage und Antwort zählt als 1)",
"title": "Anzahl der mitgelieferten Nachrichten"
Expand Down
4 changes: 4 additions & 0 deletions locales/en-US/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Limit History Message Count",
"unlimited": "Unlimited history message count"
},
"enableStreaming": {
"desc": "Enable streaming output to display responses in real-time. When disabled, only the complete response is shown.",
"title": "Enable Streaming Output"
},
"historyCount": {
"desc": "Number of historical messages carried with each request",
"title": "Attached History Message Count"
Expand Down
4 changes: 4 additions & 0 deletions locales/es-ES/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Limitar número de mensajes históricos",
"unlimited": "Sin límite de mensajes históricos"
},
"enableStreaming": {
"desc": "Habilita la salida en streaming para mostrar la respuesta en tiempo real. Si se desactiva, solo se mostrará la respuesta completa.",
"title": "Habilitar salida en streaming"
},
"historyCount": {
"desc": "Número de mensajes incluidos en cada solicitud (incluyendo las preguntas más recientes. Cada pregunta y respuesta se cuenta como 1)",
"title": "Número de mensajes incluidos"
Expand Down
4 changes: 4 additions & 0 deletions locales/fa-IR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "محدودیت تعداد پیام‌های تاریخی",
"unlimited": "بدون محدودیت در تعداد پیام‌های تاریخی"
},
"enableStreaming": {
"desc": "فعال‌سازی خروجی جریانی برای نمایش پاسخ‌ها به‌صورت زنده. در صورت غیرفعال بودن، فقط پاسخ کامل نمایش داده می‌شود.",
"title": "فعال‌سازی خروجی جریانی"
},
"historyCount": {
"desc": "تعداد پیام‌هایی که در هر درخواست ارسال می‌شوند (شامل آخرین سوال نوشته‌شده. هر سوال و پاسخ به‌عنوان 1 محاسبه می‌شود)",
"title": "تعداد پیام‌های همراه"
Expand Down
4 changes: 4 additions & 0 deletions locales/fr-FR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Limite du nombre de messages historiques",
"unlimited": "Aucune limite sur le nombre de messages historiques"
},
"enableStreaming": {
"desc": "Activez la diffusion en continu pour afficher les réponses en temps réel. Si désactivé, seule la réponse complète sera affichée.",
"title": "Activer la diffusion en continu"
},
"historyCount": {
"desc": "Nombre de messages historiques à inclure dans chaque requête",
"title": "Nombre de messages historiques inclus"
Expand Down
4 changes: 4 additions & 0 deletions locales/it-IT/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Limita il numero di messaggi storici",
"unlimited": "Numero illimitato di messaggi storici"
},
"enableStreaming": {
"desc": "Abilita l'output in streaming per visualizzare la risposta in tempo reale. Se disabilitato, verrà mostrata solo la risposta completa.",
"title": "Abilita output in streaming"
},
"historyCount": {
"desc": "Numero di messaggi inclusi in ogni richiesta (inclusi gli ultimi messaggi scritti, ogni domanda e risposta conta come 1)",
"title": "Numero di messaggi inclusi"
Expand Down
4 changes: 4 additions & 0 deletions locales/ja-JP/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "過去メッセージ数を制限する",
"unlimited": "過去メッセージ数を制限しない"
},
"enableStreaming": {
"desc": "リアルタイムで応答を表示するためにストリーミング出力を有効にします。無効にすると、完全な応答のみが表示されます。",
"title": "ストリーミング出力を有効にする"
},
"historyCount": {
"desc": "リクエストごとに含まれる過去メッセージの数",
"title": "過去メッセージ数"
Expand Down
4 changes: 4 additions & 0 deletions locales/ko-KR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "이전 메시지 수 제한",
"unlimited": "이전 메시지 수 제한 없음"
},
"enableStreaming": {
"desc": "실시간으로 응답을 표시하려면 스트리밍 출력을 활성화하세요. 비활성화하면 전체 응답만 표시됩니다.",
"title": "스트리밍 출력 활성화"
},
"historyCount": {
"desc": "요청당 포함되는 이전 메시지 수",
"title": "이전 메시지 수"
Expand Down
4 changes: 4 additions & 0 deletions locales/nl-NL/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Berichtgeschiedenis beperken",
"unlimited": "Onbeperkt aantal berichten in de geschiedenis"
},
"enableStreaming": {
"desc": "Schakel streaming-uitvoer in om reacties in realtime weer te geven. Als dit is uitgeschakeld, wordt alleen de volledige reactie weergegeven.",
"title": "Streaming-uitvoer inschakelen"
},
"historyCount": {
"desc": "Aantal berichten dat bij elke aanvraag wordt meegenomen (inclusief de meest recente vraag. Elke vraag en antwoord tellen als 1)",
"title": "Berichtaantal meenemen"
Expand Down
4 changes: 4 additions & 0 deletions locales/pl-PL/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Ograniczenie liczby wiadomości w historii",
"unlimited": "Bez limitu wiadomości w historii"
},
"enableStreaming": {
"desc": "Włącz strumieniowe wyświetlanie odpowiedzi w czasie rzeczywistym. Po wyłączeniu wyświetlana jest tylko pełna odpowiedź.",
"title": "Włącz strumieniowe wyświetlanie"
},
"historyCount": {
"desc": "Liczba wiadomości przesyłanych w jednym żądaniu (obejmuje najnowsze pytania i odpowiedzi, gdzie każde pytanie i odpowiedź liczy się jako 1)",
"title": "Liczba wiadomości"
Expand Down
4 changes: 4 additions & 0 deletions locales/pt-BR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Limitar número de mensagens de histórico",
"unlimited": "Sem limite de mensagens de histórico"
},
"enableStreaming": {
"desc": "Ative a saída em fluxo para exibir respostas em tempo real. Quando desativado, apenas a resposta completa será exibida.",
"title": "Ativar saída em fluxo"
},
"historyCount": {
"desc": "Número de mensagens incluídas em cada solicitação (incluindo a última pergunta feita. Cada pergunta e resposta contam como 1)",
"title": "Número de mensagens incluídas"
Expand Down
4 changes: 4 additions & 0 deletions locales/ru-RU/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Ограничение истории сообщений",
"unlimited": "Без ограничения истории сообщений"
},
"enableStreaming": {
"desc": "Включите потоковую передачу для отображения ответа в реальном времени. Если отключено, будет показан только полный ответ.",
"title": "Включить потоковую передачу"
},
"historyCount": {
"desc": "Количество сообщений, передаваемых с каждым запросом",
"title": "Количество сообщений в истории"
Expand Down
4 changes: 4 additions & 0 deletions locales/tr-TR/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Geçmiş Mesaj Sayısı Sınırlama",
"unlimited": "Sınırsız geçmiş mesaj sayısı"
},
"enableStreaming": {
"desc": "Yanıtları gerçek zamanlı göstermek için akışlı çıktıyı etkinleştirin. Devre dışı bırakıldığında yalnızca tam yanıt gösterilir.",
"title": "Akışlı Çıktıyı Etkinleştir"
},
"historyCount": {
"desc": "Her istekle taşınan tarihsel mesaj sayısı",
"title": "Eklenen Geçmiş Mesaj Sayısı"
Expand Down
4 changes: 4 additions & 0 deletions locales/vi-VN/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "Giới hạn số lượng tin nhắn lịch sử",
"unlimited": "Không giới hạn số lượng tin nhắn lịch sử"
},
"enableStreaming": {
"desc": "Bật phát trực tiếp để hiển thị phản hồi theo thời gian thực. Tắt sẽ chỉ hiển thị phản hồi đầy đủ.",
"title": "Bật phát trực tiếp"
},
"historyCount": {
"desc": "Số lượng tin nhắn được gửi mỗi lần yêu cầu (bao gồm cả câu hỏi mới nhất. Mỗi câu hỏi và câu trả lời đều tính là 1)",
"title": "Số lượng tin nhắn đi kèm"
Expand Down
4 changes: 4 additions & 0 deletions locales/zh-CN/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "限制历史消息数",
"unlimited": "不限历史消息数"
},
"enableStreaming": {
"desc": "启用流式输出以实时显示响应。禁用后仅显示完整响应。",
"title": "启用流式输出"
},
"historyCount": {
"desc": "每次请求携带的消息数(包括最新编写的提问。每个提问和回答都计算1)",
"title": "附带消息数"
Expand Down
4 changes: 4 additions & 0 deletions locales/zh-TW/setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@
"title": "限制歷史訊息數",
"unlimited": "不限歷史訊息數"
},
"enableStreaming": {
"desc": "啟用串流輸出以即時顯示回應。停用後僅顯示完整回應。",
"title": "啟用串流輸出"
},
"historyCount": {
"desc": "每次請求攜帶的歷史訊息數",
"title": "附帶歷史訊息數"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lobehub/chat",
"version": "1.118.3",
"version": "1.118.6",
"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.",
"keywords": [
"framework",
Expand Down Expand Up @@ -210,6 +210,7 @@
"mammoth": "^1.10.0",
"markdown-to-txt": "^2.0.1",
"mdast-util-to-markdown": "^2.1.2",
"model-bank": "workspace:*",
"modern-screenshot": "^4.6.5",
"nanoid": "^5.1.5",
"next": "~15.3.5",
Expand Down
5 changes: 4 additions & 1 deletion packages/const/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"name": "@lobechat/const",
"version": "1.0.0",
"private": true,
"main": "./src/index.ts"
"main": "./src/index.ts",
"dependencies": {
"model-bank": "workspace:*"
}
}
2 changes: 1 addition & 1 deletion packages/const/src/image.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ModelParamsSchema } from '@/libs/standard-parameters';
import { ModelParamsSchema } from 'model-bank';

/**
* 默认宽高比,当模型不支持原生宽高比时使用
Expand Down
Loading
Loading