@lobehub/chat 1.50.1 → 1.50.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 1.50.2](https://github.com/lobehub/lobe-chat/compare/v1.50.1...v1.50.2)
6
+
7
+ <sup>Released on **2025-02-04**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix `o1` series calling issue.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix `o1` series calling issue, closes [#5714](https://github.com/lobehub/lobe-chat/issues/5714) ([d74653e](https://github.com/lobehub/lobe-chat/commit/d74653e))
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 1.50.1](https://github.com/lobehub/lobe-chat/compare/v1.50.0...v1.50.1)
6
31
 
7
32
  <sup>Released on **2025-02-03**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "fixes": [
5
+ "Fix o1 series calling issue."
6
+ ]
7
+ },
8
+ "date": "2025-02-04",
9
+ "version": "1.50.2"
10
+ },
2
11
  {
3
12
  "children": {
4
13
  "fixes": [
@@ -16,20 +16,26 @@
16
16
  LOBE_PORT=3210
17
17
  CASDOOR_PORT=8000
18
18
  MINIO_PORT=9000
19
+ APP_URL=http://localhost:3210
20
+ AUTH_URL=http://localhost:3210/api/auth
19
21
 
20
22
  # Postgres related, which are the necessary environment variables for DB
21
23
  LOBE_DB_NAME=lobechat
22
24
  POSTGRES_PASSWORD=uWNZugjBqixf8dxC
23
25
 
26
+ AUTH_CASDOOR_ISSUER=http://localhost:8000
24
27
  # Casdoor secret
25
28
  AUTH_CASDOOR_ID=a387a4892ee19b1a2249
26
29
  AUTH_CASDOOR_SECRET=dbf205949d704de81b0b5b3603174e23fbecc354
27
30
 
28
31
  # MinIO S3 configuration
29
- MINIO_ROOT_USER=YOUR_MINIO_USER
32
+ MINIO_ROOT_USER=admin
30
33
  MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
31
34
 
32
35
  # Configure the bucket information of MinIO
36
+ S3_PUBLIC_DOMAIN=http://localhost:9000
37
+ S3_ENDPOINT=http://localhost:9000
33
38
  MINIO_LOBE_BUCKET=lobe
34
- S3_ACCESS_KEY_ID=soaucnP8Bip0TDdUjxng
35
- S3_SECRET_ACCESS_KEY=ZPUzvY34umfcfxvWKSv0P00vczVMB6YmgJS5J9eO
39
+
40
+ # Configure for casdoor
41
+ origin=http://localhost:8000
@@ -16,21 +16,26 @@
16
16
  LOBE_PORT=3210
17
17
  CASDOOR_PORT=8000
18
18
  MINIO_PORT=9000
19
+ APP_URL=http://localhost:3210
20
+ AUTH_URL=http://localhost:3210/api/auth
19
21
 
20
22
  # Postgres 相关,也即 DB 必须的环境变量
21
23
  LOBE_DB_NAME=lobechat
22
24
  POSTGRES_PASSWORD=uWNZugjBqixf8dxC
23
25
 
26
+ AUTH_CASDOOR_ISSUER=http://localhost:8000
24
27
  # Casdoor secret
25
28
  AUTH_CASDOOR_ID=a387a4892ee19b1a2249
26
29
  AUTH_CASDOOR_SECRET=dbf205949d704de81b0b5b3603174e23fbecc354
27
30
 
28
31
  # MinIO S3 配置
29
- MINIO_ROOT_USER=YOUR_MINIO_USER
32
+ MINIO_ROOT_USER=admin
30
33
  MINIO_ROOT_PASSWORD=YOUR_MINIO_PASSWORD
31
34
 
32
35
  # 在下方配置 minio 中添加的桶
36
+ S3_PUBLIC_DOMAIN=http://localhost:9000
37
+ S3_ENDPOINT=http://localhost:9000
33
38
  MINIO_LOBE_BUCKET=lobe
34
- S3_ACCESS_KEY_ID=soaucnP8Bip0TDdUjxng
35
- S3_SECRET_ACCESS_KEY=ZPUzvY34umfcfxvWKSv0P00vczVMB6YmgJS5J9eO
36
39
 
40
+ # 为 casdoor 配置
41
+ origin=http://localhost:8000
@@ -38,13 +38,24 @@ services:
38
38
  volumes:
39
39
  - './s3_data:/etc/minio/data'
40
40
  environment:
41
- - 'MINIO_ROOT_USER=${MINIO_ROOT_USER}'
42
- - 'MINIO_ROOT_PASSWORD=${MINIO_ROOT_PASSWORD}'
43
- - 'MINIO_API_CORS_ALLOW_ORIGIN=http://localhost:${LOBE_PORT}'
41
+ - 'MINIO_API_CORS_ALLOW_ORIGIN=*'
42
+ env_file:
43
+ - .env
44
44
  restart: always
45
- command: >
46
- server /etc/minio/data --address ":${MINIO_PORT}" --console-address ":9001"
47
-
45
+ entrypoint: >
46
+ /bin/sh -c "
47
+ minio server /etc/minio/data --address ':${MINIO_PORT}' --console-address ':9001' &
48
+ MINIO_PID=\$!
49
+ while ! curl -s http://localhost:${MINIO_PORT}/minio/health/live; do
50
+ echo 'Waiting for MinIO to start...'
51
+ sleep 1
52
+ done
53
+ sleep 5
54
+ mc alias set myminio http://localhost:${MINIO_PORT} ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD}
55
+ echo 'Creating bucket ${MINIO_LOBE_BUCKET}'
56
+ mc mb myminio/${MINIO_LOBE_BUCKET}
57
+ wait \$MINIO_PID
58
+ "
48
59
 
49
60
  casdoor:
50
61
  image: casbin/casdoor
@@ -58,10 +69,11 @@ services:
58
69
  RUNNING_IN_DOCKER: 'true'
59
70
  driverName: 'postgres'
60
71
  dataSourceName: 'user=postgres password=${POSTGRES_PASSWORD} host=postgresql port=5432 sslmode=disable dbname=casdoor'
61
- origin: 'http://localhost:${CASDOOR_PORT}'
62
72
  runmode: 'dev'
63
73
  volumes:
64
74
  - ./init_data.json:/init_data.json
75
+ env_file:
76
+ - .env
65
77
 
66
78
  lobe:
67
79
  image: lobehub/lobe-chat-database
@@ -78,17 +90,15 @@ services:
78
90
  condition: service_started
79
91
 
80
92
  environment:
81
- - 'APP_URL=http://localhost:3210'
82
93
  - 'NEXT_AUTH_SSO_PROVIDERS=casdoor'
83
94
  - 'KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ='
84
95
  - 'NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg'
85
- - 'AUTH_URL=http://localhost:${LOBE_PORT}/api/auth'
86
- - 'AUTH_CASDOOR_ISSUER=http://localhost:${CASDOOR_PORT}'
87
96
  - 'DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@postgresql:5432/${LOBE_DB_NAME}'
88
- - 'S3_ENDPOINT=http://localhost:${MINIO_PORT}'
89
97
  - 'S3_BUCKET=${MINIO_LOBE_BUCKET}'
90
- - 'S3_PUBLIC_DOMAIN=http://localhost:${MINIO_PORT}'
91
98
  - 'S3_ENABLE_PATH_STYLE=1'
99
+ - 'S3_ACCESS_KEY=${MINIO_ROOT_USER}'
100
+ - 'S3_ACCESS_KEY_ID=${MINIO_ROOT_USER}'
101
+ - 'S3_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD}'
92
102
  - 'LLM_VISION_IMAGE_USE_BASE64=1'
93
103
  env_file:
94
104
  - .env