@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.
Files changed (46) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/locales/ar/models.json +23 -8
  4. package/locales/ar/plugin.json +15 -0
  5. package/locales/bg-BG/models.json +23 -8
  6. package/locales/bg-BG/plugin.json +15 -0
  7. package/locales/de-DE/models.json +23 -8
  8. package/locales/de-DE/plugin.json +15 -0
  9. package/locales/en-US/models.json +23 -8
  10. package/locales/en-US/plugin.json +15 -0
  11. package/locales/es-ES/models.json +23 -8
  12. package/locales/es-ES/plugin.json +15 -0
  13. package/locales/fa-IR/models.json +23 -8
  14. package/locales/fa-IR/plugin.json +15 -0
  15. package/locales/fr-FR/models.json +23 -8
  16. package/locales/fr-FR/plugin.json +15 -0
  17. package/locales/it-IT/models.json +23 -8
  18. package/locales/it-IT/plugin.json +15 -0
  19. package/locales/ja-JP/models.json +23 -8
  20. package/locales/ja-JP/plugin.json +15 -0
  21. package/locales/ko-KR/models.json +23 -8
  22. package/locales/ko-KR/plugin.json +15 -0
  23. package/locales/nl-NL/models.json +23 -8
  24. package/locales/nl-NL/plugin.json +15 -0
  25. package/locales/pl-PL/models.json +23 -8
  26. package/locales/pl-PL/plugin.json +15 -0
  27. package/locales/pt-BR/models.json +23 -8
  28. package/locales/pt-BR/plugin.json +15 -0
  29. package/locales/ru-RU/models.json +23 -8
  30. package/locales/ru-RU/plugin.json +15 -0
  31. package/locales/tr-TR/models.json +23 -8
  32. package/locales/tr-TR/plugin.json +15 -0
  33. package/locales/vi-VN/models.json +23 -8
  34. package/locales/vi-VN/plugin.json +15 -0
  35. package/locales/zh-CN/models.json +23 -8
  36. package/locales/zh-CN/plugin.json +15 -0
  37. package/locales/zh-TW/models.json +23 -8
  38. package/locales/zh-TW/plugin.json +15 -0
  39. package/package.json +2 -2
  40. package/src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx +1 -1
  41. package/src/features/Conversation/Messages/Assistant/Tool/Inspector/BuiltinPluginTitle.tsx +59 -0
  42. package/src/features/Conversation/Messages/Assistant/Tool/Inspector/ToolTitle.tsx +33 -7
  43. package/src/locales/default/plugin.ts +15 -0
  44. package/src/tools/local-system/Render/ListFiles/Result.tsx +1 -1
  45. package/src/tools/local-system/systemRole.ts +1 -1
  46. 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: 260, overflow: 'scroll' }}>
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 ?? true);
323
+ typeof smoothing === 'boolean' ? smoothing : (smoothing?.toolsCalling ?? false);
323
324
 
324
325
  const smoothingSpeed = isObject(smoothing) ? smoothing.speed : undefined;
325
326