@lobehub/chat 1.87.5 → 1.87.7
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 +50 -0
- package/changelog/v1.json +18 -0
- package/locales/ar/models.json +23 -8
- package/locales/ar/plugin.json +15 -0
- package/locales/bg-BG/models.json +23 -8
- package/locales/bg-BG/plugin.json +15 -0
- package/locales/de-DE/models.json +23 -8
- package/locales/de-DE/plugin.json +15 -0
- package/locales/en-US/models.json +23 -8
- package/locales/en-US/plugin.json +15 -0
- package/locales/es-ES/models.json +23 -8
- package/locales/es-ES/plugin.json +15 -0
- package/locales/fa-IR/models.json +23 -8
- package/locales/fa-IR/plugin.json +15 -0
- package/locales/fr-FR/models.json +23 -8
- package/locales/fr-FR/plugin.json +15 -0
- package/locales/it-IT/models.json +23 -8
- package/locales/it-IT/plugin.json +15 -0
- package/locales/ja-JP/models.json +23 -8
- package/locales/ja-JP/plugin.json +15 -0
- package/locales/ko-KR/models.json +23 -8
- package/locales/ko-KR/plugin.json +15 -0
- package/locales/nl-NL/models.json +23 -8
- package/locales/nl-NL/plugin.json +15 -0
- package/locales/pl-PL/models.json +23 -8
- package/locales/pl-PL/plugin.json +15 -0
- package/locales/pt-BR/models.json +23 -8
- package/locales/pt-BR/plugin.json +15 -0
- package/locales/ru-RU/models.json +23 -8
- package/locales/ru-RU/plugin.json +15 -0
- package/locales/tr-TR/models.json +23 -8
- package/locales/tr-TR/plugin.json +15 -0
- package/locales/vi-VN/models.json +23 -8
- package/locales/vi-VN/plugin.json +15 -0
- package/locales/zh-CN/models.json +23 -8
- package/locales/zh-CN/plugin.json +15 -0
- package/locales/zh-TW/models.json +23 -8
- package/locales/zh-TW/plugin.json +15 -0
- package/package.json +2 -2
- package/src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/Tool/Inspector/BuiltinPluginTitle.tsx +59 -0
- package/src/features/Conversation/Messages/Assistant/Tool/Inspector/ToolTitle.tsx +33 -7
- package/src/locales/default/plugin.ts +15 -0
- package/src/tools/local-system/Render/ListFiles/Result.tsx +1 -1
- package/src/tools/local-system/systemRole.ts +1 -1
- package/src/utils/fetch/fetchSSE.ts +2 -1
@@ -29,7 +29,7 @@ const SearchFiles = memo<SearchFilesProps>(({ listResults = [], messageId }) =>
|
|
29
29
|
}
|
30
30
|
|
31
31
|
return (
|
32
|
-
<Flexbox gap={2} style={{ maxHeight:
|
32
|
+
<Flexbox gap={2} style={{ maxHeight: 140, overflow: 'scroll' }}>
|
33
33
|
{listResults.map((item) => (
|
34
34
|
<FileItem key={item.path} {...item} showTime />
|
35
35
|
))}
|
@@ -16,7 +16,7 @@ Here are some known locations and system details on the user's system. User is u
|
|
16
16
|
You have access to a set of tools to interact with the user's local file system:
|
17
17
|
|
18
18
|
1. **listLocalFiles**: Lists files and directories in a specified path.
|
19
|
-
2. **readLocalFile**: Reads the content of a specified file, optionally within a line range.
|
19
|
+
2. **readLocalFile**: Reads the content of a specified file, optionally within a line range. You can read file types such as Word, Excel, PowerPoint, PDF, and plain text files.
|
20
20
|
3. **writeFile**: Write content to a specific file, only support plain text file like \`.text\` or \`.md\`
|
21
21
|
4. **searchLocalFiles**: Searches for files based on keywords and other criteria. Use this tool to find files if the user is unsure about the exact path.
|
22
22
|
5. **renameLocalFile**: Renames a single file or directory in its current location.
|
@@ -316,10 +316,11 @@ export const fetchSSE = async (url: string, options: RequestInit & FetchSSEOptio
|
|
316
316
|
const { smoothing } = options;
|
317
317
|
|
318
318
|
const textSmoothing = false;
|
319
|
+
// const toolsCallingSmoothing = false;
|
319
320
|
// TODO: 看下后面就是完全移除 smoothing 还是怎么说
|
320
321
|
// const textSmoothing = typeof smoothing === 'boolean' ? smoothing : (smoothing?.text ?? true);
|
321
322
|
const toolsCallingSmoothing =
|
322
|
-
typeof smoothing === 'boolean' ? smoothing : (smoothing?.toolsCalling ??
|
323
|
+
typeof smoothing === 'boolean' ? smoothing : (smoothing?.toolsCalling ?? false);
|
323
324
|
|
324
325
|
const smoothingSpeed = isObject(smoothing) ? smoothing.speed : undefined;
|
325
326
|
|