Skip to content

Commit

Permalink
Merge branch 'main' into models
Browse files Browse the repository at this point in the history
  • Loading branch information
hezhijie0327 authored Feb 13, 2025
2 parents 256d044 + 5a012e4 commit a2cb19c
Show file tree
Hide file tree
Showing 87 changed files with 3,124 additions and 1,305 deletions.
5 changes: 5 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ OPENAI_API_KEY=sk-xxxxxxxxx

# SILICONCLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx


### TencentCloud AI ####

# TENCENT_CLOUD_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

########################################
############ Market Service ############
########################################
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ on:
jobs:
lighthouse-badger-advanced:
name: ${{ matrix.NAME }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
timeout-minutes: 8
strategy:
fail-fast: false
Expand Down
150 changes: 150 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,156 @@

# Changelog

### [Version 1.53.8](https://github.com/lobehub/lobe-chat/compare/v1.53.7...v1.53.8)

<sup>Released on **2025-02-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix model fetch for spark and fix the support of model reset.

<br/>

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

#### What's fixed

- **misc**: Fix model fetch for spark and fix the support of model reset, closes [#6080](https://github.com/lobehub/lobe-chat/issues/6080) ([257fda1](https://github.com/lobehub/lobe-chat/commit/257fda1))

</details>

<div align="right">

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

</div>

### [Version 1.53.7](https://github.com/lobehub/lobe-chat/compare/v1.53.6...v1.53.7)

<sup>Released on **2025-02-13**</sup>

#### 💄 Styles

- **misc**: Update model list.

<br/>

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

#### Styles

- **misc**: Update model list, closes [#6056](https://github.com/lobehub/lobe-chat/issues/6056) ([be0d7f6](https://github.com/lobehub/lobe-chat/commit/be0d7f6))

</details>

<div align="right">

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

</div>

### [Version 1.53.6](https://github.com/lobehub/lobe-chat/compare/v1.53.5...v1.53.6)

<sup>Released on **2025-02-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix not enable models correctly.

<br/>

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

#### What's fixed

- **misc**: Fix not enable models correctly, closes [#6071](https://github.com/lobehub/lobe-chat/issues/6071) ([b78328e](https://github.com/lobehub/lobe-chat/commit/b78328e))

</details>

<div align="right">

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

</div>

### [Version 1.53.5](https://github.com/lobehub/lobe-chat/compare/v1.53.4...v1.53.5)

<sup>Released on **2025-02-13**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix latex in thinking tag render.

<br/>

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

#### What's fixed

- **misc**: Fix latex in thinking tag render, closes [#6063](https://github.com/lobehub/lobe-chat/issues/6063) ([7e89b2d](https://github.com/lobehub/lobe-chat/commit/7e89b2d))

</details>

<div align="right">

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

</div>

### [Version 1.53.4](https://github.com/lobehub/lobe-chat/compare/v1.53.3...v1.53.4)

<sup>Released on **2025-02-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix ai model abilities issue.

<br/>

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

#### What's fixed

- **misc**: Fix ai model abilities issue, closes [#6060](https://github.com/lobehub/lobe-chat/issues/6060) ([718f477](https://github.com/lobehub/lobe-chat/commit/718f477))

</details>

<div align="right">

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

</div>

### [Version 1.53.3](https://github.com/lobehub/lobe-chat/compare/v1.53.2...v1.53.3)

<sup>Released on **2025-02-12**</sup>

#### 🐛 Bug Fixes

- **misc**: Fix tencent cloud api issue.

<br/>

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

#### What's fixed

- **misc**: Fix tencent cloud api issue, closes [#6058](https://github.com/lobehub/lobe-chat/issues/6058) ([025d0bc](https://github.com/lobehub/lobe-chat/commit/025d0bc))

</details>

<div align="right">

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

</div>

### [Version 1.53.2](https://github.com/lobehub/lobe-chat/compare/v1.53.1...v1.53.2)

<sup>Released on **2025-02-12**</sup>
Expand Down
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,9 @@ ENV \
# 01.AI
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
# Zhipu
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
# Tencent Cloud
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST=""

USER nextjs

Expand Down
4 changes: 3 additions & 1 deletion Dockerfile.database
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,9 @@ ENV \
# 01.AI
ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
# Zhipu
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
# Tencent Cloud
TENCENT_CLOUD_API_KEY="" TENCENT_CLOUD_MODEL_LIST=""

USER nextjs

Expand Down
42 changes: 42 additions & 0 deletions changelog/v1.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,46 @@
[
{
"children": {
"fixes": ["Fix model fetch for spark and fix the support of model reset."]
},
"date": "2025-02-13",
"version": "1.53.8"
},
{
"children": {
"improvements": ["Update model list."]
},
"date": "2025-02-13",
"version": "1.53.7"
},
{
"children": {
"fixes": ["Fix not enable models correctly."]
},
"date": "2025-02-13",
"version": "1.53.6"
},
{
"children": {
"fixes": ["Fix latex in thinking tag render."]
},
"date": "2025-02-13",
"version": "1.53.5"
},
{
"children": {
"fixes": ["Fix ai model abilities issue."]
},
"date": "2025-02-12",
"version": "1.53.4"
},
{
"children": {
"fixes": ["Fix tencent cloud api issue."]
},
"date": "2025-02-12",
"version": "1.53.3"
},
{
"children": {
"fixes": ["Disable openrouter client fetch."]
Expand Down
16 changes: 9 additions & 7 deletions docs/self-hosting/advanced/model-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ LobeChat supports customizing the model list during deployment. This configurati
You can use `+` to add a model, `-` to hide a model, and use `model name=display name<extension configuration>` to customize the display name of a model, separated by English commas. The basic syntax is as follows:

```text
id=displayName<maxToken:vision:fc:file>,model2,model3
id=displayName<maxToken:vision:reasoning:fc:file>,model2,model3
```

For example: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo`
Expand All @@ -29,7 +29,7 @@ In the above example, it adds `qwen-7b-chat` and `glm-6b` to the model list, rem
Considering the diversity of model capabilities, we started to add extension configuration in version `0.147.8`, with the following rules:

```shell
id=displayName<maxToken:vision:fc:file>
id=displayName<maxToken:vision:reasoning:fc:file>
```

The first value in angle brackets is designated as the `maxToken` for this model. The second value and beyond are the model's extension capabilities, separated by colons `:`, and the order is not important.
Expand All @@ -39,12 +39,14 @@ Examples are as follows:
- `chatglm-6b=ChatGLM 6B<4096>`: ChatGLM 6B, maximum context of 4k, no advanced capabilities;
- `spark-v3.5=讯飞星火 v3.5<8192:fc>`: Xunfei Spark 3.5 model, maximum context of 8k, supports Function Call;
- `gemini-1.5-flash-latest=Gemini 1.5 Flash<16000:vision>`: Google Vision model, maximum context of 16k, supports image recognition;
- `o3-mini=OpenAI o3-mini<200000:reasoning:fc>`: OpenAI o3-mini model, maximum context of 200k, supports reasoning and Function Call;
- `gpt-4-all=ChatGPT Plus<128000:fc:vision:file>`, hacked version of ChatGPT Plus web, context of 128k, supports image recognition, Function Call, file upload.

Currently supported extension capabilities are:

| --- | Description |
| -------- | -------------------------------------------------------- |
| `fc` | Function Calling |
| `vision` | Image Recognition |
| `file` | File Upload (a bit hacky, not recommended for daily use) |
| --- | Description |
| ----------- | -------------------------------------------------------- |
| `fc` | Function Calling |
| `vision` | Image Recognition |
| `reasoning` | Support Reasoning |
| `file` | File Upload (a bit hacky, not recommended for daily use) |
16 changes: 9 additions & 7 deletions docs/self-hosting/advanced/model-list.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LobeChat 支持在部署时自定义模型列表,详情请参考 [模型提供
你可以使用 `+` 增加一个模型,使用 `-` 来隐藏一个模型,使用 `模型名=展示名<扩展配置>` 来自定义模型的展示名,用英文逗号隔开。通过 `<>` 来添加扩展配置。基本语法如下:

```text
id=displayName<maxToken:vision:fc:file>,model2,model3
id=displayName<maxToken:vision:reasoning:fc:file>,model2,model3
```

例如: `+qwen-7b-chat,+glm-6b,-gpt-3.5-turbo,gpt-4-0125-preview=gpt-4-turbo`
Expand All @@ -28,7 +28,7 @@ id=displayName<maxToken:vision:fc:file>,model2,model3
考虑到模型的能力多样性,我们在 `0.147.8` 版本开始增加扩展性配置,它的规则如下:

```shell
id=displayName<maxToken:vision:fc:file>
id=displayName<maxToken:vision:reasoning:fc:file>
```

尖括号第一个值约定为这个模型的 `maxToken` 。第二个及以后作为模型的扩展能力,能力与能力之间用冒号 `:` 作为分隔符,顺序不重要。
Expand All @@ -38,12 +38,14 @@ id=displayName<maxToken:vision:fc:file>
- `chatglm-6b=ChatGLM 6B<4096>`:ChatGLM 6B,最大上下文 4k,没有高阶能力;
- `spark-v3.5=讯飞星火 v3.5<8192:fc>`:讯飞星火 3.5 模型,最大上下文 8k,支持 Function Call;
- `gemini-1.5-flash-latest=Gemini 1.5 Flash<16000:vision>`:Google 视觉模型,最大上下文 16k,支持图像识别;
- `o3-mini=OpenAI o3-mini<200000:reasoning:fc>`:OpenAI o3-mini 模型,最大上下文 200k,支持推理及 Function Call;
- `gpt-4-all=ChatGPT Plus<128000:fc:vision:file>`,hack 的 ChatGPT Plus 网页版,上下 128k ,支持图像识别、Function Call、文件上传

目前支持的扩展能力有:

| --- | 描述 |
| -------- | ---------------------- |
| `fc` | 函数调用(function calling) |
| `vision` | 视觉识别 |
| `file` | 文件上传(比较 hack,不建议日常使用) |
| --- | 描述 |
| ----------- | ------------------------------------- |
| `fc` | 函数调用(function calling) |
| `vision` | 视觉识别 |
| `reasoning` | 支持推理 |
| `file` | 文件上传(比较 hack,不建议日常使用) |
10 changes: 10 additions & 0 deletions docs/self-hosting/environment-variables/auth.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ LobeChat provides a complete authentication service capability when deployed. Th

### General Settings

#### `NEXT_PUBLIC_ENABLE_NEXT_AUTH`

- Changes after v1.52.0.

- For users who deploy with Vercel using Next Auth, it is necessary to add the environment variable NEXT_PUBLIC_ENABLE_NEXT_AUTH=1 to ensure that Next Auth is enabled.
- For users who use Clerk in their self-built image, it is necessary to configure the environment variable NEXT_PUBLIC_ENABLE_NEXT_AUTH=0 to disable Next Auth.\n
- Other standard deployment scenarios (using Clerk on Vercel and next-auth in Docker) are not affected



#### `NEXT_AUTH_SECRET`

- Type: Required
Expand Down
8 changes: 7 additions & 1 deletion docs/self-hosting/environment-variables/auth.zh-CN.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相

### 通用设置

#### `NEXT_PUBLIC_ENABLE_NEXT_AUTH`
- v1.52.0 之后有变更
- 针对使用 Vercel 部署中使用 next-auth 的用户,需要额外添加 NEXT_PUBLIC_ENABLE_NEXT_AUTH=1 环境变量来确保开启 Next Auth
- 针对使用自构建镜像中使用 clerk 的用户,需要额外配置 NEXT_PUBLIC_ENABLE_NEXT_AUTH=0 环境变量来关闭 Next Auth
- 其他标准部署场景(Vercel 中使用 Clerk 与 Docker 中使用 next-auth )不受影响

#### `NEXT_AUTH_SECRET`

- 类型:必选
Expand Down Expand Up @@ -280,4 +286,4 @@ LobeChat 在部署时提供了完善的身份验证服务能力,以下是相
- 类型:必选
- 描述: Clerk 应用程序的 Secret key。您可以在[这里](https://dashboard.clerk.com)访问,并导航到 API Keys 以查看。
- 默认值:`-`
- 示例: `sk_test_513Ma0P7IAWM1XMv4waxZjRYRajWTaCfJLjpEO3SD2` (测试环境) / `sk_live_eMMlHjwJvZFUfczFljSKqZdwQtLvmczmsJSNmdrpeZ`(生产环境)
- 示例: `sk_test_513Ma0P7IAWM1XMv4waxZjRYRajWTaCfJLjpEO3SD2` (测试环境) / `sk_live_eMMlHjwJvZFUfczFljSKqZdwQtLvmczmsJSNmdrpeZ`(生产环境)
5 changes: 5 additions & 0 deletions locales/ar/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@
"latestTime": "آخر تحديث: {{time}}",
"noLatestTime": "لم يتم الحصول على القائمة بعد"
},
"resetAll": {
"conform": "هل أنت متأكد من إعادة تعيين جميع التعديلات على النموذج الحالي؟ بعد إعادة التعيين، ستعود قائمة النماذج الحالية إلى الحالة الافتراضية",
"success": "تمت إعادة التعيين بنجاح",
"title": "إعادة تعيين جميع التعديلات"
},
"search": "ابحث عن نموذج...",
"searchResult": "تم العثور على {{count}} نموذج",
"title": "قائمة النماذج",
Expand Down
5 changes: 5 additions & 0 deletions locales/bg-BG/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@
"latestTime": "Последно обновление: {{time}}",
"noLatestTime": "Все още не е получен списък"
},
"resetAll": {
"conform": "Потвърдете ли, че искате да нулирате всички промени в текущия модел? След нулирането списъкът с текущи модели ще се върне в първоначалното си състояние",
"success": "Успешно нулирано",
"title": "Нулиране на всички промени"
},
"search": "Търсене на модели...",
"searchResult": "Намерени са {{count}} модела",
"title": "Списък с модели",
Expand Down
5 changes: 5 additions & 0 deletions locales/de-DE/modelProvider.json
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,11 @@
"latestTime": "Letzte Aktualisierung: {{time}}",
"noLatestTime": "Liste wurde noch nicht abgerufen"
},
"resetAll": {
"conform": "Möchten Sie alle Änderungen am aktuellen Modell wirklich zurücksetzen? Nach dem Zurücksetzen wird die aktuelle Modellliste auf den Standardzustand zurückgesetzt.",
"success": "Zurücksetzen erfolgreich",
"title": "Alle Änderungen zurücksetzen"
},
"search": "Modelle suchen...",
"searchResult": "{{count}} Modelle gefunden",
"title": "Modellliste",
Expand Down
Loading

0 comments on commit a2cb19c

Please sign in to comment.