@lobehub/chat 1.35.14 → 1.36.1

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,64 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.36.1](https://github.com/lobehub/lobe-chat/compare/v1.36.0...v1.36.1)
6
+
7
+ <sup>Released on **2024-12-07**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Remove proxy url settings for NextAuth.
12
+
13
+ #### 💄 Styles
14
+
15
+ - **misc**: Add gemini-exp-1206 model.
16
+
17
+ <br/>
18
+
19
+ <details>
20
+ <summary><kbd>Improvements and Fixes</kbd></summary>
21
+
22
+ #### Code refactoring
23
+
24
+ - **misc**: Remove proxy url settings for NextAuth, closes [#4826](https://github.com/lobehub/lobe-chat/issues/4826) ([a502c17](https://github.com/lobehub/lobe-chat/commit/a502c17))
25
+
26
+ #### Styles
27
+
28
+ - **misc**: Add gemini-exp-1206 model, closes [#4909](https://github.com/lobehub/lobe-chat/issues/4909) ([9ff2c03](https://github.com/lobehub/lobe-chat/commit/9ff2c03))
29
+
30
+ </details>
31
+
32
+ <div align="right">
33
+
34
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
35
+
36
+ </div>
37
+
38
+ ## [Version 1.36.0](https://github.com/lobehub/lobe-chat/compare/v1.35.14...v1.36.0)
39
+
40
+ <sup>Released on **2024-12-06**</sup>
41
+
42
+ #### ✨ Features
43
+
44
+ - **misc**: Add Higress ai model provider.
45
+
46
+ <br/>
47
+
48
+ <details>
49
+ <summary><kbd>Improvements and Fixes</kbd></summary>
50
+
51
+ #### What's improved
52
+
53
+ - **misc**: Add Higress ai model provider, closes [#4755](https://github.com/lobehub/lobe-chat/issues/4755) ([835bbf6](https://github.com/lobehub/lobe-chat/commit/835bbf6))
54
+
55
+ </details>
56
+
57
+ <div align="right">
58
+
59
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
60
+
61
+ </div>
62
+
5
63
  ### [Version 1.35.14](https://github.com/lobehub/lobe-chat/compare/v1.35.13...v1.35.14)
6
64
 
7
65
  <sup>Released on **2024-12-06**</sup>
package/Dockerfile CHANGED
@@ -211,7 +211,9 @@ ENV \
211
211
  # 01.AI
212
212
  ZEROONE_API_KEY="" ZEROONE_MODEL_LIST="" \
213
213
  # Zhipu
214
- ZHIPU_API_KEY="" ZHIPU_MODEL_LIST=""
214
+ ZHIPU_API_KEY="" ZHIPU_MODEL_LIST="" \
215
+ # Higress
216
+ HIGRESS_API_KEY="" HIGRESS_MODEL_LIST=""
215
217
 
216
218
  USER nextjs
217
219
 
package/changelog/v1.json CHANGED
@@ -1,4 +1,22 @@
1
1
  [
2
+ {
3
+ "children": {
4
+ "improvements": [
5
+ "Add gemini-exp-1206 model."
6
+ ]
7
+ },
8
+ "date": "2024-12-07",
9
+ "version": "1.36.1"
10
+ },
11
+ {
12
+ "children": {
13
+ "features": [
14
+ "Add Higress ai model provider."
15
+ ]
16
+ },
17
+ "date": "2024-12-06",
18
+ "version": "1.36.0"
19
+ },
2
20
  {
3
21
  "children": {
4
22
  "improvements": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.35.14",
3
+ "version": "1.36.1",
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",
@@ -10,6 +10,7 @@ import {
10
10
  GiteeAIProviderCard,
11
11
  GoogleProviderCard,
12
12
  GroqProviderCard,
13
+ HigressProviderCard,
13
14
  HunyuanProviderCard,
14
15
  InternLMProviderCard,
15
16
  MinimaxProviderCard,
@@ -38,8 +39,8 @@ import { useGithubProvider } from './Github';
38
39
  import { useHuggingFaceProvider } from './HuggingFace';
39
40
  import { useOllamaProvider } from './Ollama';
40
41
  import { useOpenAIProvider } from './OpenAI';
41
- import { useWenxinProvider } from './Wenxin';
42
42
  import { useSenseNovaProvider } from './SenseNova';
43
+ import { useWenxinProvider } from './Wenxin';
43
44
 
44
45
  export const useProviderList = (): ProviderItem[] => {
45
46
  const AzureProvider = useAzureProvider();
@@ -89,6 +90,7 @@ export const useProviderList = (): ProviderItem[] => {
89
90
  TaichuProviderCard,
90
91
  InternLMProviderCard,
91
92
  SiliconCloudProviderCard,
93
+ HigressProviderCard,
92
94
  GiteeAIProviderCard,
93
95
  ],
94
96
  [
@@ -16,6 +16,8 @@ declare global {
16
16
 
17
17
  NEXT_AUTH_SSO_PROVIDERS?: string;
18
18
 
19
+ NEXT_AUTH_DEBUG?: string;
20
+
19
21
  AUTH0_CLIENT_ID?: string;
20
22
  AUTH0_CLIENT_SECRET?: string;
21
23
  AUTH0_ISSUER?: string;
@@ -156,6 +158,7 @@ export const getAuthConfig = () => {
156
158
  // NEXT-AUTH
157
159
  NEXT_AUTH_SECRET: z.string().optional(),
158
160
  NEXT_AUTH_SSO_PROVIDERS: z.string().optional().default('auth0'),
161
+ NEXT_AUTH_DEBUG: z.boolean().optional().default(false),
159
162
 
160
163
  // Auth0
161
164
  AUTH0_CLIENT_ID: z.string().optional(),
@@ -217,6 +220,7 @@ export const getAuthConfig = () => {
217
220
  NEXT_PUBLIC_ENABLE_NEXT_AUTH: !!process.env.NEXT_AUTH_SECRET,
218
221
  NEXT_AUTH_SSO_PROVIDERS: process.env.NEXT_AUTH_SSO_PROVIDERS,
219
222
  NEXT_AUTH_SECRET: process.env.NEXT_AUTH_SECRET,
223
+ NEXT_AUTH_DEBUG: !!process.env.NEXT_AUTH_DEBUG,
220
224
 
221
225
  // Auth0
222
226
  AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
package/src/config/llm.ts CHANGED
@@ -121,6 +121,9 @@ export const getLLMConfig = () => {
121
121
 
122
122
  ENABLED_INTERNLM: z.boolean(),
123
123
  INTERNLM_API_KEY: z.string().optional(),
124
+
125
+ ENABLED_HIGRESS: z.boolean(),
126
+ HIGRESS_API_KEY: z.string().optional(),
124
127
  },
125
128
  runtimeEnv: {
126
129
  API_KEY_SELECT_MODE: process.env.API_KEY_SELECT_MODE,
@@ -231,7 +234,8 @@ export const getLLMConfig = () => {
231
234
  ENABLED_HUGGINGFACE: !!process.env.HUGGINGFACE_API_KEY,
232
235
  HUGGINGFACE_API_KEY: process.env.HUGGINGFACE_API_KEY,
233
236
 
234
- ENABLED_SENSENOVA: !!process.env.SENSENOVA_ACCESS_KEY_ID && !!process.env.SENSENOVA_ACCESS_KEY_SECRET,
237
+ ENABLED_SENSENOVA:
238
+ !!process.env.SENSENOVA_ACCESS_KEY_ID && !!process.env.SENSENOVA_ACCESS_KEY_SECRET,
235
239
  SENSENOVA_ACCESS_KEY_ID: process.env.SENSENOVA_ACCESS_KEY_ID,
236
240
  SENSENOVA_ACCESS_KEY_SECRET: process.env.SENSENOVA_ACCESS_KEY_SECRET,
237
241
 
@@ -240,6 +244,9 @@ export const getLLMConfig = () => {
240
244
 
241
245
  ENABLED_INTERNLM: !!process.env.INTERNLM_API_KEY,
242
246
  INTERNLM_API_KEY: process.env.INTERNLM_API_KEY,
247
+
248
+ ENABLED_HIGRESS: !!process.env.HIGRESS_API_KEY,
249
+ HIGRESS_API_KEY: process.env.HIGRESS_API_KEY,
243
250
  },
244
251
  });
245
252
  };
@@ -5,10 +5,26 @@ const Google: ModelProviderCard = {
5
5
  chatModels: [
6
6
  {
7
7
  description:
8
- 'Gemini Exp 1121 是 Google 最新的实验性多模态AI模型,拥有改进的编码、推理和视觉能力。',
9
- displayName: 'Gemini Experimental 1121',
8
+ 'Gemini Exp 1206 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升。',
9
+ displayName: 'Gemini Experimental 1206',
10
10
  enabled: true,
11
11
  functionCall: true,
12
+ id: 'gemini-exp-1206',
13
+ maxOutput: 8192,
14
+ pricing: {
15
+ cachedInput: 0,
16
+ input: 0,
17
+ output: 0,
18
+ },
19
+ releasedAt: '2024-12-06',
20
+ tokens: 2_097_152 + 8192,
21
+ vision: true,
22
+ },
23
+ {
24
+ description:
25
+ 'Gemini Exp 1121 是 Google 的实验性多模态AI模型,拥有改进的编码、推理和视觉能力。',
26
+ displayName: 'Gemini Experimental 1121',
27
+ functionCall: true,
12
28
  id: 'gemini-exp-1121',
13
29
  maxOutput: 8192,
14
30
  pricing: {