@lobehub/chat 1.36.0 → 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,39 @@
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
+
5
38
  ## [Version 1.36.0](https://github.com/lobehub/lobe-chat/compare/v1.35.14...v1.36.0)
6
39
 
7
40
  <sup>Released on **2024-12-06**</sup>
package/changelog/v1.json CHANGED
@@ -1,4 +1,13 @@
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
+ },
2
11
  {
3
12
  "children": {
4
13
  "features": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.36.0",
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",
@@ -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,
@@ -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: {
@@ -1,5 +1,4 @@
1
1
  import type { NextAuthConfig } from 'next-auth';
2
- import urlJoin from 'url-join';
3
2
 
4
3
  import { authEnv } from '@/config/auth';
5
4
 
@@ -40,8 +39,8 @@ export default {
40
39
  return session;
41
40
  },
42
41
  },
42
+ debug: authEnv.NEXT_AUTH_DEBUG,
43
43
  providers: initSSOProviders(),
44
- redirectProxyUrl: process.env.APP_URL ? urlJoin(process.env.APP_URL, '/api/auth') : undefined,
45
44
  secret: authEnv.NEXT_AUTH_SECRET,
46
45
  trustHost: process.env?.AUTH_TRUST_HOST ? process.env.AUTH_TRUST_HOST === 'true' : true,
47
46
  } satisfies NextAuthConfig;