@lobehub/chat 1.6.8 โ 1.6.10
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/CHANGELOG.md +50 -0
- package/Dockerfile +110 -107
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/package.json +3 -1
- package/src/database/server/migrations/meta/0000_snapshot.json +146 -120
- package/src/database/server/migrations/meta/0001_snapshot.json +166 -130
- package/src/database/server/migrations/meta/0002_snapshot.json +170 -128
- package/src/database/server/migrations/meta/0003_snapshot.json +176 -134
- package/src/features/Conversation/Messages/Tool/Inspector/PluginResultJSON.tsx +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 1.6.10](https://github.com/lobehub/lobe-chat/compare/v1.6.9...v1.6.10)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2024-07-23**</sup>
|
|
8
|
+
|
|
9
|
+
#### โป Code Refactoring
|
|
10
|
+
|
|
11
|
+
- **misc**: Upgrade snapshot version.
|
|
12
|
+
|
|
13
|
+
#### ๐ Styles
|
|
14
|
+
|
|
15
|
+
- **misc**: Fix the scrolling of the return result area of function calling.
|
|
16
|
+
|
|
17
|
+
<br/>
|
|
18
|
+
|
|
19
|
+
<details>
|
|
20
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
21
|
+
|
|
22
|
+
#### Code refactoring
|
|
23
|
+
|
|
24
|
+
- **misc**: Upgrade snapshot version, closes [#3296](https://github.com/lobehub/lobe-chat/issues/3296) ([2c14fef](https://github.com/lobehub/lobe-chat/commit/2c14fef))
|
|
25
|
+
|
|
26
|
+
#### Styles
|
|
27
|
+
|
|
28
|
+
- **misc**: Fix the scrolling of the return result area of function calling, closes [#3295](https://github.com/lobehub/lobe-chat/issues/3295) ([9c8f469](https://github.com/lobehub/lobe-chat/commit/9c8f469))
|
|
29
|
+
|
|
30
|
+
</details>
|
|
31
|
+
|
|
32
|
+
<div align="right">
|
|
33
|
+
|
|
34
|
+
[](#readme-top)
|
|
35
|
+
|
|
36
|
+
</div>
|
|
37
|
+
|
|
38
|
+
### [Version 1.6.9](https://github.com/lobehub/lobe-chat/compare/v1.6.8...v1.6.9)
|
|
39
|
+
|
|
40
|
+
<sup>Released on **2024-07-23**</sup>
|
|
41
|
+
|
|
42
|
+
<br/>
|
|
43
|
+
|
|
44
|
+
<details>
|
|
45
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
46
|
+
|
|
47
|
+
</details>
|
|
48
|
+
|
|
49
|
+
<div align="right">
|
|
50
|
+
|
|
51
|
+
[](#readme-top)
|
|
52
|
+
|
|
53
|
+
</div>
|
|
54
|
+
|
|
5
55
|
### [Version 1.6.8](https://github.com/lobehub/lobe-chat/compare/v1.6.7...v1.6.8)
|
|
6
56
|
|
|
7
57
|
<sup>Released on **2024-07-23**</sup>
|
package/Dockerfile
CHANGED
|
@@ -1,138 +1,141 @@
|
|
|
1
|
-
|
|
1
|
+
## Base image for all the stages
|
|
2
|
+
FROM node:20-alpine AS base
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
RUN corepack enable
|
|
4
|
+
RUN \
|
|
5
|
+
# Add user nextjs to run the app
|
|
6
|
+
addgroup --system --gid 1001 nodejs \
|
|
7
|
+
&& adduser --system --uid 1001 nextjs
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
RUN pnpm add sharp
|
|
12
|
-
|
|
13
|
-
## Install dependencies only when needed
|
|
9
|
+
## Builder image, install all the dependencies and build the app
|
|
14
10
|
FROM base AS builder
|
|
15
|
-
ENV PNPM_HOME="/pnpm"
|
|
16
|
-
ENV PATH="$PNPM_HOME:$PATH"
|
|
17
|
-
RUN corepack enable
|
|
18
|
-
|
|
19
|
-
WORKDIR /app
|
|
20
11
|
|
|
21
|
-
|
|
22
|
-
COPY .npmrc ./
|
|
23
|
-
|
|
24
|
-
# If you want to build docker in China
|
|
25
|
-
# RUN npm config set registry https://registry.npmmirror.com/
|
|
26
|
-
RUN pnpm i
|
|
27
|
-
|
|
28
|
-
COPY . .
|
|
12
|
+
ARG USE_NPM_CN_MIRROR
|
|
29
13
|
|
|
30
|
-
ENV NEXT_PUBLIC_BASE_PATH
|
|
14
|
+
ENV NEXT_PUBLIC_BASE_PATH=""
|
|
31
15
|
|
|
32
16
|
# Sentry
|
|
33
|
-
ENV NEXT_PUBLIC_SENTRY_DSN
|
|
34
|
-
|
|
35
|
-
|
|
17
|
+
ENV NEXT_PUBLIC_SENTRY_DSN="" \
|
|
18
|
+
SENTRY_ORG="" \
|
|
19
|
+
SENTRY_PROJECT=""
|
|
36
20
|
|
|
37
21
|
# Posthog
|
|
38
|
-
ENV NEXT_PUBLIC_ANALYTICS_POSTHOG
|
|
39
|
-
|
|
40
|
-
|
|
22
|
+
ENV NEXT_PUBLIC_ANALYTICS_POSTHOG="" \
|
|
23
|
+
NEXT_PUBLIC_POSTHOG_HOST="" \
|
|
24
|
+
NEXT_PUBLIC_POSTHOG_KEY=""
|
|
41
25
|
|
|
42
26
|
# Umami
|
|
43
|
-
ENV NEXT_PUBLIC_ANALYTICS_UMAMI
|
|
44
|
-
|
|
45
|
-
|
|
27
|
+
ENV NEXT_PUBLIC_ANALYTICS_UMAMI="" \
|
|
28
|
+
NEXT_PUBLIC_UMAMI_SCRIPT_URL="" \
|
|
29
|
+
NEXT_PUBLIC_UMAMI_WEBSITE_ID=""
|
|
46
30
|
|
|
47
31
|
# Node
|
|
48
|
-
ENV NODE_OPTIONS
|
|
32
|
+
ENV NODE_OPTIONS="--max-old-space-size=8192"
|
|
49
33
|
|
|
50
|
-
# run build standalone for docker version
|
|
51
|
-
RUN npm run build:docker
|
|
52
|
-
|
|
53
|
-
## Production image, copy all the files and run next
|
|
54
|
-
FROM base AS runner
|
|
55
34
|
WORKDIR /app
|
|
56
35
|
|
|
57
|
-
|
|
36
|
+
COPY package.json ./
|
|
37
|
+
COPY .npmrc ./
|
|
38
|
+
|
|
39
|
+
RUN \
|
|
40
|
+
# If you want to build docker in China, build with --build-arg USE_NPM_CN_MIRROR=true
|
|
41
|
+
if [ "${USE_NPM_CN_MIRROR:-false}" = "true" ]; then \
|
|
42
|
+
export SENTRYCLI_CDNURL="https://npmmirror.com/mirrors/sentry-cli"; \
|
|
43
|
+
npm config set registry "https://registry.npmmirror.com/"; \
|
|
44
|
+
fi \
|
|
45
|
+
# Set the registry for corepack
|
|
46
|
+
&& export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
|
|
47
|
+
# Enable corepack
|
|
48
|
+
&& corepack enable \
|
|
49
|
+
# Use pnpm for corepack
|
|
50
|
+
&& corepack use pnpm \
|
|
51
|
+
# Install the dependencies
|
|
52
|
+
&& pnpm i \
|
|
53
|
+
# Add sharp dependencies
|
|
54
|
+
&& mkdir -p /sharp \
|
|
55
|
+
&& pnpm add sharp --prefix /sharp
|
|
58
56
|
|
|
59
|
-
|
|
60
|
-
RUN adduser --system --uid 1001 nextjs
|
|
57
|
+
COPY . .
|
|
61
58
|
|
|
62
|
-
|
|
59
|
+
# run build standalone for docker version
|
|
60
|
+
RUN npm run build:docker
|
|
63
61
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
62
|
+
## Application image, copy all the files for production
|
|
63
|
+
FROM scratch AS app
|
|
64
|
+
|
|
65
|
+
COPY --from=builder /app/public /app/public
|
|
67
66
|
|
|
68
67
|
# Automatically leverage output traces to reduce image size
|
|
69
68
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
|
70
|
-
COPY --from=builder
|
|
71
|
-
COPY --from=builder
|
|
72
|
-
COPY --from=
|
|
69
|
+
COPY --from=builder /app/.next/standalone /app/
|
|
70
|
+
COPY --from=builder /app/.next/static /app/.next/static
|
|
71
|
+
COPY --from=builder /sharp/node_modules/.pnpm /app/node_modules/.pnpm
|
|
73
72
|
|
|
74
|
-
|
|
73
|
+
## Production image, copy all the files and run next
|
|
74
|
+
FROM base
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
# Copy all the files from app, set the correct permission for prerender cache
|
|
77
|
+
COPY --from=app --chown=nextjs:nodejs /app /app
|
|
78
|
+
|
|
79
|
+
ENV NODE_ENV="production"
|
|
77
80
|
|
|
78
81
|
# set hostname to localhost
|
|
79
|
-
ENV HOSTNAME
|
|
80
|
-
|
|
82
|
+
ENV HOSTNAME="0.0.0.0" \
|
|
83
|
+
PORT="3210"
|
|
81
84
|
|
|
82
85
|
# General Variables
|
|
83
|
-
ENV ACCESS_CODE
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
#
|
|
88
|
-
ENV
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
#
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
#
|
|
104
|
-
|
|
86
|
+
ENV ACCESS_CODE="" \
|
|
87
|
+
API_KEY_SELECT_MODE="" \
|
|
88
|
+
FEATURE_FLAGS=""
|
|
89
|
+
|
|
90
|
+
# Model Variables
|
|
91
|
+
ENV \
|
|
92
|
+
# Ai360
|
|
93
|
+
AI360_API_KEY="" \
|
|
94
|
+
# Anthropic
|
|
95
|
+
ANTHROPIC_API_KEY="" ANTHROPIC_PROXY_URL="" \
|
|
96
|
+
# Amazon Bedrock
|
|
97
|
+
AWS_ACCESS_KEY_ID="" AWS_SECRET_ACCESS_KEY="" AWS_REGION="" \
|
|
98
|
+
# Azure OpenAI
|
|
99
|
+
AZURE_API_KEY="" AZURE_API_VERSION="" AZURE_ENDPOINT="" AZURE_MODEL_LIST="" \
|
|
100
|
+
# Baichuan
|
|
101
|
+
BAICHUAN_API_KEY="" \
|
|
102
|
+
# DeepSeek
|
|
103
|
+
DEEPSEEK_API_KEY="" \
|
|
104
|
+
# Google
|
|
105
|
+
GOOGLE_API_KEY="" GOOGLE_PROXY_URL="" \
|
|
106
|
+
# Groq
|
|
107
|
+
GROQ_API_KEY="" GROQ_PROXY_URL="" \
|
|
108
|
+
# Minimax
|
|
109
|
+
MINIMAX_API_KEY="" \
|
|
110
|
+
# Mistral
|
|
111
|
+
MISTRAL_API_KEY="" \
|
|
112
|
+
# Moonshot
|
|
113
|
+
MOONSHOT_API_KEY="" MOONSHOT_PROXY_URL="" \
|
|
114
|
+
# Novita
|
|
115
|
+
NOVITA_API_KEY="" \
|
|
116
|
+
# Ollama
|
|
117
|
+
OLLAMA_MODEL_LIST="" OLLAMA_PROXY_URL="" \
|
|
118
|
+
# OpenAI
|
|
119
|
+
OPENAI_API_KEY="" OPENAI_MODEL_LIST="" OPENAI_PROXY_URL="" \
|
|
120
|
+
# OpenRouter
|
|
121
|
+
OPENROUTER_API_KEY="" OPENROUTER_MODEL_LIST="" \
|
|
122
|
+
# Perplexity
|
|
123
|
+
PERPLEXITY_API_KEY="" PERPLEXITY_PROXY_URL="" \
|
|
124
|
+
# Qwen
|
|
125
|
+
QWEN_API_KEY="" \
|
|
126
|
+
# Stepfun
|
|
127
|
+
STEPFUN_API_KEY="" \
|
|
128
|
+
# Taichu
|
|
129
|
+
TAICHU_API_KEY="" \
|
|
130
|
+
# TogetherAI
|
|
131
|
+
TOGETHERAI_API_KEY="" TOGETHERAI_MODEL_LIST="" \
|
|
132
|
+
# 01.AI
|
|
133
|
+
ZEROONE_API_KEY="" \
|
|
134
|
+
# Zhipu
|
|
135
|
+
ZHIPU_API_KEY=""
|
|
105
136
|
|
|
106
|
-
|
|
107
|
-
ENV OLLAMA_PROXY_URL ""
|
|
108
|
-
ENV OLLAMA_MODEL_LIST ""
|
|
109
|
-
|
|
110
|
-
# Perplexity
|
|
111
|
-
ENV PERPLEXITY_API_KEY ""
|
|
112
|
-
|
|
113
|
-
# Anthropic
|
|
114
|
-
ENV ANTHROPIC_API_KEY ""
|
|
115
|
-
|
|
116
|
-
# Mistral
|
|
117
|
-
ENV MISTRAL_API_KEY ""
|
|
118
|
-
|
|
119
|
-
# OpenRouter
|
|
120
|
-
ENV OPENROUTER_API_KEY ""
|
|
121
|
-
ENV OPENROUTER_MODEL_LIST ""
|
|
122
|
-
|
|
123
|
-
# 01.AI
|
|
124
|
-
ENV ZEROONE_API_KEY ""
|
|
125
|
-
|
|
126
|
-
# TogetherAI
|
|
127
|
-
ENV TOGETHERAI_API_KEY ""
|
|
128
|
-
|
|
129
|
-
# Minimax
|
|
130
|
-
ENV MINIMAX_API_KEY ""
|
|
131
|
-
|
|
132
|
-
# DeepSeek
|
|
133
|
-
ENV DEEPSEEK_API_KEY ""
|
|
137
|
+
USER nextjs
|
|
134
138
|
|
|
135
|
-
|
|
136
|
-
ENV QWEN_API_KEY ""
|
|
139
|
+
EXPOSE 3210/tcp
|
|
137
140
|
|
|
138
|
-
CMD ["node", "server.js"]
|
|
141
|
+
CMD ["node", "/app/server.js"]
|
package/README.md
CHANGED
|
@@ -273,7 +273,7 @@ Our marketplace is not just a showcase platform but also a collaborative space.
|
|
|
273
273
|
| [Convert SQL Table Structure to Dao and Mapper](https://chat-preview.lobehub.com/market?agent=my-batis-generator)<br/><sup>By **[MeYoung](https://github.com/MeYoung)** on **2024-07-17**</sup> | Generate entity class and MyBatis Mapper based on a table structure<br/>`sql` `sql` `mybatis` |
|
|
274
274
|
| [Auto Extraction Data](https://chat-preview.lobehub.com/market?agent=the-20-autoextract)<br/><sup>By **[vkhoilq](https://github.com/vkhoilq)** on **2024-07-17**</sup> | The20 Auto Extraction Data<br/>`the-20` `autoextract` |
|
|
275
275
|
|
|
276
|
-
> ๐ Total agents: [<kbd>**
|
|
276
|
+
> ๐ Total agents: [<kbd>**304**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
277
277
|
|
|
278
278
|
<!-- AGENT LIST -->
|
|
279
279
|
|
package/README.zh-CN.md
CHANGED
|
@@ -261,7 +261,7 @@ LobeChat ็ๆไปถ็ๆ็ณป็ปๆฏๅ
ถๆ ธๅฟๅ่ฝ็้่ฆๆฉๅฑ๏ผๅฎๆๅคงๅฐ
|
|
|
261
261
|
| [SQL ่กจ็ปๆ่ฝฌ Dao ๅ Mapper](https://chat-preview.lobehub.com/market?agent=my-batis-generator)<br/><sup>By **[MeYoung](https://github.com/MeYoung)** on **2024-07-17**</sup> | ็ปไธไธไธช่กจ็ปๆ๏ผ็ๆ่กจ็ๅฎไฝๅ MyBatis ็ Mapper<br/>`sql` `sql` `mybatis` |
|
|
262
262
|
| [่ชๅจๆๅๆฐๆฎ](https://chat-preview.lobehub.com/market?agent=the-20-autoextract)<br/><sup>By **[vkhoilq](https://github.com/vkhoilq)** on **2024-07-17**</sup> | The20 ่ชๅจๆๅๆฐๆฎ<br/>`the-20` `autoextract` |
|
|
263
263
|
|
|
264
|
-
> ๐ Total agents: [<kbd>**
|
|
264
|
+
> ๐ Total agents: [<kbd>**304**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
|
|
265
265
|
|
|
266
266
|
<!-- AGENT LIST -->
|
|
267
267
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.10",
|
|
4
4
|
"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.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -53,6 +53,8 @@
|
|
|
53
53
|
"prettier": "prettier -c --write \"**/**\"",
|
|
54
54
|
"pull": "git pull",
|
|
55
55
|
"release": "semantic-release",
|
|
56
|
+
"self-hosting:docker": "docker build -t lobe-chat:local .",
|
|
57
|
+
"self-hosting:docker-cn": "docker build -t lobe-chat:local --build-arg USE_NPM_CN_MIRROR=true .",
|
|
56
58
|
"start": "next start",
|
|
57
59
|
"stylelint": "stylelint \"src/**/*.{js,jsx,ts,tsx}\" --fix",
|
|
58
60
|
"test": "npm run test-app && npm run test-server",
|