@lobehub/chat 1.36.43 → 1.36.45

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,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.36.45](https://github.com/lobehub/lobe-chat/compare/v1.36.44...v1.36.45)
6
+
7
+ <sup>Released on **2024-12-21**</sup>
8
+
9
+ #### 💄 Styles
10
+
11
+ - **misc**: Add o1 model in GitHub models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Add o1 model in GitHub models, closes [#5110](https://github.com/lobehub/lobe-chat/issues/5110) ([91dc5d7](https://github.com/lobehub/lobe-chat/commit/91dc5d7))
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
+
30
+ ### [Version 1.36.44](https://github.com/lobehub/lobe-chat/compare/v1.36.43...v1.36.44)
31
+
32
+ <sup>Released on **2024-12-21**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Add Gemini flash thinking model.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Add Gemini flash thinking model, closes [#5103](https://github.com/lobehub/lobe-chat/issues/5103) ([c59c1e2](https://github.com/lobehub/lobe-chat/commit/c59c1e2))
46
+
47
+ </details>
48
+
49
+ <div align="right">
50
+
51
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
52
+
53
+ </div>
54
+
5
55
  ### [Version 1.36.43](https://github.com/lobehub/lobe-chat/compare/v1.36.42...v1.36.43)
6
56
 
7
57
  <sup>Released on **2024-12-21**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Add o1 model in GitHub models."
6
+ ]
7
+ },
8
+ "date": "2024-12-21",
9
+ "version": "1.36.45"
10
+ },
11
+ {
12
+ "children": {
13
+ "improvements": [
14
+ "Add Gemini flash thinking model."
15
+ ]
16
+ },
17
+ "date": "2024-12-21",
18
+ "version": "1.36.44"
19
+ },
2
20
  {
3
21
  "children": {},
4
22
  "date": "2024-12-21",
@@ -75,10 +75,32 @@ When deploying LobeChat, you need to configure the following environment variabl
75
75
 
76
76
  <Callout type={'tip'}>
77
77
  Visit [📘 Environment Variables](/docs/self-hosting/environment-variables/auth#logto) for details on related variables.
78
-
78
+
79
79
  </Callout>
80
80
  </Steps>
81
81
 
82
+ ### Troubleshooting
83
+
84
+ If you encounter issues during the Logto deployment process, refer to the following common problems:
85
+
86
+ - `Only roles with the xxx attribute may create roles`:
87
+ Check your database user's permissions and ensure that the user in your Logto database has the `admin` role to create roles.
88
+
89
+ - Error executing `logto db seed` on third-party databases like `Neon`:
90
+ Try using the `logto db seed --encrypt-base-role` command.
91
+
92
+ - Database seeding failed:
93
+ Try skipping the seeding process with the `--skip-seed` parameter.
94
+
95
+ - `Error: role xxx already exists`:
96
+ Delete the existing role in the database.
97
+
98
+ - Database migration failed after a version upgrade:
99
+ Try using the command `npx @logto/cli db alteration deploy $version` (e.g., `npx @logto/cli db alteration deploy 1.22.0`).
100
+
101
+ - I am using Docker deployment and want a one-click upgrade:
102
+ Execute the custom command in the container: `sh -c "npm run cli db seed -- --swe --encrypt-base-role" && npx @logto/cli db alteration deploy $version && npm start`
103
+
82
104
  <Callout type={'info'}>
83
105
  After successful deployment, users will be able to authenticate via Logto and use LobeChat.
84
106
  </Callout>
@@ -72,8 +72,30 @@ tags:
72
72
 
73
73
  <Callout type={'tip'}>
74
74
  前往 [📘 环境变量](/zh/docs/self-hosting/environment-variables/auth#logto) 可查阅相关变量详情。
75
-
75
+
76
76
  </Callout>
77
77
  </Steps>
78
78
 
79
+ ### 故障排除
80
+
81
+ 若你在部署 Logto 过程中遇到问题,可以参考以下常见问题:
82
+
83
+ - `Only roles with the xxx attribute may create roles`:
84
+ 请检查你的数据库用户权限,确保你的 Logto 数据库中的用户具有 `admin` 角色,以便创建角色。
85
+
86
+ - 在第三方数据库例如 `Neon` 上执行`logto db seed`出错:
87
+ 尝试使用`logto db seed --encrypt-base-role`命令。
88
+
89
+ - 数据库播种失败:
90
+ 请尝试使用`--skip-seed`参数跳过播种。
91
+
92
+ - `Error: role xxx already exists`:
93
+ 在数据库中删除已存在的角色即可。
94
+
95
+ - 版本升级后,数据库迁移失败:
96
+ 请尝试使用` npx @logto/cli db alteration deploy $version`命令(例如`npx @logto/cli db alteration deploy 1.22.0`)
97
+
98
+ - 我使用 docker 部署 希望一键升级:
99
+ 在容器中执行自定义命令:`sh -c "npm run cli db seed -- --swe --encrypt-base-role" && npx @logto/cli db alteration deploy $version && npm start`
100
+
79
101
  <Callout type={'info'}>部署成功后,用户将可以通过 Logto 身份认证并使用 LobeChat。</Callout>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.36.43",
3
+ "version": "1.36.45",
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",
@@ -4,6 +4,16 @@ import { ModelProviderCard } from '@/types/llm';
4
4
  // https://github.com/marketplace/models
5
5
  const Github: ModelProviderCard = {
6
6
  chatModels: [
7
+ {
8
+ description: '专注于高级推理和解决复杂问题,包括数学和科学任务。非常适合需要深入上下文理解和代理工作流程的应用程序。',
9
+ displayName: 'OpenAI o1',
10
+ enabled: true,
11
+ functionCall: false,
12
+ id: 'o1',
13
+ maxOutput: 100_000,
14
+ tokens: 200_000,
15
+ vision: true,
16
+ },
7
17
  {
8
18
  description: '比 o1-preview 更小、更快,成本低80%,在代码生成和小上下文操作方面表现良好。',
9
19
  displayName: 'OpenAI o1-mini',
@@ -3,6 +3,23 @@ import { ModelProviderCard } from '@/types/llm';
3
3
  // ref: https://ai.google.dev/gemini-api/docs/models/gemini
4
4
  const Google: ModelProviderCard = {
5
5
  chatModels: [
6
+ {
7
+ description:
8
+ 'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
9
+ displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
10
+ enabled: true,
11
+ functionCall: true,
12
+ id: 'gemini-2.0-flash-thinking-exp-1219',
13
+ maxOutput: 8192,
14
+ pricing: {
15
+ cachedInput: 0,
16
+ input: 0,
17
+ output: 0,
18
+ },
19
+ releasedAt: '2024-12-19',
20
+ tokens: 32_767 + 8192,
21
+ vision: true,
22
+ },
6
23
  {
7
24
  description:
8
25
  'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',