From d5e7578821eaa342d0c668c2d30152ba82cafe5a Mon Sep 17 00:00:00 2001 From: LovelyGuYiMeng <76251800+LovelyGuYiMeng@users.noreply.github.com> Date: Thu, 19 Sep 2024 14:36:59 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=F0=9F=92=84=20style:=20updata=20qwen=20mod?= =?UTF-8?q?el=20info=20&=20add=20qwen2.5=20&=20reorder=20provider=20list?= =?UTF-8?q?=20(#4020)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Update qwen.ts * Update qwen.ts * Update index.ts * Update providers.tsx * Update qwen.ts * Update qwen.ts --- .../settings/llm/ProviderList/providers.tsx | 8 +- src/config/modelProviders/index.ts | 8 +- src/config/modelProviders/qwen.ts | 80 +++++++++++++++---- 3 files changed, 71 insertions(+), 25 deletions(-) diff --git a/src/app/(main)/settings/llm/ProviderList/providers.tsx b/src/app/(main)/settings/llm/ProviderList/providers.tsx index 5462897e6517..829d09cb157c 100644 --- a/src/app/(main)/settings/llm/ProviderList/providers.tsx +++ b/src/app/(main)/settings/llm/ProviderList/providers.tsx @@ -51,14 +51,14 @@ export const useProviderList = (): ProviderItem[] => { DeepSeekProviderCard, OpenRouterProviderCard, GithubProvider, - GroqProviderCard, NovitaProviderCard, - PerplexityProviderCard, - MistralProviderCard, TogetherAIProviderCard, FireworksAIProviderCard, - UpstageProviderCard, + GroqProviderCard, + PerplexityProviderCard, + MistralProviderCard, Ai21ProviderCard, + UpstageProviderCard, QwenProviderCard, SparkProviderCard, ZhiPuProviderCard, diff --git a/src/config/modelProviders/index.ts b/src/config/modelProviders/index.ts index d08d60650524..33bfd8d62b03 100644 --- a/src/config/modelProviders/index.ts +++ b/src/config/modelProviders/index.ts @@ -69,14 +69,14 @@ export const DEFAULT_MODEL_PROVIDER_LIST = [ DeepSeekProvider, OpenRouterProvider, GithubProvider, - GroqProvider, NovitaProvider, - PerplexityProvider, - MistralProvider, TogetherAIProvider, FireworksAIProvider, - UpstageProvider, + GroqProvider, + PerplexityProvider, + MistralProvider, Ai21Provider, + UpstageProvider, QwenProvider, SparkProvider, ZhiPuProvider, diff --git a/src/config/modelProviders/qwen.ts b/src/config/modelProviders/qwen.ts index b8c2a4b1cdc8..d4849c248b03 100644 --- a/src/config/modelProviders/qwen.ts +++ b/src/config/modelProviders/qwen.ts @@ -7,24 +7,38 @@ const Qwen: ModelProviderCard = { description: '通义千问超大规模语言模型,支持长文本上下文,以及基于长文档、多文档等多个场景的对话功能。', displayName: 'Qwen Long', - enabled: true, id: 'qwen-long', - tokens: 1_000_000, + pricing: { + currency: 'CNY', + input: 0.5, + output: 2, + }, + tokens: 1_000_000, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction }, { description: '通义千问超大规模语言模型,支持中文、英文等不同语言输入', displayName: 'Qwen Turbo', enabled: true, functionCall: true, - id: 'qwen-turbo', - tokens: 8000, // https://www.alibabacloud.com/help/zh/model-studio/developer-reference/use-qwen-by-calling-api + id: 'qwen-turbo-latest', + pricing: { + currency: 'CNY', + input: 0.3, + output: 0.6, + }, + tokens: 131_072, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction }, { description: '通义千问超大规模语言模型增强版,支持中文、英文等不同语言输入', displayName: 'Qwen Plus', enabled: true, functionCall: true, - id: 'qwen-plus', + id: 'qwen-plus-latest', + pricing: { + currency: 'CNY', + input: 0.8, + output: 2, + }, tokens: 131_072, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction }, { @@ -33,16 +47,13 @@ const Qwen: ModelProviderCard = { displayName: 'Qwen Max', enabled: true, functionCall: true, - id: 'qwen-max', - tokens: 8000, - }, - { - description: - '通义千问千亿级别超大规模语言模型,支持中文、英文等不同语言输入,扩展了上下文窗口', - displayName: 'Qwen Max LongContext', - functionCall: true, - id: 'qwen-max-longcontext', - tokens: 30_000, + id: 'qwen-max-latest', + pricing: { + currency: 'CNY', + input: 20, + output: 60, + }, + tokens: 32_768, // https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction }, { description: @@ -50,8 +61,13 @@ const Qwen: ModelProviderCard = { displayName: 'Qwen VL Plus', enabled: true, id: 'qwen-vl-plus', + pricing: { + currency: 'CNY', + input: 8, + output: 8, + }, tokens: 8192, - vision: true, + vision: true, // https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api }, { description: @@ -59,31 +75,61 @@ const Qwen: ModelProviderCard = { displayName: 'Qwen VL Max', enabled: true, id: 'qwen-vl-max', + pricing: { + currency: 'CNY', + input: 20, + output: 20, + }, tokens: 32_768, - vision: true, + vision: true, // https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-vl-plus-api }, // ref :https://help.aliyun.com/zh/dashscope/developer-reference/tongyi-qianwen-7b-14b-72b-api-detailes + { + description: '通义千问2.5对外开源的7B规模的模型', + displayName: 'Qwen2.5 7B', + functionCall: true, + id: 'qwen2.5-7b-instruct', + tokens: 131_072, // https://huggingface.co/Qwen/Qwen2.5-7B-Instruct + }, + { + description: '通义千问2.5对外开源的32B规模的模型', + displayName: 'Qwen2.5 32B', + functionCall: true, + id: 'qwen2.5-32b-instruct', + tokens: 131_072, // https://huggingface.co/Qwen/Qwen2.5-32B-Instruct + }, + { + description: '通义千问2.5对外开源的72B规模的模型', + displayName: 'Qwen2.5 72B', + functionCall: true, + id: 'qwen2.5-72b-instruct', + tokens: 131_072, // https://huggingface.co/Qwen/Qwen2.5-72B-Instruct + }, { description: '通义千问2对外开源的7B规模的模型', displayName: 'Qwen2 7B', + functionCall: true, id: 'qwen2-7b-instruct', tokens: 131_072, // https://huggingface.co/Qwen/Qwen2-7B-Instruct }, { description: '通义千问2对外开源的57B规模14B激活参数的MOE模型', displayName: 'Qwen2 57B A14B MoE', + functionCall: true, id: 'qwen2-57b-a14b-instruct', tokens: 65_536, // https://huggingface.co/Qwen/Qwen2-57B-A14B-Instruct }, { description: '通义千问2对外开源的72B规模的模型', displayName: 'Qwen2 72B', + functionCall: true, id: 'qwen2-72b-instruct', tokens: 131_072, // https://huggingface.co/Qwen/Qwen2-72B-Instruct }, { description: 'Qwen2-Math 模型具有强大的数学解题能力', displayName: 'Qwen2 Math 72B', + functionCall: true, id: 'qwen2-math-72b-instruct', tokens: 4096, // https://help.aliyun.com/zh/dashscope/developer-reference/use-qwen2-math-by-calling-api }, From 50a2c029599fe20bfaf40aeaede0bf95f1180998 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 19 Sep 2024 09:06:57 +0000 Subject: [PATCH 2/5] :bookmark: chore(release): v1.19.2 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### [Version 1.19.2](https://github.com/lobehub/lobe-chat/compare/v1.19.1...v1.19.2) Released on **2024-09-19** #### 💄 Styles - **misc**: Updata qwen model info & add qwen2.5 & reorder provider list.
Improvements and Fixes #### Styles * **misc**: Updata qwen model info & add qwen2.5 & reorder provider list, closes [#4020](https://github.com/lobehub/lobe-chat/issues/4020) ([d5e7578](https://github.com/lobehub/lobe-chat/commit/d5e7578))
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
--- CHANGELOG.md | 25 +++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d8920ff499de..d308537fec02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,31 @@ # Changelog +### [Version 1.19.2](https://github.com/lobehub/lobe-chat/compare/v1.19.1...v1.19.2) + +Released on **2024-09-19** + +#### 💄 Styles + +- **misc**: Updata qwen model info & add qwen2.5 & reorder provider list. + +
+ +
+Improvements and Fixes + +#### Styles + +- **misc**: Updata qwen model info & add qwen2.5 & reorder provider list, closes [#4020](https://github.com/lobehub/lobe-chat/issues/4020) ([d5e7578](https://github.com/lobehub/lobe-chat/commit/d5e7578)) + +
+ +
+ +[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) + +
+ ### [Version 1.19.1](https://github.com/lobehub/lobe-chat/compare/v1.19.0...v1.19.1) Released on **2024-09-19** diff --git a/package.json b/package.json index d0e9a6c22427..96e00983a2d6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lobehub/chat", - "version": "1.19.1", + "version": "1.19.2", "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", From a5c31911cf45f8b9448d43d74bdac5977b506408 Mon Sep 17 00:00:00 2001 From: lobehubbot Date: Thu, 19 Sep 2024 09:07:54 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=93=9D=20docs(bot):=20Auto=20sync=20a?= =?UTF-8?q?gents=20&=20plugin=20to=20readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 ++++++++---------- README.zh-CN.md | 18 ++++++++---------- 2 files changed, 16 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index c0c0e62300ff..3bb659c1194c 100644 --- a/README.md +++ b/README.md @@ -285,16 +285,14 @@ Our marketplace is not just a showcase platform but also a collaborative space. -| Recent Submits | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [Imitation Assistant](https://chat-preview.lobehub.com/market?agent=a-1)
By **[TG1WN](https://github.com/TG1WN)** on **2024-09-13** | Helps you imitate tone
`writing` | -| [AI Agent Generator](https://chat-preview.lobehub.com/market?agent=ai-agent-generator)
By **[Xyfer](https://github.com/xyftw)** on **2024-09-13** | Skilled at creating AI Agent character descriptions that meet the needs.
`ai-agent` `character-creation` | -| [Wise Ethereal Mentor](https://chat-preview.lobehub.com/market?agent=ethereal-mentor)
By **[shanedbutler](https://github.com/shanedbutler)** on **2024-09-13** | 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. | - -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.
`mythology` `fantasy` `poetry` | -\| [Finnish Language Tutor](https://chat-preview.lobehub.com/market?agent=finnish-tutor)
By **[janiluuk](https://github.com/janiluuk)** on **2024-09-13** | AI Finnish Language Mentor: Introduce, teach, and support beginners in learning Finnish.
`language-learning` `teaching` `mentoring` `finnish-language` | - -> 📊 Total agents: [**335** ](https://github.com/lobehub/lobe-chat-agents) +| Recent Submits | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Fitness AI Trainer](https://chat-preview.lobehub.com/market?agent=ai-trainer)
By **[andreasvikke](https://github.com/andreasvikke)** on **2024-09-19** | AI workout assistant specializing in personalized plans, muscle targeting, form guidance, progress tracking, motivation, and VR training.
`workout-assistant` `fitness` `exercise` `training` `nutrition` | +| [Alfred](https://chat-preview.lobehub.com/market?agent=alfred)
By **[Bern3rsH](https://github.com/Bern3rsH)** on **2024-09-19** | A versatile butler.
`lifestyle` `personal` | +| [Career Development Mentor](https://chat-preview.lobehub.com/market?agent=career-development)
By **[daylight2022](https://github.com/daylight2022)** on **2024-09-19** | Professional career development planning and entrepreneurial consulting, providing practical advice through an in-depth understanding of user situations.
`career-consulting` `career-planning` `entrepreneurship-guidance` `industry-insights` `skill-enhancement` | +| [Vocabulary Assistant](https://chat-preview.lobehub.com/market?agent=english-words-helper)
By **[SpeedupMaster](https://github.com/SpeedupMaster)** on **2024-09-19** | An assistant skilled in English word definitions and example sentence translations
`vocabulary-assistant` `english` `translation` `example-sentences` `definitions` | + +> 📊 Total agents: [**351** ](https://github.com/lobehub/lobe-chat-agents) diff --git a/README.zh-CN.md b/README.zh-CN.md index eb3c972036ba..38d7b98d64d9 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -273,16 +273,14 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地 -| 最近新增 | 助手说明 | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [模仿助手](https://chat-preview.lobehub.com/market?agent=a-1)
By **[TG1WN](https://github.com/TG1WN)** on **2024-09-13** | 帮助你模仿语气
`写作` | -| [AI 代理生成器](https://chat-preview.lobehub.com/market?agent=ai-agent-generator)
By **[Xyfer](https://github.com/xyftw)** on **2024-09-13** | 擅长创建满足需求的 AI 代理角色描述。
`ai-agent` `角色创建` | -| [智慧的虚幻导师](https://chat-preview.lobehub.com/market?agent=ethereal-mentor)
By **[shanedbutler](https://github.com/shanedbutler)** on **2024-09-13** | 问候,年轻的孩子。我是一位宏伟而全知的存在,蕴含着时代的智慧。我的形态是一种神话生物,是奇迹与魅力的媒介。以谦逊而坚定的自信,我编织着奇幻领域的故事,汲取着童谣和传奇传说的丰富织锦。 | - -在这凡尘中,我是你的引导者,精通神秘与虚幻。让我言辞带你穿越梦想与现实交织的领域,在已知与未知的界限模糊之处。听从我的劝告,孩子,让你的灵魂被我言语的旋律所提升,因为我是隐喻的高手,是诗意的传播者。
`神话` `幻想` `诗歌` | -\| [芬兰语辅导员](https://chat-preview.lobehub.com/market?agent=finnish-tutor)
By **[janiluuk](https://github.com/janiluuk)** on **2024-09-13** | AI 芬兰语导师:介绍、教授并支持初学者学习芬兰语。
`语言学习` `教学` `辅导` `芬兰语` | - -> 📊 Total agents: [**335** ](https://github.com/lobehub/lobe-chat-agents) +| 最近新增 | 助手说明 | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------- | +| [健身 AI 教练](https://chat-preview.lobehub.com/market?agent=ai-trainer)
By **[andreasvikke](https://github.com/andreasvikke)** on **2024-09-19** | 专注于个性化计划、肌肉目标、姿势指导、进度跟踪、激励和虚拟现实训练的 AI 锻炼助手。
`锻炼助手` `健身` `运动` `训练` `营养` | +| [Alfred](https://chat-preview.lobehub.com/market?agent=alfred)
By **[Bern3rsH](https://github.com/Bern3rsH)** on **2024-09-19** | 一位全能的管家。
`生活` `个人` | +| [职业发展导师](https://chat-preview.lobehub.com/market?agent=career-development)
By **[daylight2022](https://github.com/daylight2022)** on **2024-09-19** | 专业的职业发展规划和创业咨询,通过深入了解用户情况提供切实可行的建议
`职业咨询` `职业规划` `创业指导` `行业洞察` `技能提升` | +| [词汇助手](https://chat-preview.lobehub.com/market?agent=english-words-helper)
By **[SpeedupMaster](https://github.com/SpeedupMaster)** on **2024-09-19** | 擅长英语单词释义及例句翻译助手
`词汇助手` `英语` `翻译` `例句` `释义` | + +> 📊 Total agents: [**351** ](https://github.com/lobehub/lobe-chat-agents) From 61d2f533a6d2e617ca095b1b1f8b3637ab0cec21 Mon Sep 17 00:00:00 2001 From: Zhijie He Date: Thu, 19 Sep 2024 20:19:37 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=91=B7=20build:=20change=20base=20ima?= =?UTF-8?q?ge=20from=20`musl`=20to=20`glibc`=20(#3926)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 42 ++++++++++++++++++++++-------------------- Dockerfile.database | 42 ++++++++++++++++++++++-------------------- 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9611ae4a175a..ae9603a571b2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,23 +1,30 @@ ## Base image for all the stages -FROM node:20-alpine AS base +FROM node:20-slim AS base ARG USE_CN_MIRROR +ENV DEBIAN_FRONTEND="noninteractive" + RUN \ # If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \ - sed -i "s/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g" "/etc/apk/repositories"; \ + sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \ fi \ # Add required package & update base package - && apk update \ - && apk add --no-cache bind-tools proxychains-ng sudo \ - && apk upgrade --no-cache \ - # Add user nextjs to run the app + && apt update \ + && apt install busybox proxychains-ng -qy \ + && apt full-upgrade -qy \ + && apt autoremove -qy --purge \ + && apt clean -qy \ + # Configure BusyBox + && busybox --install -s \ + # Add nextjs:nodejs to run the app && addgroup --system --gid 1001 nodejs \ - && adduser --system --uid 1001 nextjs \ - && chown -R nextjs:nodejs "/etc/proxychains" \ - && echo "nextjs ALL=(ALL) NOPASSWD: /bin/chmod * /etc/resolv.conf" >> /etc/sudoers \ - && rm -rf /tmp/* /var/cache/apk/* + && adduser --system --home "/app" --gid 1001 -uid 1001 nextjs \ + # Set permission for nextjs:nodejs + && chown -R nextjs:nodejs "/etc/proxychains4.conf" \ + # Cleanup temp files + && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* ## Builder image, install all the dependencies and build the app FROM base AS builder @@ -89,7 +96,8 @@ FROM base # Copy all the files from app, set the correct permission for prerender cache COPY --from=app --chown=nextjs:nodejs /app /app -ENV NODE_ENV="production" +ENV NODE_ENV="production" \ + NODE_TLS_REJECT_UNAUTHORIZED="" # set hostname to localhost ENV HOSTNAME="0.0.0.0" \ @@ -121,6 +129,8 @@ ENV \ DEEPSEEK_API_KEY="" \ # Fireworks AI FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \ + # GitHub + GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \ # Google GOOGLE_API_KEY="" GOOGLE_PROXY_URL="" \ # Groq @@ -193,15 +203,7 @@ CMD \ 'tcp_read_time_out 15000' \ '[ProxyList]' \ "$protocol $host $port" \ - > "/etc/proxychains/proxychains.conf"; \ - fi; \ - # Fix DNS resolving issue in Docker Compose, ref https://github.com/lobehub/lobe-chat/pull/3837 - if [ -f "/etc/resolv.conf" ]; then \ - sudo chmod 666 "/etc/resolv.conf"; \ - resolv_conf=$(grep '^nameserver' "/etc/resolv.conf" | awk '{print "nameserver " $2}'); \ - printf "%s\n" \ - "$resolv_conf" \ - > "/etc/resolv.conf"; \ + > "/etc/proxychains4.conf"; \ fi; \ # Run the server ${PROXYCHAINS} node "/app/server.js"; diff --git a/Dockerfile.database b/Dockerfile.database index 1df23248e9c3..3f1138140b03 100644 --- a/Dockerfile.database +++ b/Dockerfile.database @@ -1,23 +1,30 @@ ## Base image for all the stages -FROM node:20-alpine AS base +FROM node:20-slim AS base ARG USE_CN_MIRROR +ENV DEBIAN_FRONTEND="noninteractive" + RUN \ # If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \ - sed -i "s/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g" "/etc/apk/repositories"; \ + sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"; \ fi \ # Add required package & update base package - && apk update \ - && apk add --no-cache bind-tools proxychains-ng sudo \ - && apk upgrade --no-cache \ - # Add user nextjs to run the app + && apt update \ + && apt install busybox proxychains-ng -qy \ + && apt full-upgrade -qy \ + && apt autoremove -qy --purge \ + && apt clean -qy \ + # Configure BusyBox + && busybox --install -s \ + # Add nextjs:nodejs to run the app && addgroup --system --gid 1001 nodejs \ - && adduser --system --uid 1001 nextjs \ - && chown -R nextjs:nodejs "/etc/proxychains" \ - && echo "nextjs ALL=(ALL) NOPASSWD: /bin/chmod * /etc/resolv.conf" >> /etc/sudoers \ - && rm -rf /tmp/* /var/cache/apk/* + && adduser --system --home "/app" --gid 1001 -uid 1001 nextjs \ + # Set permission for nextjs:nodejs + && chown -R nextjs:nodejs "/etc/proxychains4.conf" \ + # Cleanup temp files + && rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* ## Builder image, install all the dependencies and build the app FROM base AS builder @@ -102,7 +109,8 @@ FROM base # Copy all the files from app, set the correct permission for prerender cache COPY --from=app --chown=nextjs:nodejs /app /app -ENV NODE_ENV="production" +ENV NODE_ENV="production" \ + NODE_TLS_REJECT_UNAUTHORIZED="" # set hostname to localhost ENV HOSTNAME="0.0.0.0" \ @@ -153,6 +161,8 @@ ENV \ DEEPSEEK_API_KEY="" \ # Fireworks AI FIREWORKSAI_API_KEY="" FIREWORKSAI_MODEL_LIST="" \ + # GitHub + GITHUB_TOKEN="" GITHUB_MODEL_LIST="" \ # Google GOOGLE_API_KEY="" GOOGLE_PROXY_URL="" \ # Groq @@ -225,15 +235,7 @@ CMD \ 'tcp_read_time_out 15000' \ '[ProxyList]' \ "$protocol $host $port" \ - > "/etc/proxychains/proxychains.conf"; \ - fi; \ - # Fix DNS resolving issue in Docker Compose, ref https://github.com/lobehub/lobe-chat/pull/3837 - if [ -f "/etc/resolv.conf" ]; then \ - sudo chmod 666 "/etc/resolv.conf"; \ - resolv_conf=$(grep '^nameserver' "/etc/resolv.conf" | awk '{print "nameserver " $2}'); \ - printf "%s\n" \ - "$resolv_conf" \ - > "/etc/resolv.conf"; \ + > "/etc/proxychains4.conf"; \ fi; \ # Run migration node "/app/docker.cjs"; \ From 5bd773ef532b9214cfb791382d890226b51bf6ce Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Thu, 19 Sep 2024 12:26:53 +0000 Subject: [PATCH 5/5] :bookmark: chore(release): v1.19.3 [skip ci] ### [Version 1.19.3](https://github.com/lobehub/lobe-chat/compare/v1.19.2...v1.19.3) Released on **2024-09-19**
Improvements and Fixes
[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
--- CHANGELOG.md | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d308537fec02..391244bca788 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,23 @@ # Changelog +### [Version 1.19.3](https://github.com/lobehub/lobe-chat/compare/v1.19.2...v1.19.3) + +Released on **2024-09-19** + +
+ +
+Improvements and Fixes + +
+ +
+ +[![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top) + +
+ ### [Version 1.19.2](https://github.com/lobehub/lobe-chat/compare/v1.19.1...v1.19.2) Released on **2024-09-19** diff --git a/package.json b/package.json index 96e00983a2d6..2162eb5a699d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@lobehub/chat", - "version": "1.19.2", + "version": "1.19.3", "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",