@lobehub/chat 1.21.1 → 1.21.3

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.21.3](https://github.com/lobehub/lobe-chat/compare/v1.21.2...v1.21.3)
6
+
7
+ <sup>Released on **2024-10-01**</sup>
8
+
9
+ #### ♻ Code Refactoring
10
+
11
+ - **misc**: Move most `/api` to `/webapi`.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### Code refactoring
19
+
20
+ - **misc**: Move most `/api` to `/webapi`, closes [#4233](https://github.com/lobehub/lobe-chat/issues/4233) ([542c359](https://github.com/lobehub/lobe-chat/commit/542c359))
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.21.2](https://github.com/lobehub/lobe-chat/compare/v1.21.1...v1.21.2)
31
+
32
+ <sup>Released on **2024-10-01**</sup>
33
+
34
+ #### 💄 Styles
35
+
36
+ - **misc**: Adjust Wenxin icon size.
37
+
38
+ <br/>
39
+
40
+ <details>
41
+ <summary><kbd>Improvements and Fixes</kbd></summary>
42
+
43
+ #### Styles
44
+
45
+ - **misc**: Adjust Wenxin icon size, closes [#4229](https://github.com/lobehub/lobe-chat/issues/4229) ([6ae79ce](https://github.com/lobehub/lobe-chat/commit/6ae79ce))
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.21.1](https://github.com/lobehub/lobe-chat/compare/v1.21.0...v1.21.1)
6
56
 
7
57
  <sup>Released on **2024-09-30**</sup>
package/Dockerfile CHANGED
@@ -113,7 +113,7 @@ FROM scratch
113
113
  COPY --from=app / /
114
114
 
115
115
  ENV NODE_ENV="production" \
116
- NODE_OPTIONS="--use-openssl-ca" \
116
+ NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
117
117
  NODE_EXTRA_CA_CERTS="" \
118
118
  NODE_TLS_REJECT_UNAUTHORIZED="" \
119
119
  SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
@@ -126,7 +126,7 @@ FROM scratch
126
126
  COPY --from=app / /
127
127
 
128
128
  ENV NODE_ENV="production" \
129
- NODE_OPTIONS="--use-openssl-ca" \
129
+ NODE_OPTIONS="--dns-result-order=ipv4first --use-openssl-ca" \
130
130
  NODE_EXTRA_CA_CERTS="" \
131
131
  NODE_TLS_REJECT_UNAUTHORIZED="" \
132
132
  SSL_CERT_DIR="/etc/ssl/certs/ca-certificates.crt"
package/README.md CHANGED
@@ -287,12 +287,12 @@ Our marketplace is not just a showcase platform but also a collaborative space.
287
287
 
288
288
  | Recent Submits | Description |
289
289
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
290
+ | [C++/Qt](https://chat-preview.lobehub.com/market?agent=qt-c)<br/><sup>By **[liangyuR](https://github.com/liangyuR)** on **2024-09-30**</sup> | Excels in teaching C++/Qt coding practices<br/>`c` `qt` |
290
291
  | [Birthday Invitation Messages](https://chat-preview.lobehub.com/market?agent=birthday-invitation-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Specializes in crafting engaging and personalized Birthday Invitation messages, catering to various themes and tones.<br/>`message-composition` `personalization` `tone-versatility` `event-detail-integration` `interaction-approach` |
291
292
  | [Death Anniversary Messages](https://chat-preview.lobehub.com/market?agent=death-anniversary-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Specializes in crafting sensitive and heartfelt Death Anniversary messages with compassion and empathy.<br/>`condolences` `message-composition` `grief-support` `cultural-awareness` `emotional-sensitivity` |
292
293
  | [Flux Prompt Generator](https://chat-preview.lobehub.com/market?agent=flux-prompt-generator)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Flux Prompt Generation Assistant: Expert in crafting detailed, creative prompts for high-quality image outputs from the Flux model.<br/>`prompt-generation` `image-generation` `art-style` `creativity` `crafting` |
293
- | [God Bless You Messages](https://chat-preview.lobehub.com/market?agent=god-bless-you-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Expert in crafting personalized "God Bless You" messages with spiritual sensitivity and language mastery.<br/>`message-composition` `personalization` `spiritual-sensitivity` `language-mastery` `interaction-approach` |
294
294
 
295
- > 📊 Total agents: [<kbd>**403**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
295
+ > 📊 Total agents: [<kbd>**404**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
296
296
 
297
297
  <!-- AGENT LIST -->
298
298
 
package/README.zh-CN.md CHANGED
@@ -275,12 +275,12 @@ LobeChat 的插件生态系统是其核心功能的重要扩展,它极大地
275
275
 
276
276
  | 最近新增 | 助手说明 |
277
277
  | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
278
+ | [C++/Qt](https://chat-preview.lobehub.com/market?agent=qt-c)<br/><sup>By **[liangyuR](https://github.com/liangyuR)** on **2024-09-30**</sup> | 擅长教授 C++/Qt 编程实践<br/>`c` `qt` |
278
279
  | [生日邀请信息](https://chat-preview.lobehub.com/market?agent=birthday-invitation-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 专注于制作引人入胜和个性化的生日邀请信息,适应各种主题和语气。<br/>`信息构成` `个性化` `语气多样性` `活动细节整合` `互动方式` |
279
280
  | [忌日信息](https://chat-preview.lobehub.com/market?agent=death-anniversary-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 专注于以同情和共情的方式撰写敏感且发自内心的忌日信息。<br/>`慰问` `信息撰写` `悲伤支持` `文化意识` `情感敏感性` |
280
281
  | [Flux 提示生成器](https://chat-preview.lobehub.com/market?agent=flux-prompt-generator)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | Flux 提示生成助手:专注于为 Flux 模型生成高质量图像输出而创作详细、创意提示的专家。<br/>`提示生成` `图像生成` `艺术风格` `创意` `创作` |
281
- | [上帝保佑你的信息](https://chat-preview.lobehub.com/market?agent=god-bless-you-message)<br/><sup>By **[tcmonster](https://github.com/tcmonster)** on **2024-09-29**</sup> | 擅长以灵性敏感和语言掌握来创作个性化的 “上帝保佑你” 信息。<br/>`信息创作` `个性化` `灵性敏感` `语言掌握` `互动方式` |
282
282
 
283
- > 📊 Total agents: [<kbd>**403**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
283
+ > 📊 Total agents: [<kbd>**404**</kbd> ](https://github.com/lobehub/lobe-chat-agents)
284
284
 
285
285
  <!-- AGENT LIST -->
286
286
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.21.1",
3
+ "version": "1.21.3",
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",
@@ -1,6 +1,5 @@
1
1
  'use client';
2
2
 
3
- import { Wenxin } from '@lobehub/icons';
4
3
  import { Input } from 'antd';
5
4
  import { useTranslation } from 'react-i18next';
6
5
 
@@ -41,6 +40,5 @@ export const useWenxinProvider = (): ProviderItem => {
41
40
  name: [KeyVaultsConfigKey, providerKey, 'secretKey'],
42
41
  },
43
42
  ],
44
- title: <Wenxin.Combine size={32} type={'color'} />,
45
43
  };
46
44
  };
@@ -33,7 +33,7 @@ describe('AssistantService', () => {
33
33
 
34
34
  // Assert
35
35
  expect(globalHelpers.getCurrentLanguage).toHaveBeenCalled();
36
- expect(fetch).toHaveBeenCalledWith('/api/assistant/store?locale=tt');
36
+ expect(fetch).toHaveBeenCalledWith('/webapi/assistant/store?locale=tt');
37
37
  expect(assistantList).toEqual(fakeResponse.agents);
38
38
  });
39
39
 
@@ -63,7 +63,7 @@ describe('AssistantService', () => {
63
63
 
64
64
  // Assert
65
65
  expect(globalHelpers.getCurrentLanguage).toHaveBeenCalled();
66
- expect(fetch).toHaveBeenCalledWith('/api/assistant/test-assisstant?locale=tt');
66
+ expect(fetch).toHaveBeenCalledWith('/webapi/assistant/test-assisstant?locale=tt');
67
67
  expect(assistant.identifier).toEqual(fakeResponse.identifier);
68
68
  });
69
69
 
@@ -35,7 +35,7 @@ describe('ToolService', () => {
35
35
 
36
36
  // Assert
37
37
  expect(globalHelpers.getCurrentLanguage).toHaveBeenCalled();
38
- expect(fetch).toHaveBeenCalledWith('/api/plugin/store?locale=tt');
38
+ expect(fetch).toHaveBeenCalledWith('/webapi/plugin/store?locale=tt');
39
39
  expect(pluginList).toEqual(fakeResponse.plugins);
40
40
  });
41
41
 
@@ -17,26 +17,26 @@ const mapWithBasePath = <T extends object>(apis: T): T => {
17
17
  };
18
18
 
19
19
  export const API_ENDPOINTS = mapWithBasePath({
20
- proxy: '/webapi/proxy',
20
+ // chat
21
+ chat: (provider: string) => withBasePath(`/api/chat/${provider}`),
22
+ chatModels: (provider: string) => withBasePath(`/api/chat/models/${provider}`),
21
23
  oauth: '/api/auth',
22
24
 
23
- // agent markets
24
- assistantStore: '/api/assistant/store',
25
- assistant: (identifier: string) => withBasePath(`/api/assistant/${identifier}`),
25
+ proxy: '/webapi/proxy',
26
+
27
+ // assistant
28
+ assistantStore: '/webapi/assistant/store',
29
+ assistant: (identifier: string) => withBasePath(`/webapi/assistant/${identifier}`),
26
30
 
27
31
  // plugins
28
- gateway: '/api/plugin/gateway',
29
- pluginStore: '/api/plugin/store',
30
-
31
- // chat
32
- chat: (provider: string) => withBasePath(`/api/chat/${provider}`),
33
- chatModels: (provider: string) => withBasePath(`/api/chat/models/${provider}`),
32
+ gateway: '/webapi/plugin/gateway',
33
+ pluginStore: '/webapi/plugin/store',
34
34
 
35
35
  // trace
36
- trace: '/api/trace',
36
+ trace: '/webapi/trace',
37
37
 
38
38
  // image
39
- images: '/api/text-to-image/openai',
39
+ images: '/webapi/api/text-to-image/openai',
40
40
 
41
41
  // STT
42
42
  stt: '/webapi/stt/openai',
File without changes
File without changes
File without changes
File without changes