@lobehub/chat 1.25.0 β†’ 1.25.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,56 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.25.2](https://github.com/lobehub/lobe-chat/compare/v1.25.1...v1.25.2)
6
+
7
+ <sup>Released on **2024-10-27**</sup>
8
+
9
+ #### πŸ’„ Styles
10
+
11
+ - **misc**: Update stepfun models.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Styles
19
+
20
+ - **misc**: Update stepfun models, closes [#4512](https://github.com/lobehub/lobe-chat/issues/4512) ([4a26d8a](https://github.com/lobehub/lobe-chat/commit/4a26d8a))
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.25.1](https://github.com/lobehub/lobe-chat/compare/v1.25.0...v1.25.1)
31
+
32
+ <sup>Released on **2024-10-26**</sup>
33
+
34
+ #### πŸ› Bug Fixes
35
+
36
+ - **misc**: Fix `modelList` merge.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### What's fixed
44
+
45
+ - **misc**: Fix `modelList` merge, closes [#4491](https://github.com/lobehub/lobe-chat/issues/4491) ([ea422d8](https://github.com/lobehub/lobe-chat/commit/ea422d8))
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.25.0](https://github.com/lobehub/lobe-chat/compare/v1.24.2...v1.25.0)
6
56
 
7
57
  <sup>Released on **2024-10-26**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.25.0",
3
+ "version": "1.25.2",
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",
@@ -102,7 +102,7 @@
102
102
  "dependencies": {
103
103
  "@ant-design/icons": "^5.5.1",
104
104
  "@ant-design/pro-components": "^2.7.18",
105
- "@anthropic-ai/sdk": "^0.29.2",
105
+ "@anthropic-ai/sdk": "^0.30.0",
106
106
  "@auth/core": "^0.34.2",
107
107
  "@aws-sdk/client-bedrock-runtime": "^3.675.0",
108
108
  "@aws-sdk/client-s3": "^3.675.0",
@@ -111,9 +111,9 @@ const Stepfun: ModelProviderCard = {
111
111
  },
112
112
  {
113
113
  description: 'θ―₯ζ¨‘εž‹ζ‹₯ζœ‰εΌΊε€§ηš„θ§†ι’‘η†θ§£θƒ½εŠ›γ€‚',
114
- displayName: 'Step 1.5V Turbo',
114
+ displayName: 'Step 1.5V Mini',
115
115
  enabled: true,
116
- id: 'step-1.5v-turbo',
116
+ id: 'step-1.5v-mini',
117
117
  pricing: {
118
118
  currency: 'CNY',
119
119
  input: 8,
@@ -89,23 +89,10 @@ export const createModelListSlice: StateCreator<
89
89
  };
90
90
 
91
91
  const defaultModelProviderList = produce(DEFAULT_MODEL_PROVIDER_LIST, (draft) => {
92
- const openai = draft.find((d) => d.id === ModelProvider.OpenAI);
93
- if (openai) openai.chatModels = mergeModels('openai', openai.chatModels);
94
-
95
- const azure = draft.find((d) => d.id === ModelProvider.Azure);
96
- if (azure) azure.chatModels = mergeModels('azure', azure.chatModels);
97
-
98
- const ollama = draft.find((d) => d.id === ModelProvider.Ollama);
99
- if (ollama) ollama.chatModels = mergeModels('ollama', ollama.chatModels);
100
-
101
- const openrouter = draft.find((d) => d.id === ModelProvider.OpenRouter);
102
- if (openrouter) openrouter.chatModels = mergeModels('openrouter', openrouter.chatModels);
103
-
104
- const togetherai = draft.find((d) => d.id === ModelProvider.TogetherAI);
105
- if (togetherai) togetherai.chatModels = mergeModels('togetherai', togetherai.chatModels);
106
-
107
- const novita = draft.find((d) => d.id === ModelProvider.Novita);
108
- if (novita) novita.chatModels = mergeModels('novita', novita.chatModels);
92
+ Object.values(ModelProvider).forEach((id) =>{
93
+ const provider = draft.find((d) => d.id === id);
94
+ if (provider) provider.chatModels = mergeModels(id as any, provider.chatModels);
95
+ })
109
96
  });
110
97
 
111
98
  set({ defaultModelProviderList }, false, `refreshDefaultModelList - ${params?.trigger}`);