@lobehub/chat 0.86.1 → 0.86.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/PULL_REQUEST_TEMPLATE.md +1 -0
- package/.github/workflows/docker.yml +7 -7
- package/.github/workflows/{lighthouse-badger-advanced.yml → lighthouse.yml} +1 -3
- package/.github/workflows/{pre-welcome.yml → pr-welcome.yml} +5 -4
- package/.github/workflows/release.yml +1 -1
- package/.github/workflows/sync.yml +1 -7
- package/.github/workflows/test.yml +1 -1
- package/.github/workflows/wiki-sync.yml +1 -1
- package/CHANGELOG.md +50 -0
- package/Dockerfile +5 -3
- package/README.md +4 -1
- package/README.zh-CN.md +4 -1
- package/package.json +1 -1
- package/.github/workflows/auto-merge.yml +0 -25
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
name: Publish Docker
|
|
1
|
+
name: Publish Docker Image
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
workflow_dispatch:
|
|
@@ -11,16 +11,16 @@ jobs:
|
|
|
11
11
|
runs-on: ubuntu-latest
|
|
12
12
|
steps:
|
|
13
13
|
- name: Check out the repo
|
|
14
|
-
uses: actions/checkout@
|
|
14
|
+
uses: actions/checkout@v4
|
|
15
15
|
- name: Log in to Docker Hub
|
|
16
|
-
uses: docker/login-action@
|
|
16
|
+
uses: docker/login-action@v3
|
|
17
17
|
with:
|
|
18
18
|
username: ${{ secrets.DOCKER_REGISTRY_USER }}
|
|
19
19
|
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
|
20
20
|
|
|
21
21
|
- name: Extract metadata (tags, labels) for Docker
|
|
22
22
|
id: meta
|
|
23
|
-
uses: docker/metadata-action@
|
|
23
|
+
uses: docker/metadata-action@v5
|
|
24
24
|
with:
|
|
25
25
|
images: lobehub/lobe-chat
|
|
26
26
|
tags: |
|
|
@@ -28,13 +28,13 @@ jobs:
|
|
|
28
28
|
type=ref,event=tag
|
|
29
29
|
|
|
30
30
|
- name: Set up QEMU
|
|
31
|
-
uses: docker/setup-qemu-action@
|
|
31
|
+
uses: docker/setup-qemu-action@v3
|
|
32
32
|
|
|
33
33
|
- name: Set up Docker Buildx
|
|
34
|
-
uses: docker/setup-buildx-action@
|
|
34
|
+
uses: docker/setup-buildx-action@v3
|
|
35
35
|
|
|
36
36
|
- name: Build and push Docker image
|
|
37
|
-
uses: docker/build-push-action@
|
|
37
|
+
uses: docker/build-push-action@v5
|
|
38
38
|
with:
|
|
39
39
|
context: .
|
|
40
40
|
platforms: linux/amd64,linux/arm64
|
|
@@ -40,9 +40,7 @@ jobs:
|
|
|
40
40
|
URLS: 'https://chat-preview.lobehub.com/settings'
|
|
41
41
|
BADGES_ARGS: '-b pagespeed -o lighthouse/settings -r'
|
|
42
42
|
COMMIT_MESSAGE: '🤖 chore: Lighthouse Results | Settings'
|
|
43
|
-
|
|
44
|
-
# THAT'S IT; YOU DON'T HAVE TO DEFINE ANYTHING IN THE FOLLOWING
|
|
45
|
-
####################################################################
|
|
43
|
+
|
|
46
44
|
steps:
|
|
47
45
|
- name: Preparatory Tasks
|
|
48
46
|
run: |
|
|
@@ -7,17 +7,18 @@ on:
|
|
|
7
7
|
|
|
8
8
|
jobs:
|
|
9
9
|
if_merged:
|
|
10
|
+
name: Check merged and add comment
|
|
10
11
|
if: github.event.pull_request.merged == true
|
|
11
12
|
runs-on: ubuntu-latest
|
|
12
13
|
steps:
|
|
13
14
|
- uses: actions-cool/pr-welcome@main
|
|
14
15
|
with:
|
|
15
|
-
token: ${{ secrets.
|
|
16
|
+
token: ${{ secrets.GH_TOKEN }}
|
|
16
17
|
comment: |
|
|
17
|
-
|
|
18
|
+
❤️ Great PR @${{ github.event.pull_request.user.login }} ❤️
|
|
18
19
|
|
|
19
|
-
The growth of project is inseparable from user feedback and contribution, thanks for your contribution
|
|
20
|
+
The growth of project is inseparable from user feedback and contribution, thanks for your contribution!
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
项目的成长离不开用户反馈和贡献,感谢您的贡献!
|
|
22
23
|
emoji: 'hooray'
|
|
23
24
|
pr-emoji: '+1, heart'
|
|
@@ -17,11 +17,8 @@ jobs:
|
|
|
17
17
|
if: ${{ github.event.repository.fork }}
|
|
18
18
|
|
|
19
19
|
steps:
|
|
20
|
-
|
|
21
|
-
- name: Checkout target repo
|
|
22
|
-
uses: actions/checkout@v4
|
|
20
|
+
- uses: actions/checkout@v4
|
|
23
21
|
|
|
24
|
-
# Step 2: run the sync action
|
|
25
22
|
- name: Sync upstream changes
|
|
26
23
|
id: sync
|
|
27
24
|
uses: aormsby/Fork-Sync-With-Upstream-action@v3.4
|
|
@@ -30,11 +27,8 @@ jobs:
|
|
|
30
27
|
upstream_sync_branch: main
|
|
31
28
|
target_sync_branch: main
|
|
32
29
|
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set
|
|
33
|
-
|
|
34
|
-
# Set test_mode true to run tests instead of the true action!!
|
|
35
30
|
test_mode: false
|
|
36
31
|
|
|
37
|
-
# Step 3: run check
|
|
38
32
|
- name: Sync check
|
|
39
33
|
if: failure()
|
|
40
34
|
uses: actions-cool/issues-helper@v3
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.86.3](https://github.com/lobehub/lobe-chat/compare/v0.86.2...v0.86.3)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-10-11**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Fix docker image.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Fix docker image ([14ff80e](https://github.com/lobehub/lobe-chat/commit/14ff80e))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
### [Version 0.86.2](https://github.com/lobehub/lobe-chat/compare/v0.86.1...v0.86.2)
|
|
31
|
+
|
|
32
|
+
<sup>Released on **2023-10-11**</sup>
|
|
33
|
+
|
|
34
|
+
#### 🐛 Bug Fixes
|
|
35
|
+
|
|
36
|
+
- **docker**: Improve config to reduce unnecessary env and change default PORT.
|
|
37
|
+
|
|
38
|
+
<br/>
|
|
39
|
+
|
|
40
|
+
<details>
|
|
41
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
42
|
+
|
|
43
|
+
#### What's fixed
|
|
44
|
+
|
|
45
|
+
- **docker**: Improve config to reduce unnecessary env and change default PORT, closes [#298](https://github.com/lobehub/lobe-chat/issues/298) ([6061318](https://github.com/lobehub/lobe-chat/commit/6061318))
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 0.86.1](https://github.com/lobehub/lobe-chat/compare/v0.86.0...v0.86.1)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2023-10-11**</sup>
|
package/Dockerfile
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
FROM node:20-slim AS base
|
|
2
|
+
|
|
3
|
+
## Install dependencies only when needed
|
|
4
|
+
FROM base AS builder
|
|
2
5
|
ENV PNPM_HOME="/pnpm"
|
|
3
6
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
4
7
|
RUN corepack enable
|
|
5
8
|
|
|
6
|
-
## Install dependencies only when needed
|
|
7
|
-
FROM base AS builder
|
|
8
9
|
WORKDIR /app
|
|
9
10
|
|
|
10
11
|
COPY package.json ./
|
|
@@ -39,10 +40,11 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
|
|
39
40
|
|
|
40
41
|
USER nextjs
|
|
41
42
|
|
|
42
|
-
EXPOSE
|
|
43
|
+
EXPOSE 3210
|
|
43
44
|
|
|
44
45
|
# set hostname to localhost
|
|
45
46
|
ENV HOSTNAME "0.0.0.0"
|
|
47
|
+
ENV PORT=3210
|
|
46
48
|
|
|
47
49
|
ENV ACCESS_CODE "lobe66"
|
|
48
50
|
ENV OPENAI_API_KEY ""
|
package/README.md
CHANGED
|
@@ -15,6 +15,7 @@ LobeChat is a open-source, extensible ([Function Calling][fc-link]), high-perfor
|
|
|
15
15
|
<!-- SHIELD GROUP -->
|
|
16
16
|
|
|
17
17
|
[![][github-release-shield]][github-release-link]
|
|
18
|
+
[![][docker-release-shield]][docker-release-link]
|
|
18
19
|
[![][vercel-shield]][vercel-link]
|
|
19
20
|
[![][discord-shield]][discord-link]
|
|
20
21
|
[![][github-releasedate-shield]][github-releasedate-link]
|
|
@@ -192,7 +193,7 @@ LobeChat provides a [self-hosted version][deploy-link] with Vercel. This allows
|
|
|
192
193
|
| Environment Variable | Required | Description | Example |
|
|
193
194
|
| -------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
|
|
194
195
|
| `OPENAI_API_KEY` | Yes | This is the API key you apply on the OpenAI account page | `sk-xxxxxx...xxxxxx` |
|
|
195
|
-
| `OPENAI_PROXY_URL` | No | If you manually configure the OpenAI interface proxy, you can use this configuration item to override the default OpenAI API request base URL | `https://api.chatanywhere.cn`<br/>The default value is<br/>`https://api.openai.com` |
|
|
196
|
+
| `OPENAI_PROXY_URL` | No | If you manually configure the OpenAI interface proxy, you can use this configuration item to override the default OpenAI API request base URL | `https://api.chatanywhere.cn/v1`<br/>The default value is<br/>`https://api.openai.com/v1` |
|
|
196
197
|
| `ACCESS_CODE` | No | Add a password to access this service, the password should be a 6-digit number or letter | `awCT74` or `e3@09!` |
|
|
197
198
|
|
|
198
199
|
### Keep Updated
|
|
@@ -333,6 +334,8 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
333
334
|
[discord-link]: https://discord.gg/AYFPHvv2jT
|
|
334
335
|
[discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
|
|
335
336
|
[discord-shield-badge]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
|
337
|
+
[docker-release-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
338
|
+
[docker-release-shield]: https://img.shields.io/docker/v/lobehub/lobe-chat?color=369eff&label=docker&labelColor=black&logo=docker&logoColor=white&style=flat-square
|
|
336
339
|
[fc-link]: https://sspai.com/post/81986
|
|
337
340
|
[fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
|
|
338
341
|
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
|
package/README.zh-CN.md
CHANGED
|
@@ -15,6 +15,7 @@ LobeChat 是一个开源的、可扩展的([Function Calling][fc-link])高
|
|
|
15
15
|
<!-- SHIELD GROUP -->
|
|
16
16
|
|
|
17
17
|
[![][github-release-shield]][github-release-link]
|
|
18
|
+
[![][docker-release-shield]][docker-release-link]
|
|
18
19
|
[![][vercel-shield]][vercel-link]
|
|
19
20
|
[![][discord-shield]][discord-link]
|
|
20
21
|
[![][github-releasedate-shield]][github-releasedate-link]
|
|
@@ -194,7 +195,7 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-link]。这使你可以
|
|
|
194
195
|
| 环境变量 | 类型 | 描述 | 示例 |
|
|
195
196
|
| ------------------ | ---- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
|
|
196
197
|
| `OPENAI_API_KEY` | 必选 | 这是你在 OpenAI 账户页面申请的 API 密钥 | `sk-xxxxxx...xxxxxx` |
|
|
197
|
-
| `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://api.chatanywhere.cn`<br/>默认值:<br/>`https://api.openai.com` |
|
|
198
|
+
| `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://api.chatanywhere.cn/v1`<br/>默认值:<br/>`https://api.openai.com/v1` |
|
|
198
199
|
| `ACCESS_CODE` | 可选 | 添加访问此服务的密码,密码应为 6 位数字或字母 | `awCT74` 或 `e3@09!` |
|
|
199
200
|
|
|
200
201
|
### 保持更新
|
|
@@ -335,6 +336,8 @@ This project is [MIT](./LICENSE) licensed.
|
|
|
335
336
|
[discord-link]: https://discord.gg/AYFPHvv2jT
|
|
336
337
|
[discord-shield]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=flat-square
|
|
337
338
|
[discord-shield-badge]: https://img.shields.io/discord/1127171173982154893?color=5865F2&label=discord&labelColor=black&logo=discord&logoColor=white&style=for-the-badge
|
|
339
|
+
[docker-release-link]: https://hub.docker.com/r/lobehub/lobe-chat
|
|
340
|
+
[docker-release-shield]: https://img.shields.io/docker/v/lobehub/lobe-chat?color=369eff&label=docker&labelColor=black&logo=docker&logoColor=white&style=flat-square
|
|
338
341
|
[fc-link]: https://sspai.com/post/81986
|
|
339
342
|
[fossa-license-link]: https://app.fossa.com/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat
|
|
340
343
|
[fossa-license-shield]: https://app.fossa.com/api/projects/git%2Bgithub.com%2Flobehub%2Flobe-chat.svg?type=large
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.86.
|
|
3
|
+
"version": "0.86.3",
|
|
4
4
|
"description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chatbot",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: Dependabot Auto Merge
|
|
2
|
-
on:
|
|
3
|
-
pull_request_target:
|
|
4
|
-
types: [labeled, edited]
|
|
5
|
-
|
|
6
|
-
jobs:
|
|
7
|
-
merge:
|
|
8
|
-
if: contains(github.event.pull_request.labels.*.name, 'dependencies')
|
|
9
|
-
name: Dependabot Auto Merge
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v4
|
|
13
|
-
|
|
14
|
-
- name: Install bun
|
|
15
|
-
uses: oven-sh/setup-bun@v1
|
|
16
|
-
|
|
17
|
-
- name: Install deps
|
|
18
|
-
run: bun i
|
|
19
|
-
|
|
20
|
-
- name: Merge
|
|
21
|
-
uses: ahmadnassri/action-dependabot-auto-merge@v2
|
|
22
|
-
with:
|
|
23
|
-
command: merge
|
|
24
|
-
target: minor
|
|
25
|
-
github-token: ${{ secrets.GH_TOKEN }}
|