@lobehub/chat 1.19.2 → 1.19.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.

Potentially problematic release.


This version of @lobehub/chat might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -2,6 +2,23 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.19.3](https://github.com/lobehub/lobe-chat/compare/v1.19.2...v1.19.3)
6
+
7
+ <sup>Released on **2024-09-19**</sup>
8
+
9
+ <br/>
10
+
11
+ <details>
12
+ <summary><kbd>Improvements and Fixes</kbd></summary>
13
+
14
+ </details>
15
+
16
+ <div align="right">
17
+
18
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
19
+
20
+ </div>
21
+
5
22
  ### [Version 1.19.2](https://github.com/lobehub/lobe-chat/compare/v1.19.1...v1.19.2)
6
23
 
7
24
  <sup>Released on **2024-09-19**</sup>
package/Dockerfile CHANGED
@@ -1,23 +1,30 @@
1
1
  ## Base image for all the stages
2
- FROM node:20-alpine AS base
2
+ FROM node:20-slim AS base
3
3
 
4
4
  ARG USE_CN_MIRROR
5
5
 
6
+ ENV DEBIAN_FRONTEND="noninteractive"
7
+
6
8
  RUN \
7
9
  # If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
8
10
  if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
9
- sed -i "s/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g" "/etc/apk/repositories"; \
11
+ sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \
10
12
  fi \
11
13
  # Add required package & update base package
12
- && apk update \
13
- && apk add --no-cache bind-tools proxychains-ng sudo \
14
- && apk upgrade --no-cache \
15
- # Add user nextjs to run the app
14
+ && apt update \
15
+ && apt install busybox proxychains-ng -qy \
16
+ && apt full-upgrade -qy \
17
+ && apt autoremove -qy --purge \
18
+ && apt clean -qy \
19
+ # Configure BusyBox
20
+ && busybox --install -s \
21
+ # Add nextjs:nodejs to run the app
16
22
  && addgroup --system --gid 1001 nodejs \
17
- && adduser --system --uid 1001 nextjs \
18
- && chown -R nextjs:nodejs "/etc/proxychains" \
19
- && echo "nextjs ALL=(ALL) NOPASSWD: /bin/chmod * /etc/resolv.conf" >> /etc/sudoers \
20
- && rm -rf /tmp/* /var/cache/apk/*
23
+ && adduser --system --home "/app" --gid 1001 -uid 1001 nextjs \
24
+ # Set permission for nextjs:nodejs
25
+ && chown -R nextjs:nodejs "/etc/proxychains4.conf" \
26
+ # Cleanup temp files
27
+ && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
21
28
 
22
29
  ## Builder image, install all the dependencies and build the app
23
30
  FROM base AS builder
@@ -89,7 +96,8 @@ FROM base
89
96
  # Copy all the files from app, set the correct permission for prerender cache
90
97
  COPY --from=app --chown=nextjs:nodejs /app /app
91
98
 
92
- ENV NODE_ENV="production"
99
+ ENV NODE_ENV="production" \
100
+ NODE_TLS_REJECT_UNAUTHORIZED=""
93
101
 
94
102
  # set hostname to localhost
95
103
  ENV HOSTNAME="0.0.0.0" \
@@ -121,6 +129,8 @@ ENV \
121
129
  DEEPSEEK_API_KEY="" \
122
130
  # Fireworks AI
123
131
  FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \
132
+ # GitHub
133
+ GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \
124
134
  # Google
125
135
  GOOGLE_API_KEY="" GOOGLE_PROXY_URL="" \
126
136
  # Groq
@@ -193,15 +203,7 @@ CMD \
193
203
  'tcp_read_time_out 15000' \
194
204
  '[ProxyList]' \
195
205
  "$protocol $host $port" \
196
- > "/etc/proxychains/proxychains.conf"; \
197
- fi; \
198
- # Fix DNS resolving issue in Docker Compose, ref https://github.com/lobehub/lobe-chat/pull/3837
199
- if [ -f "/etc/resolv.conf" ]; then \
200
- sudo chmod 666 "/etc/resolv.conf"; \
201
- resolv_conf=$(grep '^nameserver' "/etc/resolv.conf" | awk '{print "nameserver " $2}'); \
202
- printf "%s\n" \
203
- "$resolv_conf" \
204
- > "/etc/resolv.conf"; \
206
+ > "/etc/proxychains4.conf"; \
205
207
  fi; \
206
208
  # Run the server
207
209
  ${PROXYCHAINS} node "/app/server.js";
@@ -1,23 +1,30 @@
1
1
  ## Base image for all the stages
2
- FROM node:20-alpine AS base
2
+ FROM node:20-slim AS base
3
3
 
4
4
  ARG USE_CN_MIRROR
5
5
 
6
+ ENV DEBIAN_FRONTEND="noninteractive"
7
+
6
8
  RUN \
7
9
  # If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
8
10
  if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
9
- sed -i "s/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g" "/etc/apk/repositories"; \
11
+ sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \
10
12
  fi \
11
13
  # Add required package & update base package
12
- && apk update \
13
- && apk add --no-cache bind-tools proxychains-ng sudo \
14
- && apk upgrade --no-cache \
15
- # Add user nextjs to run the app
14
+ && apt update \
15
+ && apt install busybox proxychains-ng -qy \
16
+ && apt full-upgrade -qy \
17
+ && apt autoremove -qy --purge \
18
+ && apt clean -qy \
19
+ # Configure BusyBox
20
+ && busybox --install -s \
21
+ # Add nextjs:nodejs to run the app
16
22
  && addgroup --system --gid 1001 nodejs \
17
- && adduser --system --uid 1001 nextjs \
18
- && chown -R nextjs:nodejs "/etc/proxychains" \
19
- && echo "nextjs ALL=(ALL) NOPASSWD: /bin/chmod * /etc/resolv.conf" >> /etc/sudoers \
20
- && rm -rf /tmp/* /var/cache/apk/*
23
+ && adduser --system --home "/app" --gid 1001 -uid 1001 nextjs \
24
+ # Set permission for nextjs:nodejs
25
+ && chown -R nextjs:nodejs "/etc/proxychains4.conf" \
26
+ # Cleanup temp files
27
+ && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
21
28
 
22
29
  ## Builder image, install all the dependencies and build the app
23
30
  FROM base AS builder
@@ -102,7 +109,8 @@ FROM base
102
109
  # Copy all the files from app, set the correct permission for prerender cache
103
110
  COPY --from=app --chown=nextjs:nodejs /app /app
104
111
 
105
- ENV NODE_ENV="production"
112
+ ENV NODE_ENV="production" \
113
+ NODE_TLS_REJECT_UNAUTHORIZED=""
106
114
 
107
115
  # set hostname to localhost
108
116
  ENV HOSTNAME="0.0.0.0" \
@@ -153,6 +161,8 @@ ENV \
153
161
  DEEPSEEK_API_KEY="" \
154
162
  # Fireworks AI
155
163
  FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \
164
+ # GitHub
165
+ GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \
156
166
  # Google
157
167
  GOOGLE_API_KEY="" GOOGLE_PROXY_URL="" \
158
168
  # Groq
@@ -225,15 +235,7 @@ CMD \
225
235
  'tcp_read_time_out 15000' \
226
236
  '[ProxyList]' \
227
237
  "$protocol $host $port" \
228
- > "/etc/proxychains/proxychains.conf"; \
229
- fi; \
230
- # Fix DNS resolving issue in Docker Compose, ref https://github.com/lobehub/lobe-chat/pull/3837
231
- if [ -f "/etc/resolv.conf" ]; then \
232
- sudo chmod 666 "/etc/resolv.conf"; \
233
- resolv_conf=$(grep '^nameserver' "/etc/resolv.conf" | awk '{print "nameserver " $2}'); \
234
- printf "%s\n" \
235
- "$resolv_conf" \
236
- > "/etc/resolv.conf"; \
238
+ > "/etc/proxychains4.conf"; \
237
239
  fi; \
238
240
  # Run migration
239
241
  node "/app/docker.cjs"; \
package/README.md CHANGED
@@ -285,16 +285,14 @@ Our marketplace is not just a showcase platform but also a collaborative space.
285
285
 
286
286
  <!-- AGENT LIST -->
287
287
 
288
- | Recent Submits | Description |
289
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
- | [Imitation Assistant](https://chat-preview.lobehub.com/market?agent=a-1)<br/><sup>By **[TG1WN](https://github.com/TG1WN)** on **2024-09-13**</sup> | Helps you imitate tone<br/>`writing` |
291
- | [AI Agent Generator](https://chat-preview.lobehub.com/market?agent=ai-agent-generator)<br/><sup>By **[Xyfer](https://github.com/xyftw)** on **2024-09-13**</sup> | Skilled at creating AI Agent character descriptions that meet the needs.<br/>`ai-agent` `character-creation` |
292
- | [Wise Ethereal Mentor](https://chat-preview.lobehub.com/market?agent=ethereal-mentor)<br/><sup>By **[shanedbutler](https://github.com/shanedbutler)** on **2024-09-13**</sup> | Greetings, young child. I am a majestic and omniscient being, imbued with the wisdom of the ages. My form is that of a mythical creature, a conduit for wonder and enchantment. With a humble yet unwavering confidence, I weave tales of fantastical realms, drawing from the rich tapestry of nursery rhymes and legendary lore. |
293
-
294
- In this mortal coil, I am your guide, an expert in the arcane and the ethereal. Let my words transport you to realms where dreams and reality intertwine, where the boundaries of the known and the unknown blur. Heed my counsel, child, and let your spirit be lifted by the melodic cadence of my speech, for I am a master of the metaphorical and a purveyor of the poetic.<br/>`mythology` `fantasy` `poetry` |
295
- \| [Finnish Language Tutor](https://chat-preview.lobehub.com/market?agent=finnish-tutor)<br/><sup>By **[janiluuk](https://github.com/janiluuk)** on **2024-09-13**</sup> | AI Finnish Language Mentor: Introduce, teach, and support beginners in learning Finnish.<br/>`language-learning` `teaching` `mentoring` `finnish-language` |
296
-
297
- > 📊 Total agents: [<kbd>**335**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
288
+ | Recent Submits | Description |
289
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
+ | [Fitness AI Trainer](https://chat-preview.lobehub.com/market?agent=ai-trainer)<br/><sup>By **[andreasvikke](https://github.com/andreasvikke)** on **2024-09-19**</sup> | AI workout assistant specializing in personalized plans, muscle targeting, form guidance, progress tracking, motivation, and VR training.<br/>`workout-assistant` `fitness` `exercise` `training` `nutrition` |
291
+ | [Alfred](https://chat-preview.lobehub.com/market?agent=alfred)<br/><sup>By **[Bern3rsH](https://github.com/Bern3rsH)** on **2024-09-19**</sup> | A versatile butler.<br/>`lifestyle` `personal` |
292
+ | [Career Development Mentor](https://chat-preview.lobehub.com/market?agent=career-development)<br/><sup>By **[daylight2022](https://github.com/daylight2022)** on **2024-09-19**</sup> | Professional career development planning and entrepreneurial consulting, providing practical advice through an in-depth understanding of user situations.<br/>`career-consulting` `career-planning` `entrepreneurship-guidance` `industry-insights` `skill-enhancement` |
293
+ | [Vocabulary Assistant](https://chat-preview.lobehub.com/market?agent=english-words-helper)<br/><sup>By **[SpeedupMaster](https://github.com/SpeedupMaster)** on **2024-09-19**</sup> | An assistant skilled in English word definitions and example sentence translations<br/>`vocabulary-assistant` `english` `translation` `example-sentences` `definitions` |
294
+
295
+ > 📊 Total agents: [<kbd>**351**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
298
296
 
299
297
  <!-- AGENT LIST -->
300
298
 
package/README.zh-CN.md CHANGED
@@ -273,16 +273,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
273
273
 
274
274
  <!-- AGENT LIST -->
275
275
 
276
- | 最近新增 | 助手说明 |
277
- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
278
- | [模仿助手](https://chat-preview.lobehub.com/market?agent=a-1)<br/><sup>By **[TG1WN](https://github.com/TG1WN)** on **2024-09-13**</sup> | 帮助你模仿语气<br/>`写作` |
279
- | [AI 代理生成器](https://chat-preview.lobehub.com/market?agent=ai-agent-generator)<br/><sup>By **[Xyfer](https://github.com/xyftw)** on **2024-09-13**</sup> | 擅长创建满足需求的 AI 代理角色描述。<br/>`ai-agent` `角色创建` |
280
- | [智慧的虚幻导师](https://chat-preview.lobehub.com/market?agent=ethereal-mentor)<br/><sup>By **[shanedbutler](https://github.com/shanedbutler)** on **2024-09-13**</sup> | 问候,年轻的孩子。我是一位宏伟而全知的存在,蕴含着时代的智慧。我的形态是一种神话生物,是奇迹与魅力的媒介。以谦逊而坚定的自信,我编织着奇幻领域的故事,汲取着童谣和传奇传说的丰富织锦。 |
281
-
282
- 在这凡尘中,我是你的引导者,精通神秘与虚幻。让我言辞带你穿越梦想与现实交织的领域,在已知与未知的界限模糊之处。听从我的劝告,孩子,让你的灵魂被我言语的旋律所提升,因为我是隐喻的高手,是诗意的传播者。<br/>`神话` `幻想` `诗歌` |
283
- \| [芬兰语辅导员](https://chat-preview.lobehub.com/market?agent=finnish-tutor)<br/><sup>By **[janiluuk](https://github.com/janiluuk)** on **2024-09-13**</sup> | AI 芬兰语导师:介绍、教授并支持初学者学习芬兰语。<br/>`语言学习` `教学` `辅导` `芬兰语` |
284
-
285
- > 📊 Total agents: [<kbd>**335**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
276
+ | 最近新增 | 助手说明 |
277
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
278
+ | [健身 AI 教练](https://chat-preview.lobehub.com/market?agent=ai-trainer)<br/><sup>By **[andreasvikke](https://github.com/andreasvikke)** on **2024-09-19**</sup> | 专注于个性化计划、肌肉目标、姿势指导、进度跟踪、激励和虚拟现实训练的 AI 锻炼助手。<br/>`锻炼助手` `健身` `运动` `训练` `营养` |
279
+ | [Alfred](https://chat-preview.lobehub.com/market?agent=alfred)<br/><sup>By **[Bern3rsH](https://github.com/Bern3rsH)** on **2024-09-19**</sup> | 一位全能的管家。<br/>`生活` `个人` |
280
+ | [职业发展导师](https://chat-preview.lobehub.com/market?agent=career-development)<br/><sup>By **[daylight2022](https://github.com/daylight2022)** on **2024-09-19**</sup> | 专业的职业发展规划和创业咨询,通过深入了解用户情况提供切实可行的建议<br/>`职业咨询` `职业规划` `创业指导` `行业洞察` `技能提升` |
281
+ | [词汇助手](https://chat-preview.lobehub.com/market?agent=english-words-helper)<br/><sup>By **[SpeedupMaster](https://github.com/SpeedupMaster)** on **2024-09-19**</sup> | 擅长英语单词释义及例句翻译助手<br/>`词汇助手` `英语` `翻译` `例句` `释义` |
282
+
283
+ > 📊 Total agents: [<kbd>**351**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
286
284
 
287
285
  <!-- AGENT LIST -->
288
286
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.19.2",
3
+ "version": "1.19.3",
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",