@lobehub/chat 1.10.0 → 1.11.0

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,48 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ## [Version 1.11.0](https://github.com/lobehub/lobe-chat/compare/v1.10.1...v1.11.0)
6
+
7
+ <sup>Released on **2024-08-14**</sup>
8
+
9
+ #### ✨ Features
10
+
11
+ - **misc**: Add 2 new models to openai provider.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's improved
19
+
20
+ - **misc**: Add 2 new models to openai provider, closes [#3470](https://github.com/lobehub/lobe-chat/issues/3470) ([cc9ffdd](https://github.com/lobehub/lobe-chat/commit/cc9ffdd))
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.10.1](https://github.com/lobehub/lobe-chat/compare/v1.10.0...v1.10.1)
31
+
32
+ <sup>Released on **2024-08-14**</sup>
33
+
34
+ <br/>
35
+
36
+ <details>
37
+ <summary><kbd>Improvements and Fixes</kbd></summary>
38
+
39
+ </details>
40
+
41
+ <div align="right">
42
+
43
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#readme-top)
44
+
45
+ </div>
46
+
5
47
  ## [Version 1.10.0](https://github.com/lobehub/lobe-chat/compare/v1.9.8...v1.10.0)
6
48
 
7
49
  <sup>Released on **2024-08-14**</sup>
package/Dockerfile CHANGED
@@ -8,9 +8,9 @@ RUN \
8
8
  if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
9
9
  sed -i "s/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g" "/etc/apk/repositories"; \
10
10
  fi \
11
- # Add proxychains-ng package & update base package
11
+ # Add required package & update base package
12
12
  && apk update \
13
- && apk add --no-cache proxychains-ng \
13
+ && apk add --no-cache bind-tools proxychains-ng \
14
14
  && apk upgrade --no-cache \
15
15
  # Add user nextjs to run the app
16
16
  && addgroup --system --gid 1001 nodejs \
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.10.0",
3
+ "version": "1.11.0",
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",
@@ -24,10 +24,27 @@ const OpenAI: ModelProviderCard = {
24
24
  tokens: 128_000,
25
25
  vision: true,
26
26
  },
27
+ {
28
+ description: 'Latest GPT-4o snapshot that supports Structured Outputs',
29
+ displayName: 'GPT-4o (240806)',
30
+ enabled: true,
31
+ functionCall: true,
32
+ id: 'gpt-4o-2024-08-06',
33
+ tokens: 128_000,
34
+ vision: true,
35
+ },
36
+ {
37
+ description: 'Dynamic model continuously updated to the current version of GPT-4o in ChatGPT',
38
+ displayName: 'ChatGPT-4o',
39
+ enabled: true,
40
+ functionCall: true,
41
+ id: 'chatgpt-4o-latest',
42
+ tokens: 128_000,
43
+ vision: true,
44
+ },
27
45
  {
28
46
  description: 'GPT-4 Turbo with Vision',
29
47
  displayName: 'GPT-4 Turbo',
30
- enabled: true,
31
48
  functionCall: true,
32
49
  id: 'gpt-4-turbo',
33
50
  tokens: 128_000,
@@ -49,7 +49,7 @@ describe('modelProviderSelectors', () => {
49
49
  const s = merge(initialState, {}) as unknown as UserStore;
50
50
 
51
51
  const result = modelProviderSelectors.getDefaultEnabledModelsById('openai')(s);
52
- expect(result).toEqual(['gpt-4o-mini', 'gpt-4o', 'gpt-4-turbo']);
52
+ expect(result).toEqual(['gpt-4o-mini', 'gpt-4o', 'gpt-4o-2024-08-06', 'chatgpt-4o-latest']);
53
53
  });
54
54
 
55
55
  it('should return undefined for a non-existing provider', () => {