@lobehub/chat 1.49.13 → 1.49.14
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 +25 -0
- package/Dockerfile +3 -1
- package/Dockerfile.database +3 -1
- package/changelog/v1.json +9 -0
- package/package.json +1 -1
- package/src/server/routers/lambda/aiProvider.ts +2 -1
- package/src/types/aiProvider.ts +2 -2
package/CHANGELOG.md
CHANGED
@@ -2,6 +2,31 @@
|
|
2
2
|
|
3
3
|
# Changelog
|
4
4
|
|
5
|
+
### [Version 1.49.14](https://github.com/lobehub/lobe-chat/compare/v1.49.13...v1.49.14)
|
6
|
+
|
7
|
+
<sup>Released on **2025-02-03**</sup>
|
8
|
+
|
9
|
+
#### 🐛 Bug Fixes
|
10
|
+
|
11
|
+
- **misc**: Fix provider update issue.
|
12
|
+
|
13
|
+
<br/>
|
14
|
+
|
15
|
+
<details>
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
17
|
+
|
18
|
+
#### What's fixed
|
19
|
+
|
20
|
+
- **misc**: Fix provider update issue, closes [#5676](https://github.com/lobehub/lobe-chat/issues/5676) ([e5d81ea](https://github.com/lobehub/lobe-chat/commit/e5d81ea))
|
21
|
+
|
22
|
+
</details>
|
23
|
+
|
24
|
+
<div align="right">
|
25
|
+
|
26
|
+
[](#readme-top)
|
27
|
+
|
28
|
+
</div>
|
29
|
+
|
5
30
|
### [Version 1.49.13](https://github.com/lobehub/lobe-chat/compare/v1.49.12...v1.49.13)
|
6
31
|
|
7
32
|
<sup>Released on **2025-02-03**</sup>
|
package/Dockerfile
CHANGED
@@ -79,10 +79,12 @@ RUN \
|
|
79
79
|
fi \
|
80
80
|
# Set the registry for corepack
|
81
81
|
&& export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
|
82
|
+
# Update corepack to latest (nodejs/corepack#612)
|
83
|
+
&& npm i -g corepack@latest \
|
82
84
|
# Enable corepack
|
83
85
|
&& corepack enable \
|
84
86
|
# Use pnpm for corepack
|
85
|
-
&& corepack use
|
87
|
+
&& corepack use $(sed -n 's/.*"packageManager": "\(.*\)".*/\1/p' package.json) \
|
86
88
|
# Install the dependencies
|
87
89
|
&& pnpm i \
|
88
90
|
# Add sharp dependencies
|
package/Dockerfile.database
CHANGED
@@ -86,10 +86,12 @@ RUN \
|
|
86
86
|
fi \
|
87
87
|
# Set the registry for corepack
|
88
88
|
&& export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
|
89
|
+
# Update corepack to latest (nodejs/corepack#612)
|
90
|
+
&& npm i -g corepack@latest \
|
89
91
|
# Enable corepack
|
90
92
|
&& corepack enable \
|
91
93
|
# Use pnpm for corepack
|
92
|
-
&& corepack use
|
94
|
+
&& corepack use $(sed -n 's/.*"packageManager": "\(.*\)".*/\1/p' package.json) \
|
93
95
|
# Install the dependencies
|
94
96
|
&& pnpm i \
|
95
97
|
# Add sharp and db migration dependencies
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.49.
|
3
|
+
"version": "1.49.14",
|
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",
|
@@ -12,6 +12,7 @@ import {
|
|
12
12
|
AiProviderRuntimeState,
|
13
13
|
CreateAiProviderSchema,
|
14
14
|
UpdateAiProviderConfigSchema,
|
15
|
+
UpdateAiProviderSchema,
|
15
16
|
} from '@/types/aiProvider';
|
16
17
|
import { ProviderConfig } from '@/types/user/settings';
|
17
18
|
|
@@ -82,7 +83,7 @@ export const aiProviderRouter = router({
|
|
82
83
|
.input(
|
83
84
|
z.object({
|
84
85
|
id: z.string(),
|
85
|
-
value:
|
86
|
+
value: UpdateAiProviderSchema,
|
86
87
|
}),
|
87
88
|
)
|
88
89
|
.mutation(async ({ input, ctx }) => {
|
package/src/types/aiProvider.ts
CHANGED
@@ -159,8 +159,8 @@ export interface AiProviderDetailItem {
|
|
159
159
|
// Update
|
160
160
|
export const UpdateAiProviderSchema = z.object({
|
161
161
|
config: z.object({}).passthrough().optional(),
|
162
|
-
description: z.string().optional(),
|
163
|
-
logo: z.string().optional(),
|
162
|
+
description: z.string().nullable().optional(),
|
163
|
+
logo: z.string().nullable().optional(),
|
164
164
|
name: z.string(),
|
165
165
|
sdkType: z.enum(['openai', 'anthropic']).optional(),
|
166
166
|
});
|