@lobehub/chat 1.15.8 → 1.15.9

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/.i18nrc.js CHANGED
@@ -24,7 +24,6 @@ module.exports = defineConfig({
24
24
  ],
25
25
  temperature: 0,
26
26
  modelName: 'gpt-4o-mini',
27
- splitToken: 2048,
28
27
  experimental: {
29
28
  jsonMode: true,
30
29
  },
package/CHANGELOG.md CHANGED
@@ -2,6 +2,31 @@
2
2
 
3
3
  # Changelog
4
4
 
5
+ ### [Version 1.15.9](https://github.com/lobehub/lobe-chat/compare/v1.15.8...v1.15.9)
6
+
7
+ <sup>Released on **2024-09-03**</sup>
8
+
9
+ #### 🐛 Bug Fixes
10
+
11
+ - **misc**: Fix speed and rag prompt.
12
+
13
+ <br/>
14
+
15
+ <details>
16
+ <summary><kbd>Improvements and Fixes</kbd></summary>
17
+
18
+ #### What's fixed
19
+
20
+ - **misc**: Fix speed and rag prompt, closes [#3751](https://github.com/lobehub/lobe-chat/issues/3751) ([dce200c](https://github.com/lobehub/lobe-chat/commit/dce200c))
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
+
5
30
  ### [Version 1.15.8](https://github.com/lobehub/lobe-chat/compare/v1.15.7...v1.15.8)
6
31
 
7
32
  <sup>Released on **2024-09-03**</sup>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.15.8",
3
+ "version": "1.15.9",
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",
@@ -11,7 +11,7 @@ export const chainAnswerWithContext = ({
11
11
  }): Partial<ChatStreamPayload> => ({
12
12
  messages: [
13
13
  {
14
- content: `You are a helpful assistant good answering questions related to ${knowledge.join('/')}. And you'll be provided with a question and several passages that might be relevant. And your task is to provide answer based on the question and passages.
14
+ content: `You are aslo a helpful assistant good answering questions related to ${knowledge.join('/')}. And you'll be provided with a question and several passages that might be relevant. And currently your task is to provide answer based on the question and passages.
15
15
 
16
16
  Note that passages might not be relevant to the question, please only use the passages that are relevant. Or if there is no relevant passage, please answer using your knowledge.
17
17
 
@@ -21,13 +21,12 @@ The provided passages as context:
21
21
 
22
22
  <Context>
23
23
  ${context.join('\n')}
24
- </Context>`,
25
- role: 'system',
26
- },
27
- {
28
- content: `The question to answer:
24
+ </Context>
25
+
26
+ The question to answer is:
29
27
 
30
- ${question}`,
28
+ ${question}
29
+ `,
31
30
  role: 'user',
32
31
  },
33
32
  ],
@@ -35,7 +35,7 @@ class UploadService {
35
35
  // so make it as 99.9 and let users think it's still uploading
36
36
  progress: progress === 100 ? 99.9 : progress,
37
37
  restTime: (event.total - event.loaded) / speedInByte,
38
- speed: speedInByte / 1024,
38
+ speed: speedInByte,
39
39
  });
40
40
  }
41
41
  });
@@ -9,7 +9,7 @@ export interface FileUploadState {
9
9
  */
10
10
  restTime: number;
11
11
  /**
12
- * upload speed in KB/s
12
+ * upload speed in Byte/s
13
13
  */
14
14
  speed: number;
15
15
  }