@lobehub/chat 0.86.1 → 0.86.2

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 CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 0.86.2](https://github.com/lobehub/lobe-chat/compare/v0.86.1...v0.86.2)
6
+
7
+ <sup>Released on **2023-10-11**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **docker**: Improve config to reduce unnecessary env and change default PORT.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **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))
21
+
22
+ </details>
23
+
24
+ <div align="right">
25
+
26
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
27
+
28
+ </div>
29
+
5
30
  ### [Version 0.86.1](https://github.com/lobehub/lobe-chat/compare/v0.86.0...v0.86.1)
6
31
 
7
32
  <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,7 +40,7 @@ COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
39
40
 
40
41
  USER nextjs
41
42
 
42
- EXPOSE 3000
43
+ EXPOSE 3210
43
44
 
44
45
  # set hostname to localhost
45
46
  ENV HOSTNAME "0.0.0.0"
@@ -48,4 +49,4 @@ ENV ACCESS_CODE "lobe66"
48
49
  ENV OPENAI_API_KEY ""
49
50
  ENV OPENAI_PROXY_URL ""
50
51
 
51
- CMD ["node", "server.js"]
52
+ CMD ["PORT=3210","node", "server.js"]
package/README.md CHANGED
@@ -192,7 +192,7 @@ LobeChat provides a [self-hosted version][deploy-link] with Vercel. This allows
192
192
  | Environment Variable | Required | Description | Example |
193
193
  | -------------------- | -------- | --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- |
194
194
  | `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` |
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/v1`<br/>The default value is<br/>`https://api.openai.com/v1` |
196
196
  | `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
197
 
198
198
  ### Keep Updated
package/README.zh-CN.md CHANGED
@@ -194,7 +194,7 @@ LobeChat 提供了 Vercel 的 [自托管版本][deploy-link]。这使你可以
194
194
  | 环境变量 | 类型 | 描述 | 示例 |
195
195
  | ------------------ | ---- | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
196
196
  | `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` |
197
+ | `OPENAI_PROXY_URL` | 可选 | 如果你手动配置了 OpenAI 接口代理,可以使用此配置项来覆盖默认的 OpenAI API 请求基础 URL | `https://api.chatanywhere.cn/v1`<br/>默认值:<br/>`https://api.openai.com/v1` |
198
198
  | `ACCESS_CODE` | 可选 | 添加访问此服务的密码,密码应为 6 位数字或字母 | `awCT74` 或 `e3@09!` |
199
199
 
200
200
  ### 保持更新
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "0.86.1",
3
+ "version": "0.86.2",
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",