@lobehub/chat 1.83.8 → 1.84.1
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/color.json +22 -0
- package/locales/ar/file.json +3 -0
- package/locales/ar/models.json +15 -0
- package/locales/ar/setting.json +13 -0
- package/locales/ar/tool.json +10 -1
- package/locales/bg-BG/color.json +22 -0
- package/locales/bg-BG/file.json +3 -0
- package/locales/bg-BG/models.json +15 -0
- package/locales/bg-BG/setting.json +13 -0
- package/locales/bg-BG/tool.json +10 -1
- package/locales/de-DE/color.json +22 -0
- package/locales/de-DE/file.json +3 -0
- package/locales/de-DE/models.json +15 -0
- package/locales/de-DE/setting.json +13 -0
- package/locales/de-DE/tool.json +10 -1
- package/locales/en-US/color.json +22 -0
- package/locales/en-US/file.json +3 -0
- package/locales/en-US/models.json +15 -0
- package/locales/en-US/setting.json +13 -0
- package/locales/en-US/tool.json +10 -1
- package/locales/es-ES/color.json +22 -0
- package/locales/es-ES/file.json +3 -0
- package/locales/es-ES/models.json +15 -0
- package/locales/es-ES/setting.json +13 -0
- package/locales/es-ES/tool.json +10 -1
- package/locales/fa-IR/color.json +22 -0
- package/locales/fa-IR/file.json +3 -0
- package/locales/fa-IR/models.json +15 -0
- package/locales/fa-IR/setting.json +13 -0
- package/locales/fa-IR/tool.json +10 -1
- package/locales/fr-FR/color.json +22 -0
- package/locales/fr-FR/file.json +3 -0
- package/locales/fr-FR/models.json +15 -0
- package/locales/fr-FR/setting.json +13 -0
- package/locales/fr-FR/tool.json +10 -1
- package/locales/it-IT/color.json +22 -0
- package/locales/it-IT/file.json +3 -0
- package/locales/it-IT/models.json +15 -0
- package/locales/it-IT/setting.json +13 -0
- package/locales/it-IT/tool.json +10 -1
- package/locales/ja-JP/color.json +22 -0
- package/locales/ja-JP/file.json +3 -0
- package/locales/ja-JP/models.json +15 -0
- package/locales/ja-JP/setting.json +13 -0
- package/locales/ja-JP/tool.json +10 -1
- package/locales/ko-KR/color.json +22 -0
- package/locales/ko-KR/file.json +3 -0
- package/locales/ko-KR/models.json +15 -0
- package/locales/ko-KR/setting.json +13 -0
- package/locales/ko-KR/tool.json +10 -1
- package/locales/nl-NL/color.json +22 -0
- package/locales/nl-NL/file.json +3 -0
- package/locales/nl-NL/models.json +15 -0
- package/locales/nl-NL/setting.json +13 -0
- package/locales/nl-NL/tool.json +10 -1
- package/locales/pl-PL/color.json +22 -0
- package/locales/pl-PL/file.json +3 -0
- package/locales/pl-PL/models.json +15 -0
- package/locales/pl-PL/setting.json +13 -0
- package/locales/pl-PL/tool.json +10 -1
- package/locales/pt-BR/color.json +22 -0
- package/locales/pt-BR/file.json +3 -0
- package/locales/pt-BR/models.json +15 -0
- package/locales/pt-BR/setting.json +13 -0
- package/locales/pt-BR/tool.json +10 -1
- package/locales/ru-RU/color.json +22 -0
- package/locales/ru-RU/file.json +3 -0
- package/locales/ru-RU/models.json +15 -0
- package/locales/ru-RU/setting.json +13 -0
- package/locales/ru-RU/tool.json +10 -1
- package/locales/tr-TR/color.json +22 -0
- package/locales/tr-TR/file.json +3 -0
- package/locales/tr-TR/models.json +15 -0
- package/locales/tr-TR/setting.json +13 -0
- package/locales/tr-TR/tool.json +10 -1
- package/locales/vi-VN/color.json +22 -0
- package/locales/vi-VN/file.json +3 -0
- package/locales/vi-VN/models.json +15 -0
- package/locales/vi-VN/setting.json +13 -0
- package/locales/vi-VN/tool.json +10 -1
- package/locales/zh-CN/color.json +22 -0
- package/locales/zh-CN/common.json +2 -2
- package/locales/zh-CN/file.json +3 -0
- package/locales/zh-CN/models.json +15 -0
- package/locales/zh-CN/setting.json +15 -2
- package/locales/zh-TW/color.json +22 -0
- package/locales/zh-TW/file.json +3 -0
- package/locales/zh-TW/models.json +15 -0
- package/locales/zh-TW/setting.json +13 -0
- package/locales/zh-TW/tool.json +10 -1
- package/package.json +5 -5
- package/src/app/[variants]/(auth)/next-auth/signin/AuthSignInBox.tsx +2 -1
- package/src/app/[variants]/(main)/(mobile)/me/(home)/features/Header.tsx +2 -2
- package/src/app/[variants]/(main)/(mobile)/me/data/features/Header.tsx +3 -3
- package/src/app/[variants]/(main)/(mobile)/me/profile/features/Header.tsx +3 -3
- package/src/app/[variants]/(main)/(mobile)/me/settings/features/Header.tsx +3 -3
- package/src/app/[variants]/(main)/(mobile)/me/settings/features/useCategory.tsx +1 -1
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/BottomActions.tsx +19 -3
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/PinList/index.tsx +33 -17
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/TopActions.tsx +20 -10
- package/src/app/[variants]/(main)/_layout/Desktop/SideBar/index.tsx +8 -16
- package/src/app/[variants]/(main)/_layout/Mobile/NavBar.tsx +12 -4
- package/src/app/[variants]/(main)/changelog/_layout/Desktop/Container.tsx +35 -0
- package/src/app/[variants]/(main)/changelog/_layout/Desktop/index.tsx +19 -0
- package/src/app/[variants]/(main)/changelog/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/SendMore.tsx +2 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/ShortcutHint.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Desktop/Footer/index.tsx +4 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Files/index.tsx +3 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/InputArea/index.tsx +5 -4
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatInput/Mobile/Send.tsx +3 -4
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/AgentsSuggest.tsx +8 -14
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/QuestionSuggest.tsx +6 -10
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/OpeningQuestions.tsx +10 -14
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/WelcomeMessage.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@conversation/features/ZenModeToast/Toast.tsx +4 -3
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/Header.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/SystemRole/SystemRoleContent.tsx +38 -44
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/SystemRole/style.ts +1 -21
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/ByTimeMode/GroupItem.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/Content.tsx +3 -7
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem/TopicContent.tsx +3 -7
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicListContent/index.tsx +7 -7
- package/src/app/[variants]/(main)/chat/(workspace)/@topic/features/TopicSearchBar/index.tsx +1 -1
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/HeaderAction.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Main.tsx +10 -32
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/KnowledgeTag.tsx +1 -2
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags/index.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/index.tsx +3 -11
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/Portal.tsx +11 -17
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Desktop/TopicPanel.tsx +3 -4
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/ChatHeaderTitle.tsx +3 -3
- package/src/app/[variants]/(main)/chat/(workspace)/_layout/Mobile/ChatHeader/index.tsx +2 -2
- package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/index.tsx +39 -61
- package/src/app/[variants]/(main)/chat/(workspace)/features/TelemetryNotification.tsx +1 -2
- package/src/app/[variants]/(main)/chat/@session/_layout/Desktop/PanelBody.tsx +6 -2
- package/src/app/[variants]/(main)/chat/@session/_layout/Desktop/SessionHeader.tsx +26 -13
- package/src/app/[variants]/(main)/chat/@session/_layout/Mobile/SessionHeader.tsx +2 -2
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/CollapseGroup/Actions.tsx +3 -3
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/CollapseGroup/index.tsx +1 -1
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Inbox/index.tsx +10 -0
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/AddButton.tsx +14 -5
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/Actions.tsx +3 -3
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/List/Item/index.tsx +10 -0
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/ListItem/index.tsx +2 -2
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/GroupItem.tsx +1 -5
- package/src/app/[variants]/(main)/chat/@session/features/SessionListContent/Modals/ConfigGroupModal/index.tsx +2 -3
- package/src/app/[variants]/(main)/chat/@session/features/SessionSearchBar.tsx +1 -1
- package/src/app/[variants]/(main)/chat/_layout/Desktop/SessionPanel.tsx +14 -1
- package/src/app/[variants]/(main)/chat/_layout/Desktop/Workspace.tsx +23 -0
- package/src/app/[variants]/(main)/chat/_layout/Desktop/index.tsx +2 -3
- package/src/app/[variants]/(main)/chat/features/Migration/ExportConfigButton.tsx +1 -1
- package/src/app/[variants]/(main)/chat/features/Migration/Failed.tsx +3 -3
- package/src/app/[variants]/(main)/chat/features/Migration/Modal.tsx +2 -2
- package/src/app/[variants]/(main)/chat/features/Migration/Start.tsx +1 -1
- package/src/app/[variants]/(main)/chat/features/Migration/UpgradeButton.tsx +2 -2
- package/src/app/[variants]/(main)/chat/features/TogglePanelButton.tsx +42 -0
- package/src/app/[variants]/(main)/chat/settings/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/chat/settings/features/HeaderContent.tsx +2 -3
- package/src/app/[variants]/(main)/chat/settings/features/SubmitAgentButton/SubmitAgentModal.tsx +2 -2
- package/src/app/[variants]/(main)/chat/settings/features/SubmitAgentButton/index.tsx +2 -3
- package/src/app/[variants]/(main)/chat/settings/page.tsx +13 -20
- package/src/app/[variants]/(main)/discover/(detail)/_layout/Mobile/Header.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/index.tsx +8 -3
- package/src/app/[variants]/(main)/discover/(detail)/assistant/[slug]/features/Header.tsx +2 -5
- package/src/app/[variants]/(main)/discover/(detail)/features/Block.tsx +1 -2
- package/src/app/[variants]/(main)/discover/(detail)/features/HighlightBlock.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(detail)/features/ShareButton.tsx +16 -14
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Actions.tsx +2 -8
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ChatWithModel.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/Header.tsx +3 -7
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/InfoSidebar/SuggestionItem.tsx +3 -4
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ParameterList/index.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(detail)/model/[...slugs]/features/ProviderList/ProviderItem.tsx +6 -19
- package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/Header.tsx +8 -3
- package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/InstallPlugin.tsx +2 -1
- package/src/app/[variants]/(main)/discover/(detail)/plugin/[slug]/features/ParameterList.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/Header.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ModelList/ModelItem.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ModelList/index.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(detail)/provider/[slug]/features/ProviderConfig.tsx +4 -4
- package/src/app/[variants]/(main)/discover/(list)/(home)/features/AssistantList.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(list)/(home)/features/PluginList.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(list)/_layout/Desktop/Nav.tsx +44 -68
- package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/discover/(list)/_layout/Mobile/Nav.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(list)/assistants/features/Card.tsx +10 -11
- package/src/app/[variants]/(main)/discover/(list)/assistants/features/List.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(list)/assistants/features/useCategory.tsx +1 -1
- package/src/app/[variants]/(main)/discover/(list)/models/features/Card.tsx +3 -9
- package/src/app/[variants]/(main)/discover/(list)/plugins/features/Card.tsx +7 -10
- package/src/app/[variants]/(main)/discover/(list)/plugins/features/List.tsx +2 -2
- package/src/app/[variants]/(main)/discover/(list)/plugins/features/useCategory.tsx +1 -1
- package/src/app/[variants]/(main)/discover/_layout/Desktop/Container.tsx +25 -0
- package/src/app/[variants]/(main)/discover/_layout/Desktop/index.tsx +3 -3
- package/src/app/[variants]/(main)/discover/components/CategoryContainer.tsx +1 -1
- package/src/app/[variants]/(main)/discover/components/CategoryMenu.tsx +1 -1
- package/src/app/[variants]/(main)/discover/components/Title.tsx +2 -5
- package/src/app/[variants]/(main)/discover/features/CreateButton/Inner.tsx +3 -3
- package/src/app/[variants]/(main)/discover/features/CreateButton/index.tsx +3 -3
- package/src/app/[variants]/(main)/discover/features/LikeButton.tsx +5 -4
- package/src/app/[variants]/(main)/discover/features/StoreSearchBar.tsx +1 -1
- package/src/app/[variants]/(main)/discover/features/useNav.tsx +7 -6
- package/src/app/[variants]/(main)/discover/search/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/discover/search/_layout/Mobile/Nav.tsx +3 -3
- package/src/app/[variants]/(main)/files/(content)/@menu/features/FileMenu/index.tsx +1 -1
- package/src/app/[variants]/(main)/files/(content)/@menu/features/KnowledgeBase/Item/Content.tsx +6 -4
- package/src/app/[variants]/(main)/files/(content)/NotSupportClient.tsx +4 -4
- package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/Container.tsx +24 -0
- package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/RegisterHotkeys.tsx +10 -0
- package/src/app/[variants]/(main)/files/(content)/_layout/Desktop/index.tsx +5 -4
- package/src/app/[variants]/(main)/files/[id]/Header.tsx +3 -3
- package/src/app/[variants]/(main)/files/features/FileDetail.tsx +2 -2
- package/src/app/[variants]/(main)/profile/(home)/Client.tsx +32 -11
- package/src/app/[variants]/(main)/profile/(home)/features/SSOProvidersList/index.tsx +3 -4
- package/src/app/[variants]/(main)/profile/@category/features/CategoryContent.tsx +1 -1
- package/src/app/[variants]/(main)/profile/_layout/Desktop/Header.tsx +4 -3
- package/src/app/[variants]/(main)/profile/_layout/Desktop/SideBar.tsx +2 -2
- package/src/app/[variants]/(main)/profile/_layout/Mobile/Header.tsx +3 -3
- package/src/app/[variants]/(main)/profile/features/ClerkProfile.tsx +0 -1
- package/src/app/[variants]/(main)/profile/stats/Client.tsx +1 -1
- package/src/app/[variants]/(main)/profile/stats/features/AiHeatmaps.tsx +2 -3
- package/src/app/[variants]/(main)/profile/stats/features/AssistantsRank.tsx +2 -2
- package/src/app/[variants]/(main)/profile/stats/features/ModelsRank.tsx +2 -2
- package/src/app/[variants]/(main)/profile/stats/features/ShareButton/ShareModal.tsx +2 -2
- package/src/app/[variants]/(main)/profile/stats/features/TopicsRank.tsx +3 -5
- package/src/app/[variants]/(main)/repos/[id]/@menu/Menu/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/components/Tabs.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/CreateDataset/CreateForm.tsx +23 -36
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/CreateDataset/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/DatasetDetail/index.tsx +2 -2
- package/src/app/[variants]/(main)/repos/[id]/evals/dataset/EmptyGuide/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/CreateForm.tsx +45 -49
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/index.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/CreateEvaluation/useModal.tsx +1 -1
- package/src/app/[variants]/(main)/repos/[id]/evals/evaluation/EvaluationList/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/@category/features/CategoryContent.tsx +1 -1
- package/src/app/[variants]/(main)/settings/@category/features/UpgradeAlert.tsx +1 -2
- package/src/app/[variants]/(main)/settings/_layout/Desktop/Header.tsx +4 -3
- package/src/app/[variants]/(main)/settings/_layout/Desktop/SideBar.tsx +2 -2
- package/src/app/[variants]/(main)/settings/_layout/Desktop/index.tsx +10 -4
- package/src/app/[variants]/(main)/settings/_layout/Mobile/Header.tsx +4 -4
- package/src/app/[variants]/(main)/settings/about/features/Analytics.tsx +3 -5
- package/src/app/[variants]/(main)/settings/about/features/ItemCard.tsx +6 -26
- package/src/app/[variants]/(main)/settings/about/features/ItemLink.tsx +1 -5
- package/src/app/[variants]/(main)/settings/about/features/Version.tsx +15 -19
- package/src/app/[variants]/(main)/settings/about/index.tsx +1 -1
- package/src/app/[variants]/(main)/settings/agent/AgentMenu/index.tsx +49 -0
- package/src/app/[variants]/(main)/settings/agent/_layout/Desktop.tsx +20 -0
- package/src/app/[variants]/(main)/settings/agent/_layout/Mobile.tsx +14 -0
- package/src/app/[variants]/(main)/settings/agent/index.tsx +7 -0
- package/src/app/[variants]/(main)/settings/agent/layout.tsx +23 -0
- package/src/app/[variants]/(main)/settings/common/features/Common.tsx +6 -8
- package/src/app/[variants]/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesNeutral.tsx +33 -11
- package/src/app/[variants]/(main)/settings/common/features/Theme/ThemeSwatches/ThemeSwatchesPrimary.tsx +60 -11
- package/src/app/[variants]/(main)/settings/common/features/Theme/index.tsx +5 -7
- package/src/app/[variants]/(main)/settings/features/UpgradeAlert.tsx +1 -2
- package/src/app/[variants]/(main)/settings/hooks/useCategory.tsx +1 -2
- package/src/app/[variants]/(main)/settings/hotkey/features/HotkeySetting.tsx +4 -6
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Azure/index.tsx +2 -6
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Bedrock/index.tsx +4 -4
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Cloudflare/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/llm/ProviderList/Github/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/ProviderList/HuggingFace/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/components/Checker.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/components/ProviderConfig/index.tsx +12 -4
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/Form.tsx +2 -1
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/ModelConfigModal/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/llm/components/ProviderModelList/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/provider/(detail)/azure/page.tsx +1 -2
- package/src/app/[variants]/(main)/settings/provider/(detail)/bedrock/page.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/(detail)/doubao/page.tsx +6 -7
- package/src/app/[variants]/(main)/settings/provider/(detail)/ollama/OllamaModelDownloader/index.tsx +0 -0
- package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +10 -2
- package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/EnableSwitch.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/(list)/ProviderGrid/index.tsx +16 -42
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/AddNew.tsx +10 -7
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/All.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/List.tsx +3 -3
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/SortProviderModal/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/provider/ProviderMenu/index.tsx +16 -4
- package/src/app/[variants]/(main)/settings/provider/_layout/Desktop/Container.tsx +13 -0
- package/src/app/[variants]/(main)/settings/provider/_layout/Desktop/index.tsx +20 -0
- package/src/app/[variants]/(main)/settings/provider/features/CreateNewProvider/index.tsx +14 -7
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/CreateNewModelModal/Form.tsx +2 -1
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/CreateNewModelModal/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/DisabledModels.tsx +3 -5
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/EmptyModels.tsx +2 -3
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelConfigModal/index.tsx +2 -3
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelItem.tsx +1 -1
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelTitle/Search.tsx +5 -17
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +6 -6
- package/src/app/[variants]/(main)/settings/provider/features/ModelList/SortModelModal/index.tsx +2 -2
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/Checker.tsx +5 -6
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +3 -4
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx +3 -5
- package/src/app/[variants]/(main)/settings/provider/features/ProviderConfig/index.tsx +10 -3
- package/src/app/[variants]/(main)/settings/storage/Advanced.tsx +5 -5
- package/src/app/[variants]/(main)/settings/sync/features/DeviceInfo/DeviceName.tsx +4 -4
- package/src/app/[variants]/(main)/settings/sync/features/WebRTC/ChannelNameInput.tsx +1 -2
- package/src/app/[variants]/(main)/settings/sync/features/WebRTC/SyncSwitch/index.css +2 -1
- package/src/app/[variants]/(main)/settings/sync/features/WebRTC/index.tsx +5 -7
- package/src/app/[variants]/(main)/settings/system-agent/features/createForm.tsx +4 -7
- package/src/app/[variants]/(main)/settings/tts/features/OpenAI.tsx +4 -6
- package/src/app/[variants]/(main)/settings/tts/features/STT.tsx +5 -6
- package/src/app/[variants]/(main)/settings/tts/features/const.tsx +1 -1
- package/src/app/[variants]/@modal/(.)changelog/modal/features/ReadDetail.tsx +8 -30
- package/src/app/[variants]/loading/Client/Error.tsx +1 -1
- package/src/app/[variants]/oauth/consent/[uid]/Consent.tsx +3 -2
- package/src/app/[variants]/oauth/consent/[uid]/Login.tsx +2 -2
- package/src/app/[variants]/oauth/consent/[uid]/failed/page.tsx +2 -2
- package/src/app/desktop/devtools/page.tsx +5 -4
- package/src/components/404/index.tsx +1 -2
- package/src/components/Cell/index.tsx +2 -2
- package/src/components/DragUpload/index.tsx +4 -4
- package/src/components/Error/index.tsx +1 -2
- package/src/components/FeatureList/index.tsx +1 -1
- package/src/components/FileIcon/index.tsx +1 -1
- package/src/components/FileParsingStatus/EmbeddingStatus.tsx +1 -2
- package/src/components/FileParsingStatus/index.tsx +2 -2
- package/src/components/FormInput/FormInput.tsx +2 -2
- package/src/components/FormInput/FormPassword.tsx +3 -3
- package/src/components/FunctionModal/style.tsx +5 -1
- package/src/components/GroupIcon/index.tsx +1 -1
- package/src/components/IndexCard/index.tsx +2 -2
- package/src/components/MaxTokenSlider.tsx +3 -3
- package/src/components/Menu/index.tsx +5 -6
- package/src/components/ModelSelect/index.tsx +34 -56
- package/src/components/NextAuth/AuthIcons.tsx +3 -3
- package/src/components/Notification/index.tsx +2 -1
- package/src/components/OllamaSetupGuide/index.tsx +2 -2
- package/src/components/RepoIcon/index.tsx +1 -8
- package/src/components/SafeSpacing/index.tsx +3 -3
- package/src/components/SidebarHeader/index.tsx +6 -6
- package/src/components/StatisticCard/TitleWithPercentage.tsx +2 -1
- package/src/components/StatisticCard/index.tsx +4 -4
- package/src/components/TextArea/index.tsx +3 -3
- package/src/components/mdx/Image.tsx +1 -2
- package/src/config/aiModels/ai21.ts +2 -4
- package/src/config/aiModels/ai360.ts +4 -8
- package/src/config/aiModels/azure.ts +1 -2
- package/src/config/aiModels/azureai.ts +1 -2
- package/src/config/aiModels/cohere.ts +33 -35
- package/src/config/aiModels/doubao.ts +56 -56
- package/src/config/aiModels/fireworksai.ts +3 -5
- package/src/config/aiModels/giteeai.ts +1 -1
- package/src/config/aiModels/groq.ts +8 -4
- package/src/config/aiModels/hunyuan.ts +7 -5
- package/src/config/aiModels/minimax.ts +4 -2
- package/src/config/aiModels/mistral.ts +2 -1
- package/src/config/aiModels/moonshot.ts +2 -2
- package/src/config/aiModels/novita.ts +3 -3
- package/src/config/aiModels/nvidia.ts +22 -20
- package/src/config/aiModels/openai.ts +2 -4
- package/src/config/aiModels/openrouter.ts +5 -10
- package/src/config/aiModels/perplexity.ts +1 -2
- package/src/config/aiModels/ppio.ts +210 -193
- package/src/config/aiModels/qwen.ts +8 -4
- package/src/config/aiModels/sambanova.ts +39 -34
- package/src/config/aiModels/siliconcloud.ts +50 -50
- package/src/config/aiModels/stepfun.ts +6 -4
- package/src/config/aiModels/taichu.ts +12 -6
- package/src/config/aiModels/tencentcloud.ts +2 -2
- package/src/config/aiModels/togetherai.ts +10 -5
- package/src/config/aiModels/vllm.ts +11 -14
- package/src/config/aiModels/volcengine.ts +1 -2
- package/src/config/aiModels/wenxin.ts +8 -16
- package/src/config/aiModels/xai.ts +9 -4
- package/src/config/aiModels/xinference.ts +20 -25
- package/src/config/aiModels/zhipu.ts +3 -2
- package/src/config/modelProviders/ai360.ts +3 -6
- package/src/config/modelProviders/cohere.ts +2 -1
- package/src/config/modelProviders/deepseek.ts +2 -1
- package/src/config/modelProviders/doubao.ts +2 -1
- package/src/config/modelProviders/fireworksai.ts +2 -4
- package/src/config/modelProviders/giteeai.ts +1 -1
- package/src/config/modelProviders/index.ts +1 -1
- package/src/config/modelProviders/jina.ts +3 -2
- package/src/config/modelProviders/nvidia.ts +3 -2
- package/src/config/modelProviders/ppio.ts +249 -230
- package/src/config/modelProviders/siliconcloud.ts +38 -37
- package/src/config/modelProviders/stepfun.ts +1 -1
- package/src/config/modelProviders/vllm.ts +1 -1
- package/src/config/modelProviders/wenxin.ts +2 -4
- package/src/config/modelProviders/xinference.ts +2 -1
- package/src/config/modelProviders/zhipu.ts +1 -1
- package/src/const/hotkeys.ts +2 -2
- package/src/const/layoutTokens.test.ts +2 -2
- package/src/const/layoutTokens.ts +3 -3
- package/src/const/message.ts +1 -2
- package/src/features/AgentSetting/AgentCategory/index.tsx +29 -0
- package/src/{app/[variants]/(main)/chat/(workspace)/features/AgentSettings/CategoryContent → features/AgentSetting/AgentCategory}/useCategory.tsx +8 -6
- package/src/features/AgentSetting/AgentChat/index.tsx +32 -31
- package/src/features/AgentSetting/AgentMeta/AutoGenerateAvatar.tsx +26 -17
- package/src/features/AgentSetting/AgentMeta/AutoGenerateInput.tsx +2 -8
- package/src/features/AgentSetting/AgentMeta/AutoGenerateSelect.tsx +6 -8
- package/src/features/AgentSetting/AgentMeta/BackgroundSwatches.tsx +73 -13
- package/src/features/AgentSetting/AgentMeta/index.tsx +42 -45
- package/src/features/AgentSetting/AgentModal/index.tsx +39 -20
- package/src/features/AgentSetting/AgentOpening/OpeningMessage.tsx +3 -3
- package/src/features/AgentSetting/AgentOpening/OpeningQuestions.tsx +43 -41
- package/src/features/AgentSetting/AgentOpening/index.tsx +1 -1
- package/src/features/AgentSetting/AgentPlugin/AddPluginButton.tsx +2 -3
- package/src/features/AgentSetting/AgentPlugin/index.tsx +12 -11
- package/src/features/AgentSetting/AgentPrompt/TokenTag.tsx +12 -29
- package/src/features/AgentSetting/AgentPrompt/index.tsx +48 -147
- package/src/features/AgentSetting/AgentSettings.tsx +22 -18
- package/src/features/AgentSetting/AgentSettingsContent.tsx +39 -0
- package/src/features/AgentSetting/AgentTTS/SelectWithTTSPreview.tsx +8 -5
- package/src/features/AgentSetting/AgentTTS/index.tsx +27 -28
- package/src/features/AgentSetting/AgentTTS/options.tsx +1 -1
- package/src/features/AgentSetting/index.tsx +2 -1
- package/src/features/AgentSetting/store/action.ts +24 -24
- package/src/features/AgentSetting/store/index.ts +2 -0
- package/src/features/AgentSetting/store/initialState.ts +6 -7
- package/src/features/AgentSetting/store/selectors.ts +19 -1
- package/src/features/AlertBanner/CloudBanner.tsx +1 -2
- package/src/features/ChatInput/ActionBar/Clear.tsx +7 -5
- package/src/features/ChatInput/ActionBar/History.tsx +37 -35
- package/src/features/ChatInput/ActionBar/Knowledge/Dropdown.tsx +30 -60
- package/src/features/ChatInput/ActionBar/Knowledge/index.tsx +17 -13
- package/src/features/ChatInput/ActionBar/Model/ControlsForm.tsx +2 -1
- package/src/features/ChatInput/ActionBar/Model/ReasoningTokenSlider.tsx +3 -3
- package/src/features/ChatInput/ActionBar/Model/index.tsx +12 -38
- package/src/features/ChatInput/ActionBar/Params/ParamsControls.tsx +3 -17
- package/src/features/ChatInput/ActionBar/Params/index.tsx +10 -28
- package/src/features/ChatInput/ActionBar/Search/FCSearchModel.tsx +15 -4
- package/src/features/ChatInput/ActionBar/Search/FunctionCallingModelSelect/index.tsx +4 -3
- package/src/features/ChatInput/ActionBar/Search/ModelBuiltinSearch.tsx +5 -7
- package/src/features/ChatInput/ActionBar/Search/SwitchPanel.tsx +49 -60
- package/src/features/ChatInput/ActionBar/Search/index.tsx +25 -36
- package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +7 -6
- package/src/features/ChatInput/ActionBar/Tools/Dropdown.tsx +75 -77
- package/src/features/ChatInput/ActionBar/Tools/ToolItem.tsx +4 -30
- package/src/features/ChatInput/ActionBar/Tools/index.tsx +5 -3
- package/src/features/ChatInput/ActionBar/Upload/ClientMode.tsx +6 -4
- package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +16 -8
- package/src/features/ChatInput/ActionBar/index.tsx +2 -2
- package/src/features/ChatInput/ActionBar/styles.ts +14 -0
- package/src/features/ChatInput/Desktop/InputArea/index.tsx +2 -2
- package/src/features/ChatInput/Desktop/index.tsx +1 -1
- package/src/features/ChatInput/STT/common.tsx +10 -5
- package/src/features/ChatInput/Topic/index.tsx +3 -8
- package/src/features/ChatInput/components/ActionDropdown.tsx +62 -0
- package/src/features/ChatInput/components/ActionPopover.tsx +84 -0
- package/src/features/ChatInput/components/UploadDetail/UploadStatus.tsx +1 -1
- package/src/features/Conversation/Actions/Assistant.tsx +5 -14
- package/src/features/Conversation/Actions/Error.tsx +3 -3
- package/src/features/Conversation/Actions/Fallback.tsx +8 -2
- package/src/features/Conversation/Actions/Tool.tsx +0 -1
- package/src/features/Conversation/Actions/User.tsx +6 -4
- package/src/features/Conversation/Actions/customAction.ts +3 -3
- package/src/features/Conversation/Error/APIKeyForm/Bedrock.tsx +8 -9
- package/src/features/Conversation/Error/APIKeyForm/ProviderApiKeyForm.tsx +1 -2
- package/src/features/Conversation/Error/APIKeyForm/index.tsx +1 -1
- package/src/features/Conversation/Error/AccessCodeForm.tsx +3 -3
- package/src/features/Conversation/Error/ClerkLogin/index.tsx +1 -1
- package/src/features/Conversation/Error/ErrorJsonViewer.tsx +1 -1
- package/src/features/Conversation/Error/InvalidAccessCode.tsx +2 -2
- package/src/features/Conversation/Error/OAuthForm.tsx +2 -2
- package/src/features/Conversation/Error/OllamaBizError/InvalidOllamaModel.tsx +1 -1
- package/src/features/Conversation/Error/OllamaDesktopSetupGuide/index.tsx +1 -1
- package/src/features/Conversation/Extras/TTS/Player.tsx +2 -3
- package/src/features/Conversation/Extras/Usage/UsageDetail/ModelCard.tsx +1 -2
- package/src/features/Conversation/Extras/Usage/UsageDetail/TokenProgress.tsx +0 -1
- package/src/features/Conversation/Messages/Assistant/FileChunks/Item/index.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/Tool/Inspector/ToolTitle.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/Tool/Render/ErrorResponse.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/Tool/Render/KeyValueEditor.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/Tool/Render/PluginSettings.tsx +2 -2
- package/src/features/Conversation/Messages/User/ImageFileListViewer.tsx +3 -3
- package/src/features/Conversation/Messages/User/MarkdownRender/ContentPreview.tsx +4 -29
- package/src/features/Conversation/components/BackBottom/index.tsx +1 -2
- package/src/features/Conversation/components/ChatItem/ActionsBar.tsx +5 -4
- package/src/features/Conversation/components/ChatItem/index.tsx +2 -2
- package/src/features/Conversation/components/History/index.tsx +1 -5
- package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/Icon.tsx +5 -30
- package/src/features/Conversation/components/MarkdownElements/LocalFile/Render/LocalFile.tsx +1 -1
- package/src/features/Conversation/components/VirtualizedList/index.tsx +1 -6
- package/src/features/Conversation/hooks/useChatListActionsBar.tsx +7 -7
- package/src/features/Conversation/types/index.tsx +3 -3
- package/src/features/DataImporter/Error.tsx +3 -3
- package/src/features/DataImporter/ImportDetail.tsx +2 -2
- package/src/features/DataImporter/SuccessResult.tsx +2 -2
- package/src/features/DevPanel/FeatureFlagViewer/Form.tsx +1 -1
- package/src/features/DevPanel/MetadataViewer/Ld.tsx +1 -1
- package/src/features/DevPanel/MetadataViewer/MetaData.tsx +3 -4
- package/src/features/DevPanel/MetadataViewer/Og.tsx +3 -4
- package/src/features/DevPanel/MetadataViewer/index.tsx +3 -3
- package/src/features/DevPanel/PostgresViewer/SchemaSidebar/Columns.tsx +1 -1
- package/src/features/DevPanel/SystemInspector/index.tsx +3 -3
- package/src/features/DevPanel/features/FloatPanel.tsx +5 -4
- package/src/features/DevPanel/features/Header.tsx +1 -5
- package/src/features/DevPanel/features/Table/TooltipContent.tsx +1 -1
- package/src/features/ElectronTitlebar/Connection/ConnectionMode.tsx +1 -2
- package/src/features/ElectronTitlebar/Connection/RemoteStatus.tsx +3 -1
- package/src/features/ElectronTitlebar/Connection/Waiting.tsx +3 -3
- package/src/features/ElectronTitlebar/UpdateModal.tsx +2 -1
- package/src/features/ElectronTitlebar/UpdateNotification.tsx +2 -2
- package/src/features/FileManager/ChunkDrawer/Content.tsx +1 -0
- package/src/features/FileManager/ChunkDrawer/SimilaritySearchList/Item.tsx +1 -1
- package/src/features/FileManager/FileList/FileListItem/DropdownMenu.tsx +2 -2
- package/src/features/FileManager/FileList/FileListItem/index.tsx +5 -3
- package/src/features/FileManager/FileList/FileSkeleton.tsx +1 -1
- package/src/features/FileManager/FileList/ToolBar/Config.tsx +3 -2
- package/src/features/FileManager/FileList/ToolBar/MultiSelectActions.tsx +11 -3
- package/src/features/FileManager/FileList/index.tsx +1 -1
- package/src/features/FileManager/Header/FilesSearchBar.tsx +3 -8
- package/src/features/FileManager/Header/TogglePanelButton.tsx +42 -0
- package/src/features/FileManager/Header/UploadFileButton.tsx +4 -4
- package/src/features/FileManager/Header/index.tsx +14 -26
- package/src/features/FileManager/index.tsx +0 -1
- package/src/features/FileSidePanel/index.tsx +1 -1
- package/src/features/FileViewer/NotSupport/index.tsx +1 -2
- package/src/features/FileViewer/Renderer/TXT/index.tsx +6 -1
- package/src/features/HotkeyHelperPanel/index.tsx +3 -3
- package/src/features/InitClientDB/EnableModal.tsx +2 -3
- package/src/features/InitClientDB/ErrorResult.tsx +4 -4
- package/src/features/InitClientDB/features/DatabaseRepair/Backup.tsx +3 -3
- package/src/features/InitClientDB/features/DatabaseRepair/Diagnosis.tsx +2 -2
- package/src/features/InitClientDB/features/DatabaseRepair/Repair.tsx +2 -2
- package/src/features/InitClientDB/features/DatabaseRepair/index.tsx +12 -6
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +45 -62
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/index.tsx +1 -1
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/Item/Action.tsx +1 -2
- package/src/features/KnowledgeBaseModal/AssignKnowledgeBase/List.tsx +1 -1
- package/src/features/KnowledgeBaseModal/CreateNew/CreateForm.tsx +28 -38
- package/src/features/KnowledgeBaseModal/CreateNew/index.tsx +1 -1
- package/src/features/MobileSwitchLoading/index.tsx +1 -1
- package/src/features/MobileTabBar/index.tsx +5 -4
- package/src/features/ModelParamsControl/Temperature.tsx +1 -1
- package/src/features/ModelSelect/index.tsx +14 -4
- package/src/features/ModelSwitchPanel/index.tsx +4 -13
- package/src/features/OllamaModelDownloader/index.tsx +2 -2
- package/src/features/PluginDetailModal/Meta.tsx +13 -41
- package/src/features/PluginDetailModal/index.tsx +34 -30
- package/src/features/PluginDevModal/LocalForm.tsx +1 -0
- package/src/features/PluginDevModal/MCPManifestForm/ArgsInput.tsx +1 -1
- package/src/features/PluginDevModal/MCPManifestForm/MCPTypeSelect.tsx +3 -3
- package/src/features/PluginDevModal/MCPManifestForm/index.tsx +24 -24
- package/src/features/PluginDevModal/PluginPreview.tsx +14 -17
- package/src/features/PluginDevModal/UrlManifestForm.tsx +1 -1
- package/src/features/PluginDevModal/index.tsx +3 -2
- package/src/features/PluginSettings/PluginSettingRender.tsx +11 -43
- package/src/features/PluginSettings/index.tsx +38 -25
- package/src/features/PluginStore/AddPluginButton.tsx +2 -3
- package/src/features/PluginStore/InstalledPluginList.tsx +1 -3
- package/src/features/PluginStore/OnlineList.tsx +2 -4
- package/src/features/PluginStore/PluginItem/Action.tsx +2 -2
- package/src/features/PluginStore/PluginItem/PluginAvatar.tsx +8 -2
- package/src/features/PluginStore/PluginItem/PluginTag.tsx +2 -31
- package/src/features/PluginStore/index.tsx +2 -2
- package/src/features/PluginTag/PluginStatus.tsx +2 -2
- package/src/features/PluginTag/index.tsx +1 -3
- package/src/features/PluginsUI/Render/DefaultType/SystemJsRender/utils.ts +0 -1
- package/src/features/Portal/Artifacts/Body/Renderer/SVG.tsx +4 -4
- package/src/features/Portal/Artifacts/Body/Renderer/index.tsx +1 -1
- package/src/features/Portal/Artifacts/Body/index.tsx +6 -3
- package/src/features/Portal/Artifacts/Header.tsx +11 -6
- package/src/features/Portal/FilePreview/Body/index.tsx +20 -7
- package/src/features/Portal/Plugins/Header.tsx +1 -1
- package/src/features/Portal/Thread/Chat/ChatInput/Footer.tsx +2 -2
- package/src/features/Portal/Thread/Header/Active.tsx +12 -6
- package/src/features/Portal/Thread/Header/New.tsx +13 -12
- package/src/features/Portal/Thread/Header/index.tsx +10 -3
- package/src/features/Setting/SettingContainer.tsx +12 -19
- package/src/features/ShareModal/ShareImage/Preview.tsx +2 -1
- package/src/features/ShareModal/ShareImage/index.tsx +8 -11
- package/src/features/ShareModal/ShareJSON/Preview.tsx +1 -1
- package/src/features/ShareModal/ShareJSON/index.tsx +6 -5
- package/src/features/ShareModal/ShareText/index.tsx +8 -5
- package/src/features/ShareModal/index.tsx +2 -3
- package/src/features/SyncStatusInspector/DisableSync.tsx +2 -2
- package/src/features/SyncStatusInspector/EnableSync.tsx +3 -3
- package/src/features/SyncStatusInspector/EnableTag.tsx +2 -2
- package/src/features/User/PlanTag.tsx +1 -2
- package/src/features/User/UserAvatar.tsx +1 -1
- package/src/features/User/UserLoginOrSignup/Community.tsx +1 -1
- package/src/features/User/UserPanel/LangButton.tsx +1 -1
- package/src/features/User/UserPanel/ThemeButton.tsx +1 -1
- package/src/features/User/UserPanel/useMenu.tsx +2 -1
- package/src/hooks/useHotkeys/filesScope.ts +37 -0
- package/src/hooks/useHotkeys/index.ts +1 -0
- package/src/hooks/useScreenshot.ts +1 -1
- package/src/layout/GlobalProvider/Locale.tsx +41 -1
- package/src/layout/GlobalProvider/index.tsx +12 -12
- package/src/libs/agent-runtime/ai360/index.ts +24 -31
- package/src/libs/agent-runtime/baichuan/index.ts +20 -20
- package/src/libs/agent-runtime/cohere/index.ts +10 -11
- package/src/libs/agent-runtime/deepseek/index.ts +25 -17
- package/src/libs/agent-runtime/fireworksai/index.ts +11 -14
- package/src/libs/agent-runtime/giteeai/index.ts +19 -25
- package/src/libs/agent-runtime/groq/index.ts +14 -16
- package/src/libs/agent-runtime/higress/index.ts +17 -17
- package/src/libs/agent-runtime/huggingface/index.ts +19 -23
- package/src/libs/agent-runtime/hunyuan/index.test.ts +40 -40
- package/src/libs/agent-runtime/hunyuan/index.ts +16 -21
- package/src/libs/agent-runtime/internlm/index.ts +9 -13
- package/src/libs/agent-runtime/jina/index.ts +12 -16
- package/src/libs/agent-runtime/lmstudio/index.ts +9 -13
- package/src/libs/agent-runtime/minimax/index.ts +3 -3
- package/src/libs/agent-runtime/moonshot/index.ts +26 -30
- package/src/libs/agent-runtime/novita/index.ts +17 -17
- package/src/libs/agent-runtime/nvidia/index.ts +9 -13
- package/src/libs/agent-runtime/ppio/fixtures/models.json +4 -10
- package/src/libs/agent-runtime/ppio/index.ts +19 -14
- package/src/libs/agent-runtime/siliconcloud/index.ts +19 -19
- package/src/libs/agent-runtime/spark/index.ts +1 -2
- package/src/libs/agent-runtime/stepfun/index.ts +29 -36
- package/src/libs/agent-runtime/tencentcloud/index.ts +12 -16
- package/src/libs/agent-runtime/utils/cloudflareHelpers.ts +1 -6
- package/src/libs/agent-runtime/utils/streams/openai.test.ts +0 -1
- package/src/libs/agent-runtime/vllm/index.ts +9 -13
- package/src/libs/agent-runtime/wenxin/index.test.ts +26 -18
- package/src/libs/agent-runtime/wenxin/index.ts +1 -1
- package/src/libs/agent-runtime/xai/index.ts +11 -13
- package/src/libs/agent-runtime/xinference/index.ts +15 -13
- package/src/libs/agent-runtime/zeroone/index.ts +9 -13
- package/src/libs/agent-runtime/zhipu/index.ts +33 -30
- package/src/libs/langchain/loaders/epub/index.ts +3 -2
- package/src/libs/langchain/loaders/index.ts +1 -1
- package/src/locales/default/color.ts +22 -0
- package/src/locales/default/common.ts +2 -2
- package/src/locales/default/file.ts +3 -0
- package/src/locales/default/index.ts +2 -0
- package/src/locales/default/setting.ts +15 -2
- package/src/server/modules/ContentChunk/rules.test.ts +1 -0
- package/src/server/utils/tempFileManager.ts +1 -1
- package/src/services/message/type.ts +2 -1
- package/src/services/plugin/client.test.ts +3 -1
- package/src/store/agent/selectors.ts +1 -1
- package/src/store/aiInfra/index.ts +1 -1
- package/src/store/chat/slices/builtinTool/actions/dalle.ts +0 -2
- package/src/store/chat/slices/portal/initialState.ts +7 -2
- package/src/store/session/index.ts +1 -1
- package/src/tools/dalle/Render/Item/EditMode.tsx +3 -3
- package/src/tools/dalle/Render/Item/Error.tsx +3 -4
- package/src/tools/dalle/Render/Item/index.tsx +1 -1
- package/src/tools/dalle/Render/ToolBar.tsx +2 -1
- package/src/tools/dalle/Render/index.tsx +4 -3
- package/src/tools/local-files/Render/ListFiles/index.tsx +1 -1
- package/src/tools/local-files/Render/ReadLocalFile/ReadFileView.tsx +1 -1
- package/src/tools/local-files/Render/SearchFiles/SearchQuery/index.tsx +5 -6
- package/src/tools/local-files/components/FileItem.tsx +1 -1
- package/src/tools/web-browsing/Portal/PageContent/index.tsx +14 -8
- package/src/tools/web-browsing/Portal/Search/Footer.tsx +2 -3
- package/src/tools/web-browsing/Portal/Search/ResultList/SearchItem/TitleExtra.tsx +2 -2
- package/src/tools/web-browsing/Render/Search/ConfigForm/Form.tsx +2 -3
- package/src/tools/web-browsing/Render/Search/ConfigForm/index.tsx +1 -1
- package/src/tools/web-browsing/Render/Search/SearchResult/index.tsx +3 -3
- package/src/tools/web-browsing/Render/Search/index.tsx +1 -1
- package/src/tools/web-browsing/components/SearchBar.tsx +3 -8
- package/src/types/hotkey.ts +1 -0
- package/src/app/[variants]/(main)/changelog/_layout/Desktop.tsx +0 -25
- package/src/app/[variants]/(main)/chat/(workspace)/features/AgentSettings/CategoryContent/index.tsx +0 -37
- package/src/app/[variants]/(main)/discover/features/ModelFeatureTags.tsx +0 -86
- package/src/app/[variants]/(main)/settings/provider/_layout/Desktop.tsx +0 -37
- package/src/features/AgentSetting/useSyncAgemtSettings.ts +0 -14
- package/src/features/ChatInput/ActionBar/Search/ExaIcon.tsx +0 -15
@@ -49,12 +49,14 @@ const Clear = memo(() => {
|
|
49
49
|
>
|
50
50
|
<ActionIcon
|
51
51
|
icon={Eraser}
|
52
|
-
placement={'bottom'}
|
53
|
-
styles={{
|
54
|
-
root: { maxWidth: 'none' },
|
55
|
-
}}
|
56
52
|
title={actionTitle}
|
57
|
-
|
53
|
+
tooltipProps={{
|
54
|
+
hotkey,
|
55
|
+
placement: 'bottom',
|
56
|
+
styles: {
|
57
|
+
root: { maxWidth: 'none' },
|
58
|
+
},
|
59
|
+
}}
|
58
60
|
/>
|
59
61
|
</Popconfirm>
|
60
62
|
);
|
@@ -1,16 +1,17 @@
|
|
1
1
|
import { ActionIcon, SliderWithInput } from '@lobehub/ui';
|
2
|
-
import {
|
2
|
+
import { Switch } from 'antd';
|
3
3
|
import { Timer, TimerOff } from 'lucide-react';
|
4
4
|
import { memo, useState } from 'react';
|
5
5
|
import { useTranslation } from 'react-i18next';
|
6
|
-
import { Flexbox } from 'react-layout-kit';
|
7
6
|
|
8
|
-
import { useIsMobile } from '@/hooks/useIsMobile';
|
9
7
|
import { useAgentStore } from '@/store/agent';
|
10
8
|
import { agentChatConfigSelectors } from '@/store/agent/selectors';
|
11
9
|
|
10
|
+
import ActionPopover from '../components/ActionPopover';
|
11
|
+
|
12
12
|
const History = memo(() => {
|
13
13
|
const { t } = useTranslation('setting');
|
14
|
+
const [loading, setLoading] = useState(false);
|
14
15
|
const [popoverOpen, setPopoverOpen] = useState(false);
|
15
16
|
|
16
17
|
const [historyCount, enableHistoryCount, updateAgentConfig] = useAgentStore((s) => {
|
@@ -27,49 +28,50 @@ const History = memo(() => {
|
|
27
28
|
: 'settingChat.enableHistoryCount.unlimited',
|
28
29
|
{ number: historyCount || 0 },
|
29
30
|
);
|
30
|
-
const mobile = useIsMobile();
|
31
31
|
|
32
32
|
return (
|
33
|
-
<
|
33
|
+
<ActionPopover
|
34
34
|
arrow={false}
|
35
35
|
content={
|
36
|
-
<
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
36
|
+
<SliderWithInput
|
37
|
+
disabled={!enableHistoryCount}
|
38
|
+
max={20}
|
39
|
+
min={0}
|
40
|
+
onChange={async (v) => {
|
41
|
+
setLoading(true);
|
42
|
+
await updateAgentConfig({ historyCount: v });
|
43
|
+
setLoading(false);
|
44
|
+
}}
|
45
|
+
size={'small'}
|
46
|
+
step={1}
|
47
|
+
value={historyCount}
|
48
|
+
/>
|
49
|
+
}
|
50
|
+
extra={
|
51
|
+
<Switch
|
52
|
+
checked={enableHistoryCount}
|
53
|
+
loading={loading}
|
54
|
+
onChange={async (enableHistoryCount) => {
|
55
|
+
setLoading(true);
|
56
|
+
await updateAgentConfig({ enableHistoryCount });
|
57
|
+
setLoading(false);
|
58
|
+
}}
|
59
|
+
size={'small'}
|
60
|
+
/>
|
49
61
|
}
|
62
|
+
minWidth={240}
|
50
63
|
onOpenChange={setPopoverOpen}
|
51
64
|
open={popoverOpen}
|
52
|
-
|
53
|
-
title={
|
54
|
-
<Flexbox align={'center'} gap={4} horizontal>
|
55
|
-
<Switch
|
56
|
-
checked={enableHistoryCount}
|
57
|
-
onChange={(enableHistoryCount) => {
|
58
|
-
updateAgentConfig({ enableHistoryCount });
|
59
|
-
}}
|
60
|
-
size={'small'}
|
61
|
-
/>
|
62
|
-
{t('settingChat.enableHistoryCount.title')}
|
63
|
-
</Flexbox>
|
64
|
-
}
|
65
|
-
trigger={'click'}
|
65
|
+
title={t('settingChat.enableHistoryCount.title')}
|
66
66
|
>
|
67
67
|
<ActionIcon
|
68
68
|
icon={enableHistoryCount ? Timer : TimerOff}
|
69
|
-
|
70
|
-
|
69
|
+
title={title}
|
70
|
+
tooltipProps={{
|
71
|
+
placement: 'bottom',
|
72
|
+
}}
|
71
73
|
/>
|
72
|
-
</
|
74
|
+
</ActionPopover>
|
73
75
|
);
|
74
76
|
});
|
75
77
|
|
@@ -1,12 +1,8 @@
|
|
1
|
-
import { Icon } from '@lobehub/ui';
|
2
|
-
import { Dropdown } from 'antd';
|
3
|
-
import { createStyles } from 'antd-style';
|
4
|
-
import type { ItemType } from 'antd/es/menu/interface';
|
1
|
+
import { DropdownProps, Icon, ItemType } from '@lobehub/ui';
|
5
2
|
import isEqual from 'fast-deep-equal';
|
6
3
|
import { ArrowRight, LibraryBig } from 'lucide-react';
|
7
4
|
import { PropsWithChildren, memo, useState } from 'react';
|
8
5
|
import { useTranslation } from 'react-i18next';
|
9
|
-
import { Flexbox } from 'react-layout-kit';
|
10
6
|
|
11
7
|
import FileIcon from '@/components/FileIcon';
|
12
8
|
import RepoIcon from '@/components/RepoIcon';
|
@@ -14,28 +10,15 @@ import { AssignKnowledgeBaseModal } from '@/features/KnowledgeBaseModal';
|
|
14
10
|
import { useAgentStore } from '@/store/agent';
|
15
11
|
import { agentSelectors } from '@/store/agent/selectors';
|
16
12
|
|
13
|
+
import ActionDropdown from '../../components/ActionDropdown';
|
17
14
|
import ListItem from './ListItem';
|
18
15
|
|
19
|
-
const useStyles = createStyles(({ css, prefixCls }) => ({
|
20
|
-
knowledgeBase: css``,
|
21
|
-
menu: css`
|
22
|
-
&.${prefixCls}-dropdown-menu {
|
23
|
-
padding-block: 8px;
|
24
|
-
}
|
25
|
-
|
26
|
-
.${prefixCls}-dropdown-menu-item-group-list .${prefixCls}-dropdown-menu-item {
|
27
|
-
padding: 0;
|
28
|
-
padding-inline-start: 8px;
|
29
|
-
border-radius: 4px;
|
30
|
-
}
|
31
|
-
`,
|
32
|
-
}));
|
33
|
-
|
34
16
|
const DropdownMenu = memo<PropsWithChildren>(({ children }) => {
|
35
17
|
const { t } = useTranslation('chat');
|
36
18
|
|
37
|
-
const { styles } = useStyles();
|
38
19
|
const [open, setOpen] = useState(false);
|
20
|
+
const [dropdownOpen, setDropdownOpen] = useState(false);
|
21
|
+
|
39
22
|
const files = useAgentStore(agentSelectors.currentAgentFiles, isEqual);
|
40
23
|
const knowledgeBases = useAgentStore(agentSelectors.currentAgentKnowledgeBases, isEqual);
|
41
24
|
|
@@ -100,58 +83,45 @@ const DropdownMenu = memo<PropsWithChildren>(({ children }) => {
|
|
100
83
|
/>
|
101
84
|
),
|
102
85
|
})),
|
103
|
-
{
|
104
|
-
icon: (
|
105
|
-
<Icon
|
106
|
-
icon={LibraryBig}
|
107
|
-
size={{ fontSize: 16 }}
|
108
|
-
style={{ marginInlineEnd: 0, paddingInlineStart: 4 }}
|
109
|
-
/>
|
110
|
-
),
|
111
|
-
key: 'knowledge-base-store',
|
112
|
-
label: (
|
113
|
-
<Flexbox gap={40} horizontal justify={'space-between'} padding={'8px 12px'}>
|
114
|
-
{t('knowledgeBase.viewMore')} <Icon icon={ArrowRight} />
|
115
|
-
</Flexbox>
|
116
|
-
),
|
117
|
-
onClick: (e) => {
|
118
|
-
e.domEvent.stopPropagation();
|
119
|
-
setOpen(true);
|
120
|
-
},
|
121
|
-
},
|
122
86
|
],
|
123
|
-
className: styles.knowledgeBase,
|
124
87
|
key: 'relativeFilesOrKnowledgeBases',
|
125
|
-
label: (
|
126
|
-
<Flexbox horizontal justify={'space-between'}>
|
127
|
-
{t('knowledgeBase.relativeFilesOrKnowledgeBases')}
|
128
|
-
{/*<Link href={'/files'}>{t('knowledgeBase.more')}</Link>*/}
|
129
|
-
</Flexbox>
|
130
|
-
),
|
88
|
+
label: t('knowledgeBase.relativeFilesOrKnowledgeBases'),
|
131
89
|
type: 'group',
|
132
90
|
},
|
91
|
+
{
|
92
|
+
type: 'divider',
|
93
|
+
},
|
94
|
+
{
|
95
|
+
extra: <Icon icon={ArrowRight} />,
|
96
|
+
icon: LibraryBig,
|
97
|
+
key: 'knowledge-base-store',
|
98
|
+
label: t('knowledgeBase.viewMore'),
|
99
|
+
onClick: () => {
|
100
|
+
setDropdownOpen(false);
|
101
|
+
setOpen(true);
|
102
|
+
},
|
103
|
+
},
|
133
104
|
];
|
134
105
|
|
106
|
+
const handleOpenChange: DropdownProps['onOpenChange'] = (nextOpen, info) => {
|
107
|
+
if (info.source === 'trigger' || nextOpen) {
|
108
|
+
setDropdownOpen(nextOpen);
|
109
|
+
}
|
110
|
+
};
|
111
|
+
|
135
112
|
return (
|
136
113
|
<>
|
137
|
-
<
|
138
|
-
|
114
|
+
<ActionDropdown
|
115
|
+
maxHeight={500}
|
139
116
|
menu={{
|
140
|
-
className: styles.menu,
|
141
117
|
items,
|
142
|
-
onClick: (e) => {
|
143
|
-
e.domEvent.preventDefault();
|
144
|
-
},
|
145
|
-
style: {
|
146
|
-
maxHeight: 500,
|
147
|
-
overflowY: 'scroll',
|
148
|
-
},
|
149
118
|
}}
|
150
|
-
|
151
|
-
|
119
|
+
minWidth={240}
|
120
|
+
onOpenChange={handleOpenChange}
|
121
|
+
open={dropdownOpen}
|
152
122
|
>
|
153
123
|
{children}
|
154
|
-
</
|
124
|
+
</ActionDropdown>
|
155
125
|
<AssignKnowledgeBaseModal open={open} setOpen={setOpen} />
|
156
126
|
</>
|
157
127
|
);
|
@@ -28,21 +28,25 @@ const Knowledge = memo(() => {
|
|
28
28
|
return null;
|
29
29
|
}
|
30
30
|
|
31
|
-
const
|
32
|
-
<
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
31
|
+
const icon = (
|
32
|
+
<ActionIcon
|
33
|
+
disabled={!enableKnowledge}
|
34
|
+
icon={LibraryBig}
|
35
|
+
title={
|
36
|
+
enableKnowledge
|
37
|
+
? t('knowledgeBase.title')
|
38
|
+
: t('knowledgeBase.disabled', { cloud: LOBE_CHAT_CLOUD })
|
39
|
+
}
|
40
|
+
tooltipProps={{
|
41
|
+
placement: 'bottom',
|
42
|
+
}}
|
43
|
+
/>
|
44
44
|
);
|
45
45
|
|
46
|
+
if (!enableKnowledge) return icon;
|
47
|
+
|
48
|
+
const content = <DropdownMenu>{icon}</DropdownMenu>;
|
49
|
+
|
46
50
|
return (
|
47
51
|
<Suspense fallback={<ActionIcon icon={LucideLoader2} spin />}>
|
48
52
|
{showTip ? (
|
@@ -67,6 +67,7 @@ const ControlsForm = memo(() => {
|
|
67
67
|
</span>
|
68
68
|
),
|
69
69
|
label: t('extendParams.enableReasoning.title'),
|
70
|
+
layout: 'horizontal',
|
70
71
|
minWidth: undefined,
|
71
72
|
name: 'enableReasoning',
|
72
73
|
},
|
@@ -97,7 +98,7 @@ const ControlsForm = memo(() => {
|
|
97
98
|
}}
|
98
99
|
size={'small'}
|
99
100
|
style={{ fontSize: 12 }}
|
100
|
-
variant={'
|
101
|
+
variant={'borderless'}
|
101
102
|
/>
|
102
103
|
);
|
103
104
|
});
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { InputNumber
|
1
|
+
import { InputNumber } from '@lobehub/ui';
|
2
|
+
import { Slider } from 'antd';
|
2
3
|
import { memo, useMemo } from 'react';
|
3
4
|
import { Flexbox } from 'react-layout-kit';
|
4
5
|
import useMergeState from 'use-merge-value';
|
@@ -70,8 +71,7 @@ const ReasoningTokenSlider = memo<MaxTokenSliderProps>(({ value, onChange, defau
|
|
70
71
|
min={0}
|
71
72
|
onChange={(e) => {
|
72
73
|
if (!e && e !== 0) return;
|
73
|
-
|
74
|
-
updateWithRealValue(e);
|
74
|
+
updateWithRealValue(e as number);
|
75
75
|
}}
|
76
76
|
step={4 * Kibi}
|
77
77
|
style={{ width: 60 }}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ModelIcon } from '@lobehub/icons';
|
2
2
|
import { ActionIcon } from '@lobehub/ui';
|
3
|
-
import { Popover } from 'antd';
|
4
3
|
import { createStyles } from 'antd-style';
|
5
4
|
import { Settings2Icon } from 'lucide-react';
|
6
5
|
import { memo } from 'react';
|
@@ -8,17 +7,17 @@ import { useTranslation } from 'react-i18next';
|
|
8
7
|
import { Center, Flexbox } from 'react-layout-kit';
|
9
8
|
|
10
9
|
import ModelSwitchPanel from '@/features/ModelSwitchPanel';
|
11
|
-
import { useIsMobile } from '@/hooks/useIsMobile';
|
12
10
|
import { useAgentStore } from '@/store/agent';
|
13
11
|
import { agentSelectors } from '@/store/agent/selectors';
|
14
12
|
import { aiModelSelectors, useAiInfraStore } from '@/store/aiInfra';
|
15
13
|
|
14
|
+
import ActionPopover from '../../components/ActionPopover';
|
16
15
|
import ControlsForm from './ControlsForm';
|
17
16
|
|
18
|
-
const useStyles = createStyles(({ css, token,
|
17
|
+
const useStyles = createStyles(({ css, token, cx }) => ({
|
19
18
|
container: css`
|
20
19
|
border-radius: 20px;
|
21
|
-
background: ${
|
20
|
+
background: ${token.colorFillTertiary};
|
22
21
|
`,
|
23
22
|
icon: cx(
|
24
23
|
'model-switch',
|
@@ -67,20 +66,6 @@ const ModelSwitch = memo(() => {
|
|
67
66
|
aiModelSelectors.isModelHasExtendParams(model, provider),
|
68
67
|
);
|
69
68
|
|
70
|
-
const isMobile = useIsMobile();
|
71
|
-
|
72
|
-
// if (isLoading && isLoginWithAuth)
|
73
|
-
// return (
|
74
|
-
// <ActionIcon
|
75
|
-
// icon={Brain}
|
76
|
-
// placement={'bottom'}
|
77
|
-
// style={{
|
78
|
-
// cursor: 'not-allowed',
|
79
|
-
// }}
|
80
|
-
// title={t('ModelSwitch.title')}
|
81
|
-
// />
|
82
|
-
// );
|
83
|
-
|
84
69
|
return (
|
85
70
|
<Flexbox align={'center'} className={isModelHasExtendParams ? styles.container : ''} horizontal>
|
86
71
|
<ModelSwitchPanel>
|
@@ -96,27 +81,16 @@ const ModelSwitch = memo(() => {
|
|
96
81
|
</ModelSwitchPanel>
|
97
82
|
|
98
83
|
{isModelHasExtendParams && (
|
99
|
-
<
|
100
|
-
<
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
minWidth: isMobile ? undefined : 350,
|
107
|
-
paddingBlock: 4,
|
108
|
-
width: isMobile ? '100vw' : undefined,
|
109
|
-
},
|
84
|
+
<ActionPopover content={<ControlsForm />} minWidth={350} placement={'topLeft'}>
|
85
|
+
<ActionIcon
|
86
|
+
icon={Settings2Icon}
|
87
|
+
style={{ borderRadius: 20, marginInlineStart: -4 }}
|
88
|
+
title={t('extendParams.title')}
|
89
|
+
tooltipProps={{
|
90
|
+
placement: 'bottom',
|
110
91
|
}}
|
111
|
-
|
112
|
-
|
113
|
-
icon={Settings2Icon}
|
114
|
-
placement={'bottom'}
|
115
|
-
style={{ borderRadius: 20 }}
|
116
|
-
title={t('extendParams.title')}
|
117
|
-
/>
|
118
|
-
</Popover>
|
119
|
-
</Flexbox>
|
92
|
+
/>
|
93
|
+
</ActionPopover>
|
120
94
|
)}
|
121
95
|
</Flexbox>
|
122
96
|
);
|
@@ -1,6 +1,4 @@
|
|
1
|
-
import { Form, Tag } from '@lobehub/ui';
|
2
|
-
import type { FormItemProps } from '@lobehub/ui/es/Form/components/FormItem';
|
3
|
-
import { createStyles } from 'antd-style';
|
1
|
+
import { Form, type FormItemProps, Tag } from '@lobehub/ui';
|
4
2
|
import isEqual from 'fast-deep-equal';
|
5
3
|
import { debounce } from 'lodash-es';
|
6
4
|
import { memo } from 'react';
|
@@ -17,20 +15,10 @@ import {
|
|
17
15
|
import { useAgentStore } from '@/store/agent';
|
18
16
|
import { agentSelectors } from '@/store/agent/selectors';
|
19
17
|
|
20
|
-
const useStyles = createStyles(({ css }) => ({
|
21
|
-
container: css`
|
22
|
-
.ant-form-group {
|
23
|
-
padding-inline: 0;
|
24
|
-
background: transparent;
|
25
|
-
}
|
26
|
-
`,
|
27
|
-
}));
|
28
|
-
|
29
18
|
interface ParamsControlsProps {
|
30
19
|
setUpdating: (updating: boolean) => void;
|
31
20
|
}
|
32
21
|
const ParamsControls = memo<ParamsControlsProps>(({ setUpdating }) => {
|
33
|
-
const { styles } = useStyles();
|
34
22
|
const { t } = useTranslation('setting');
|
35
23
|
|
36
24
|
const updateAgentConfig = useAgentStore((s) => s.updateAgentConfig);
|
@@ -42,7 +30,7 @@ const ParamsControls = memo<ParamsControlsProps>(({ setUpdating }) => {
|
|
42
30
|
children: <Temperature />,
|
43
31
|
desc: <Tag>temperature</Tag>,
|
44
32
|
label: (
|
45
|
-
<Flexbox gap={8} horizontal>
|
33
|
+
<Flexbox align={'center'} gap={8} horizontal justify={'space-between'}>
|
46
34
|
{t('settingModel.temperature.title')}
|
47
35
|
<InfoTooltip title={t('settingModel.temperature.desc')} />
|
48
36
|
</Flexbox>
|
@@ -86,7 +74,6 @@ const ParamsControls = memo<ParamsControlsProps>(({ setUpdating }) => {
|
|
86
74
|
|
87
75
|
return (
|
88
76
|
<Form
|
89
|
-
className={styles.container}
|
90
77
|
initialValues={config}
|
91
78
|
itemMinWidth={200}
|
92
79
|
items={items}
|
@@ -96,9 +83,8 @@ const ParamsControls = memo<ParamsControlsProps>(({ setUpdating }) => {
|
|
96
83
|
await updateAgentConfig(values);
|
97
84
|
setUpdating(false);
|
98
85
|
}, 500)}
|
99
|
-
size={'small'}
|
100
86
|
style={{ fontSize: 12 }}
|
101
|
-
variant={'
|
87
|
+
variant={'borderless'}
|
102
88
|
/>
|
103
89
|
);
|
104
90
|
});
|
@@ -1,14 +1,9 @@
|
|
1
1
|
import { ActionIcon } from '@lobehub/ui';
|
2
|
-
import { Popover } from 'antd';
|
3
|
-
import { useTheme } from 'antd-style';
|
4
2
|
import { SlidersHorizontal } from 'lucide-react';
|
5
3
|
import { memo, useState } from 'react';
|
6
4
|
import { useTranslation } from 'react-i18next';
|
7
|
-
import { Flexbox } from 'react-layout-kit';
|
8
|
-
|
9
|
-
import UpdateLoading from '@/components/Loading/UpdateLoading';
|
10
|
-
import { useIsMobile } from '@/hooks/useIsMobile';
|
11
5
|
|
6
|
+
import ActionPopover from '../../components/ActionPopover';
|
12
7
|
import ParamsControls from './ParamsControls';
|
13
8
|
|
14
9
|
const Params = memo(() => {
|
@@ -16,36 +11,23 @@ const Params = memo(() => {
|
|
16
11
|
const [popoverOpen, setPopoverOpen] = useState(false);
|
17
12
|
const [isUpdating, setUpdating] = useState(false);
|
18
13
|
|
19
|
-
const theme = useTheme();
|
20
|
-
const isMobile = useIsMobile();
|
21
14
|
return (
|
22
|
-
<
|
23
|
-
arrow={false}
|
15
|
+
<ActionPopover
|
24
16
|
content={<ParamsControls setUpdating={setUpdating} />}
|
17
|
+
loading={isUpdating}
|
18
|
+
minWidth={400}
|
25
19
|
onOpenChange={setPopoverOpen}
|
26
20
|
open={popoverOpen}
|
27
|
-
|
28
|
-
styles={{
|
29
|
-
body: {
|
30
|
-
minWidth: isMobile ? undefined : 400,
|
31
|
-
width: isMobile ? '100vw' : undefined,
|
32
|
-
},
|
33
|
-
}}
|
34
|
-
title={
|
35
|
-
<Flexbox horizontal justify={'space-between'}>
|
36
|
-
{t('settingModel.params.title')}
|
37
|
-
|
38
|
-
{isUpdating && <UpdateLoading style={{ color: theme.colorTextSecondary }} />}
|
39
|
-
</Flexbox>
|
40
|
-
}
|
41
|
-
trigger={'click'}
|
21
|
+
title={t('settingModel.params.title')}
|
42
22
|
>
|
43
23
|
<ActionIcon
|
44
24
|
icon={SlidersHorizontal}
|
45
|
-
|
46
|
-
|
25
|
+
title={t('settingModel.params.title')}
|
26
|
+
tooltipProps={{
|
27
|
+
placement: 'bottom',
|
28
|
+
}}
|
47
29
|
/>
|
48
|
-
</
|
30
|
+
</ActionPopover>
|
49
31
|
);
|
50
32
|
});
|
51
33
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { createStyles } from 'antd-style';
|
2
|
+
import { memo } from 'react';
|
2
3
|
import { useTranslation } from 'react-i18next';
|
3
4
|
import { Flexbox } from 'react-layout-kit';
|
4
5
|
|
@@ -30,7 +31,11 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
30
31
|
`,
|
31
32
|
}));
|
32
33
|
|
33
|
-
|
34
|
+
interface FCSearchModelProps {
|
35
|
+
setLoading?: (loading: boolean) => void;
|
36
|
+
}
|
37
|
+
|
38
|
+
const FCSearchModel = memo<FCSearchModelProps>(({ setLoading }) => {
|
34
39
|
const { t } = useTranslation('chat');
|
35
40
|
const { styles } = useStyles();
|
36
41
|
const [searchFCModel, updateAgentChatConfig] = useAgentStore((s) => [
|
@@ -44,13 +49,19 @@ const FCSearchModel = () => {
|
|
44
49
|
<InfoTooltip title={t('search.searchModel.desc')} />
|
45
50
|
</Flexbox>
|
46
51
|
<FunctionCallingModelSelect
|
47
|
-
onChange={(value) => {
|
48
|
-
|
52
|
+
onChange={async (value) => {
|
53
|
+
setLoading?.(true);
|
54
|
+
await updateAgentChatConfig({ searchFCModel: value });
|
55
|
+
setLoading?.(false);
|
56
|
+
}}
|
57
|
+
style={{
|
58
|
+
maxWidth: 160,
|
59
|
+
width: 160,
|
49
60
|
}}
|
50
61
|
value={searchFCModel}
|
51
62
|
/>
|
52
63
|
</Flexbox>
|
53
64
|
);
|
54
|
-
};
|
65
|
+
});
|
55
66
|
|
56
67
|
export default FCSearchModel;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Select, SelectProps } from '
|
1
|
+
import { Select, type SelectProps } from '@lobehub/ui';
|
2
2
|
import { createStyles } from 'antd-style';
|
3
3
|
import { memo, useMemo } from 'react';
|
4
4
|
|
@@ -21,13 +21,13 @@ interface ModelOption {
|
|
21
21
|
value: string;
|
22
22
|
}
|
23
23
|
|
24
|
-
interface ModelSelectProps {
|
24
|
+
interface ModelSelectProps extends SelectProps {
|
25
25
|
onChange?: (props: WorkingModel) => void;
|
26
26
|
showAbility?: boolean;
|
27
27
|
value?: WorkingModel;
|
28
28
|
}
|
29
29
|
|
30
|
-
const ModelSelect = memo<ModelSelectProps>(({ value, onChange }) => {
|
30
|
+
const ModelSelect = memo<ModelSelectProps>(({ value, onChange, ...rest }) => {
|
31
31
|
const enabledList = useEnabledChatModels();
|
32
32
|
|
33
33
|
const { styles } = useStyles();
|
@@ -78,6 +78,7 @@ const ModelSelect = memo<ModelSelectProps>(({ value, onChange }) => {
|
|
78
78
|
popupMatchSelectWidth={false}
|
79
79
|
value={`${value?.provider}/${value?.model}`}
|
80
80
|
variant={'filled'}
|
81
|
+
{...rest}
|
81
82
|
/>
|
82
83
|
);
|
83
84
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Google } from '@lobehub/icons';
|
1
|
+
import { Exa, Google } from '@lobehub/icons';
|
2
2
|
import { Icon } from '@lobehub/ui';
|
3
3
|
import { Switch } from 'antd';
|
4
4
|
import { Search } from 'lucide-react';
|
@@ -10,8 +10,6 @@ import { useAgentStore } from '@/store/agent';
|
|
10
10
|
import { agentChatConfigSelectors, agentSelectors } from '@/store/agent/selectors';
|
11
11
|
import { aiModelSelectors, useAiInfraStore } from '@/store/aiInfra';
|
12
12
|
|
13
|
-
import ExaIcon from './ExaIcon';
|
14
|
-
|
15
13
|
interface SearchEngineIconProps {
|
16
14
|
icon?: string;
|
17
15
|
}
|
@@ -19,15 +17,15 @@ interface SearchEngineIconProps {
|
|
19
17
|
const SearchEngineIcon = ({ icon }: SearchEngineIconProps) => {
|
20
18
|
switch (icon) {
|
21
19
|
case 'google': {
|
22
|
-
return <Google.
|
20
|
+
return <Google.Avatar size={20} />;
|
23
21
|
}
|
24
22
|
|
25
23
|
case 'exa': {
|
26
|
-
return <
|
24
|
+
return <Exa.Avatar size={20} />;
|
27
25
|
}
|
28
26
|
|
29
27
|
default: {
|
30
|
-
return <Icon icon={Search} size={
|
28
|
+
return <Icon icon={Search} size={14} />;
|
31
29
|
}
|
32
30
|
}
|
33
31
|
};
|
@@ -57,7 +55,7 @@ const ModelBuiltinSearch = memo(() => {
|
|
57
55
|
padding={'8px 12px'}
|
58
56
|
style={{ cursor: 'pointer', userSelect: 'none' }}
|
59
57
|
>
|
60
|
-
<Flexbox align={'center'} gap={
|
58
|
+
<Flexbox align={'center'} gap={8} horizontal>
|
61
59
|
<SearchEngineIcon icon={modelCard?.settings?.searchProvider} />
|
62
60
|
{t('search.mode.useModelBuiltin')}
|
63
61
|
</Flexbox>
|