@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
@@ -31,73 +31,73 @@ beforeEach(() => {
|
|
31
31
|
describe('LobeHunyuanAI', () => {
|
32
32
|
describe('chat', () => {
|
33
33
|
it('should with search citations', async () => {
|
34
|
-
const data = [
|
34
|
+
const data = [
|
35
35
|
{
|
36
|
-
id:
|
37
|
-
object:
|
36
|
+
id: '939fbdb8dbb9b4c5944cbbe687c977c2',
|
37
|
+
object: 'chat.completion.chunk',
|
38
38
|
created: 1741000456,
|
39
|
-
model:
|
40
|
-
system_fingerprint:
|
39
|
+
model: 'hunyuan-turbo',
|
40
|
+
system_fingerprint: '',
|
41
41
|
choices: [
|
42
42
|
{
|
43
43
|
index: 0,
|
44
|
-
delta: { role:
|
45
|
-
finish_reason: null
|
46
|
-
}
|
44
|
+
delta: { role: 'assistant', content: '为您' },
|
45
|
+
finish_reason: null,
|
46
|
+
},
|
47
47
|
],
|
48
|
-
note:
|
48
|
+
note: '以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记',
|
49
49
|
search_info: {
|
50
50
|
search_results: [
|
51
51
|
{
|
52
52
|
index: 1,
|
53
|
-
title:
|
54
|
-
url:
|
55
|
-
icon:
|
56
|
-
text:
|
53
|
+
title: '公务员考试时政热点【2025年3月3日】_公务员考试网_华图教育',
|
54
|
+
url: 'http://www.huatu.com/2025/0303/2803685.html',
|
55
|
+
icon: 'https://hunyuan-img-1251316161.cos.ap-guangzhou.myqcloud.com/%2Fpublic/img/63ce96deffe0119827f12deaa5ffe7ef.jpg',
|
56
|
+
text: '华图教育官网',
|
57
57
|
},
|
58
58
|
{
|
59
59
|
index: 2,
|
60
|
-
title:
|
61
|
-
url:
|
62
|
-
icon:
|
63
|
-
text:
|
64
|
-
}
|
65
|
-
]
|
66
|
-
}
|
60
|
+
title: '外交部新闻(2025年3月3日)',
|
61
|
+
url: 'https://view.inews.qq.com/a/20250303A02NLC00?scene=qqsearch',
|
62
|
+
icon: 'https://hunyuan-img-1251316161.cos.ap-guangzhou.myqcloud.com/%2Fpublic/img/00ce40298870d1accb7920d641152722.jpg',
|
63
|
+
text: '腾讯网',
|
64
|
+
},
|
65
|
+
],
|
66
|
+
},
|
67
67
|
},
|
68
68
|
{
|
69
|
-
id:
|
70
|
-
object:
|
69
|
+
id: '939fbdb8dbb9b4c5944cbbe687c977c2',
|
70
|
+
object: 'chat.completion.chunk',
|
71
71
|
created: 1741000456,
|
72
|
-
model:
|
73
|
-
system_fingerprint:
|
72
|
+
model: 'hunyuan-turbo',
|
73
|
+
system_fingerprint: '',
|
74
74
|
choices: [
|
75
75
|
{
|
76
76
|
index: 0,
|
77
|
-
delta: { role:
|
78
|
-
finish_reason: null
|
79
|
-
}
|
77
|
+
delta: { role: 'assistant', content: '找到' },
|
78
|
+
finish_reason: null,
|
79
|
+
},
|
80
80
|
],
|
81
|
-
note:
|
81
|
+
note: '以上内容为AI生成,不代表开发者立场,请勿删除或修改本标记',
|
82
82
|
search_info: {
|
83
83
|
search_results: [
|
84
84
|
{
|
85
85
|
index: 1,
|
86
|
-
title:
|
87
|
-
url:
|
88
|
-
icon:
|
89
|
-
text:
|
86
|
+
title: '公务员考试时政热点【2025年3月3日】_公务员考试网_华图教育',
|
87
|
+
url: 'http://www.huatu.com/2025/0303/2803685.html',
|
88
|
+
icon: 'https://hunyuan-img-1251316161.cos.ap-guangzhou.myqcloud.com/%2Fpublic/img/63ce96deffe0119827f12deaa5ffe7ef.jpg',
|
89
|
+
text: '华图教育官网',
|
90
90
|
},
|
91
91
|
{
|
92
92
|
index: 2,
|
93
|
-
title:
|
94
|
-
url:
|
95
|
-
icon:
|
96
|
-
text:
|
97
|
-
}
|
98
|
-
]
|
99
|
-
}
|
100
|
-
}
|
93
|
+
title: '外交部新闻(2025年3月3日)',
|
94
|
+
url: 'https://view.inews.qq.com/a/20250303A02NLC00?scene=qqsearch',
|
95
|
+
icon: 'https://hunyuan-img-1251316161.cos.ap-guangzhou.myqcloud.com/%2Fpublic/img/00ce40298870d1accb7920d641152722.jpg',
|
96
|
+
text: '腾讯网',
|
97
|
+
},
|
98
|
+
],
|
99
|
+
},
|
100
|
+
},
|
101
101
|
];
|
102
102
|
|
103
103
|
const mockStream = new ReadableStream({
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
|
4
|
-
import type { ChatModelCard } from '@/types/llm';
|
5
|
-
|
6
6
|
export interface HunyuanModelCard {
|
7
7
|
id: string;
|
8
8
|
}
|
@@ -34,40 +34,35 @@ export const LobeHunyuanAI = LobeOpenAICompatibleFactory({
|
|
34
34
|
models: async ({ client }) => {
|
35
35
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
36
36
|
|
37
|
-
const functionCallKeywords = [
|
38
|
-
'hunyuan-functioncall',
|
39
|
-
'hunyuan-turbo',
|
40
|
-
'hunyuan-pro',
|
41
|
-
];
|
37
|
+
const functionCallKeywords = ['hunyuan-functioncall', 'hunyuan-turbo', 'hunyuan-pro'];
|
42
38
|
|
43
|
-
const reasoningKeywords = [
|
44
|
-
'hunyuan-t1',
|
45
|
-
];
|
39
|
+
const reasoningKeywords = ['hunyuan-t1'];
|
46
40
|
|
47
|
-
const modelsPage = await client.models.list() as any;
|
41
|
+
const modelsPage = (await client.models.list()) as any;
|
48
42
|
const modelList: HunyuanModelCard[] = modelsPage.data;
|
49
43
|
|
50
44
|
return modelList
|
51
45
|
.map((model) => {
|
52
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
46
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
47
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
48
|
+
);
|
53
49
|
|
54
50
|
return {
|
55
51
|
contextWindowTokens: knownModel?.contextWindowTokens ?? undefined,
|
56
52
|
displayName: knownModel?.displayName ?? undefined,
|
57
53
|
enabled: knownModel?.enabled || false,
|
58
54
|
functionCall:
|
59
|
-
functionCallKeywords.some(keyword => model.id.toLowerCase().includes(keyword)) &&
|
60
|
-
|
61
|
-
||
|
55
|
+
(functionCallKeywords.some((keyword) => model.id.toLowerCase().includes(keyword)) &&
|
56
|
+
!model.id.toLowerCase().includes('vision')) ||
|
57
|
+
knownModel?.abilities?.functionCall ||
|
58
|
+
false,
|
62
59
|
id: model.id,
|
63
60
|
reasoning:
|
64
|
-
reasoningKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
65
|
-
|
66
|
-
|
61
|
+
reasoningKeywords.some((keyword) => model.id.toLowerCase().includes(keyword)) ||
|
62
|
+
knownModel?.abilities?.reasoning ||
|
63
|
+
false,
|
67
64
|
vision:
|
68
|
-
model.id.toLowerCase().includes('vision')
|
69
|
-
|| knownModel?.abilities?.vision
|
70
|
-
|| false,
|
65
|
+
model.id.toLowerCase().includes('vision') || knownModel?.abilities?.vision || false,
|
71
66
|
};
|
72
67
|
})
|
73
68
|
.filter(Boolean) as ChatModelCard[];
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
|
4
|
-
import type { ChatModelCard } from '@/types/llm';
|
5
|
-
|
6
6
|
export interface InternLMModelCard {
|
7
7
|
id: string;
|
8
8
|
}
|
@@ -23,27 +23,23 @@ export const LobeInternLMAI = LobeOpenAICompatibleFactory({
|
|
23
23
|
models: async ({ client }) => {
|
24
24
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
25
25
|
|
26
|
-
const modelsPage = await client.models.list() as any;
|
26
|
+
const modelsPage = (await client.models.list()) as any;
|
27
27
|
const modelList: InternLMModelCard[] = modelsPage.data;
|
28
28
|
|
29
29
|
return modelList
|
30
30
|
.map((model) => {
|
31
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
31
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
32
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
33
|
+
);
|
32
34
|
|
33
35
|
return {
|
34
36
|
contextWindowTokens: knownModel?.contextWindowTokens ?? undefined,
|
35
37
|
displayName: knownModel?.displayName ?? undefined,
|
36
38
|
enabled: knownModel?.enabled || false,
|
37
|
-
functionCall:
|
38
|
-
knownModel?.abilities?.functionCall
|
39
|
-
|| false,
|
39
|
+
functionCall: knownModel?.abilities?.functionCall || false,
|
40
40
|
id: model.id,
|
41
|
-
reasoning:
|
42
|
-
|
43
|
-
|| false,
|
44
|
-
vision:
|
45
|
-
knownModel?.abilities?.vision
|
46
|
-
|| false,
|
41
|
+
reasoning: knownModel?.abilities?.reasoning || false,
|
42
|
+
vision: knownModel?.abilities?.vision || false,
|
47
43
|
};
|
48
44
|
})
|
49
45
|
.filter(Boolean) as ChatModelCard[];
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
|
4
|
-
import type { ChatModelCard } from '@/types/llm';
|
5
|
-
|
6
6
|
export interface JinaModelCard {
|
7
7
|
id: string;
|
8
8
|
}
|
@@ -15,32 +15,28 @@ export const LobeJinaAI = LobeOpenAICompatibleFactory({
|
|
15
15
|
models: async ({ client }) => {
|
16
16
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
17
17
|
|
18
|
-
const reasoningKeywords = [
|
19
|
-
'deepsearch',
|
20
|
-
];
|
18
|
+
const reasoningKeywords = ['deepsearch'];
|
21
19
|
|
22
|
-
const modelsPage = await client.models.list() as any;
|
20
|
+
const modelsPage = (await client.models.list()) as any;
|
23
21
|
const modelList: JinaModelCard[] = modelsPage.data;
|
24
22
|
|
25
23
|
return modelList
|
26
24
|
.map((model) => {
|
27
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
25
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
26
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
27
|
+
);
|
28
28
|
|
29
29
|
return {
|
30
30
|
contextWindowTokens: knownModel?.contextWindowTokens ?? undefined,
|
31
31
|
displayName: knownModel?.displayName ?? undefined,
|
32
32
|
enabled: knownModel?.enabled || false,
|
33
|
-
functionCall:
|
34
|
-
knownModel?.abilities?.functionCall
|
35
|
-
|| false,
|
33
|
+
functionCall: knownModel?.abilities?.functionCall || false,
|
36
34
|
id: model.id,
|
37
35
|
reasoning:
|
38
|
-
reasoningKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
39
|
-
|
40
|
-
|
41
|
-
vision:
|
42
|
-
knownModel?.abilities?.vision
|
43
|
-
|| false,
|
36
|
+
reasoningKeywords.some((keyword) => model.id.toLowerCase().includes(keyword)) ||
|
37
|
+
knownModel?.abilities?.reasoning ||
|
38
|
+
false,
|
39
|
+
vision: knownModel?.abilities?.vision || false,
|
44
40
|
};
|
45
41
|
})
|
46
42
|
.filter(Boolean) as ChatModelCard[];
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
|
4
|
-
import type { ChatModelCard } from '@/types/llm';
|
5
|
-
|
6
6
|
export interface LMStudioModelCard {
|
7
7
|
id: string;
|
8
8
|
}
|
@@ -16,27 +16,23 @@ export const LobeLMStudioAI = LobeOpenAICompatibleFactory({
|
|
16
16
|
models: async ({ client }) => {
|
17
17
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
18
18
|
|
19
|
-
const modelsPage = await client.models.list() as any;
|
19
|
+
const modelsPage = (await client.models.list()) as any;
|
20
20
|
const modelList: LMStudioModelCard[] = modelsPage.data;
|
21
21
|
|
22
22
|
return modelList
|
23
23
|
.map((model) => {
|
24
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
24
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
25
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
26
|
+
);
|
25
27
|
|
26
28
|
return {
|
27
29
|
contextWindowTokens: knownModel?.contextWindowTokens ?? undefined,
|
28
30
|
displayName: knownModel?.displayName ?? undefined,
|
29
31
|
enabled: knownModel?.enabled || false,
|
30
|
-
functionCall:
|
31
|
-
knownModel?.abilities?.functionCall
|
32
|
-
|| false,
|
32
|
+
functionCall: knownModel?.abilities?.functionCall || false,
|
33
33
|
id: model.id,
|
34
|
-
reasoning:
|
35
|
-
|
36
|
-
|| false,
|
37
|
-
vision:
|
38
|
-
knownModel?.abilities?.vision
|
39
|
-
|| false,
|
34
|
+
reasoning: knownModel?.abilities?.reasoning || false,
|
35
|
+
vision: knownModel?.abilities?.vision || false,
|
40
36
|
};
|
41
37
|
})
|
42
38
|
.filter(Boolean) as ChatModelCard[];
|
@@ -1,10 +1,10 @@
|
|
1
|
+
import minimaxChatModels from '@/config/aiModels/minimax';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
|
4
|
-
import minimaxChatModels from '@/config/aiModels/minimax';
|
5
|
-
|
6
6
|
export const getMinimaxMaxOutputs = (modelId: string): number | undefined => {
|
7
|
-
const model = minimaxChatModels.find(model => model.id === modelId);
|
7
|
+
const model = minimaxChatModels.find((model) => model.id === modelId);
|
8
8
|
return model ? model.maxOutput : undefined;
|
9
9
|
};
|
10
10
|
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ChatStreamPayload, ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
|
4
|
-
import type { ChatModelCard } from '@/types/llm';
|
5
|
-
|
6
6
|
export interface MoonshotModelCard {
|
7
7
|
id: string;
|
8
8
|
}
|
@@ -13,15 +13,17 @@ export const LobeMoonshotAI = LobeOpenAICompatibleFactory({
|
|
13
13
|
handlePayload: (payload: ChatStreamPayload) => {
|
14
14
|
const { enabledSearch, temperature, tools, ...rest } = payload;
|
15
15
|
|
16
|
-
const moonshotTools = enabledSearch
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
16
|
+
const moonshotTools = enabledSearch
|
17
|
+
? [
|
18
|
+
...(tools || []),
|
19
|
+
{
|
20
|
+
function: {
|
21
|
+
name: '$web_search',
|
22
|
+
},
|
23
|
+
type: 'builtin_function',
|
24
|
+
},
|
25
|
+
]
|
26
|
+
: tools;
|
25
27
|
|
26
28
|
return {
|
27
29
|
...rest,
|
@@ -36,39 +38,33 @@ export const LobeMoonshotAI = LobeOpenAICompatibleFactory({
|
|
36
38
|
models: async ({ client }) => {
|
37
39
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
38
40
|
|
39
|
-
const functionCallKeywords = [
|
40
|
-
'moonshot-v1',
|
41
|
-
'kimi-latest',
|
42
|
-
]
|
41
|
+
const functionCallKeywords = ['moonshot-v1', 'kimi-latest'];
|
43
42
|
|
44
|
-
const visionKeywords = [
|
45
|
-
'kimi-latest',
|
46
|
-
'vision',
|
47
|
-
]
|
43
|
+
const visionKeywords = ['kimi-latest', 'vision'];
|
48
44
|
|
49
|
-
const modelsPage = await client.models.list() as any;
|
45
|
+
const modelsPage = (await client.models.list()) as any;
|
50
46
|
const modelList: MoonshotModelCard[] = modelsPage.data;
|
51
47
|
|
52
48
|
return modelList
|
53
49
|
.map((model) => {
|
54
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
50
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
51
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
52
|
+
);
|
55
53
|
|
56
54
|
return {
|
57
55
|
contextWindowTokens: knownModel?.contextWindowTokens ?? undefined,
|
58
56
|
displayName: knownModel?.displayName ?? undefined,
|
59
57
|
enabled: knownModel?.enabled || false,
|
60
58
|
functionCall:
|
61
|
-
functionCallKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
62
|
-
|
63
|
-
|
59
|
+
functionCallKeywords.some((keyword) => model.id.toLowerCase().includes(keyword)) ||
|
60
|
+
knownModel?.abilities?.functionCall ||
|
61
|
+
false,
|
64
62
|
id: model.id,
|
65
|
-
reasoning:
|
66
|
-
knownModel?.abilities?.reasoning
|
67
|
-
|| false,
|
63
|
+
reasoning: knownModel?.abilities?.reasoning || false,
|
68
64
|
vision:
|
69
|
-
visionKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
70
|
-
|
71
|
-
|
65
|
+
visionKeywords.some((keyword) => model.id.toLowerCase().includes(keyword)) ||
|
66
|
+
knownModel?.abilities?.vision ||
|
67
|
+
false,
|
72
68
|
};
|
73
69
|
})
|
74
70
|
.filter(Boolean) as ChatModelCard[];
|
@@ -1,9 +1,9 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
import { NovitaModelCard } from './type';
|
4
6
|
|
5
|
-
import type { ChatModelCard } from '@/types/llm';
|
6
|
-
|
7
7
|
export const LobeNovitaAI = LobeOpenAICompatibleFactory({
|
8
8
|
baseURL: 'https://api.novita.ai/v3/openai',
|
9
9
|
constructorOptions: {
|
@@ -17,16 +17,16 @@ export const LobeNovitaAI = LobeOpenAICompatibleFactory({
|
|
17
17
|
models: async ({ client }) => {
|
18
18
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
19
19
|
|
20
|
-
const reasoningKeywords = [
|
21
|
-
'deepseek-r1',
|
22
|
-
];
|
20
|
+
const reasoningKeywords = ['deepseek-r1'];
|
23
21
|
|
24
|
-
const modelsPage = await client.models.list() as any;
|
22
|
+
const modelsPage = (await client.models.list()) as any;
|
25
23
|
const modelList: NovitaModelCard[] = modelsPage.data;
|
26
24
|
|
27
25
|
return modelList
|
28
26
|
.map((model) => {
|
29
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
27
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
28
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
29
|
+
);
|
30
30
|
|
31
31
|
return {
|
32
32
|
contextWindowTokens: model.context_size,
|
@@ -34,19 +34,19 @@ export const LobeNovitaAI = LobeOpenAICompatibleFactory({
|
|
34
34
|
displayName: model.title,
|
35
35
|
enabled: knownModel?.enabled || false,
|
36
36
|
functionCall:
|
37
|
-
model.description.toLowerCase().includes('function calling')
|
38
|
-
|
39
|
-
|
37
|
+
model.description.toLowerCase().includes('function calling') ||
|
38
|
+
knownModel?.abilities?.functionCall ||
|
39
|
+
false,
|
40
40
|
id: model.id,
|
41
41
|
reasoning:
|
42
|
-
model.description.toLowerCase().includes('reasoning task')
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
model.description.toLowerCase().includes('reasoning task') ||
|
43
|
+
reasoningKeywords.some((keyword) => model.id.toLowerCase().includes(keyword)) ||
|
44
|
+
knownModel?.abilities?.reasoning ||
|
45
|
+
false,
|
46
46
|
vision:
|
47
|
-
model.description.toLowerCase().includes('vision')
|
48
|
-
|
49
|
-
|
47
|
+
model.description.toLowerCase().includes('vision') ||
|
48
|
+
knownModel?.abilities?.vision ||
|
49
|
+
false,
|
50
50
|
};
|
51
51
|
})
|
52
52
|
.filter(Boolean) as ChatModelCard[];
|
@@ -1,8 +1,8 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
|
4
|
-
import type { ChatModelCard } from '@/types/llm';
|
5
|
-
|
6
6
|
export interface NvidiaModelCard {
|
7
7
|
id: string;
|
8
8
|
}
|
@@ -15,27 +15,23 @@ export const LobeNvidiaAI = LobeOpenAICompatibleFactory({
|
|
15
15
|
models: async ({ client }) => {
|
16
16
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
17
17
|
|
18
|
-
const modelsPage = await client.models.list() as any;
|
18
|
+
const modelsPage = (await client.models.list()) as any;
|
19
19
|
const modelList: NvidiaModelCard[] = modelsPage.data;
|
20
20
|
|
21
21
|
return modelList
|
22
22
|
.map((model) => {
|
23
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
23
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
24
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
25
|
+
);
|
24
26
|
|
25
27
|
return {
|
26
28
|
contextWindowTokens: knownModel?.contextWindowTokens ?? undefined,
|
27
29
|
displayName: knownModel?.displayName ?? undefined,
|
28
30
|
enabled: knownModel?.enabled || false,
|
29
|
-
functionCall:
|
30
|
-
knownModel?.abilities?.functionCall
|
31
|
-
|| false,
|
31
|
+
functionCall: knownModel?.abilities?.functionCall || false,
|
32
32
|
id: model.id,
|
33
|
-
reasoning:
|
34
|
-
|
35
|
-
|| false,
|
36
|
-
vision:
|
37
|
-
knownModel?.abilities?.vision
|
38
|
-
|| false,
|
33
|
+
reasoning: knownModel?.abilities?.reasoning || false,
|
34
|
+
vision: knownModel?.abilities?.vision || false,
|
39
35
|
};
|
40
36
|
})
|
41
37
|
.filter(Boolean) as ChatModelCard[];
|
@@ -11,17 +11,14 @@
|
|
11
11
|
"output_token_price_per_m": 160000,
|
12
12
|
"title": "deepseek/deepseek-r1/community",
|
13
13
|
"description": "DeepSeek R1是DeepSeek团队发布的最新开源模型,具备非常强悍的推理性能,尤其在数学、编程和推理任务上达到了与OpenAI的o1模型相当的水平。",
|
14
|
-
"tags": [
|
15
|
-
"全参数",
|
16
|
-
"满血版"
|
17
|
-
],
|
14
|
+
"tags": ["全参数", "满血版"],
|
18
15
|
"context_size": 64000,
|
19
16
|
"status": 1,
|
20
17
|
"display_name": "DeepSeek: DeepSeek R1 (community)"
|
21
18
|
},
|
22
19
|
{
|
23
20
|
"created": 1738928844,
|
24
|
-
"id": "deepseek/deepseek-v3/community",
|
21
|
+
"id": "deepseek/deepseek-v3/community",
|
25
22
|
"object": "model",
|
26
23
|
"owned_by": "unknown",
|
27
24
|
"permission": null,
|
@@ -31,12 +28,9 @@
|
|
31
28
|
"output_token_price_per_m": 20000,
|
32
29
|
"title": "deepseek/deepseek-v3/community",
|
33
30
|
"description": "DeepSeek-V3在推理速度方面实现了比之前模型的重大突破。在开源模型中排名第一,并可与全球最先进的闭源模型相媲美。DeepSeek-V3 采用了多头潜在注意力 (MLA) 和 DeepSeekMoE 架构,这些架构在 DeepSeek-V2 中得到了全面验证。此外,DeepSeek-V3 开创了一种用于负载均衡的辅助无损策略,并设定了多标记预测训练目标以获得更强的性能。",
|
34
|
-
"tags": [
|
35
|
-
"全参数",
|
36
|
-
"满血版"
|
37
|
-
],
|
31
|
+
"tags": ["全参数", "满血版"],
|
38
32
|
"context_size": 64000,
|
39
33
|
"status": 1,
|
40
34
|
"display_name": "DeepSeek: DeepSeek V3 (community)"
|
41
35
|
}
|
42
|
-
]
|
36
|
+
]
|
@@ -1,9 +1,9 @@
|
|
1
|
+
import type { ChatModelCard } from '@/types/llm';
|
2
|
+
|
1
3
|
import { ModelProvider } from '../types';
|
2
4
|
import { LobeOpenAICompatibleFactory } from '../utils/openaiCompatibleFactory';
|
3
5
|
import { PPIOModelCard } from './type';
|
4
6
|
|
5
|
-
import type { ChatModelCard } from '@/types/llm';
|
6
|
-
|
7
7
|
export const LobePPIOAI = LobeOpenAICompatibleFactory({
|
8
8
|
baseURL: 'https://api.ppinfra.com/v3/openai',
|
9
9
|
constructorOptions: {
|
@@ -17,32 +17,37 @@ export const LobePPIOAI = LobeOpenAICompatibleFactory({
|
|
17
17
|
models: async ({ client }) => {
|
18
18
|
const { LOBE_DEFAULT_MODEL_LIST } = await import('@/config/aiModels');
|
19
19
|
|
20
|
-
const reasoningKeywords = [
|
21
|
-
'deepseek-r1',
|
22
|
-
];
|
20
|
+
const reasoningKeywords = ['deepseek-r1'];
|
23
21
|
|
24
|
-
const modelsPage = await client.models.list() as any;
|
22
|
+
const modelsPage = (await client.models.list()) as any;
|
25
23
|
const modelList: PPIOModelCard[] = modelsPage.data;
|
26
24
|
|
27
25
|
return modelList
|
28
26
|
.map((model) => {
|
29
|
-
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
27
|
+
const knownModel = LOBE_DEFAULT_MODEL_LIST.find(
|
28
|
+
(m) => model.id.toLowerCase() === m.id.toLowerCase(),
|
29
|
+
);
|
30
30
|
|
31
31
|
return {
|
32
32
|
contextWindowTokens: model.context_size,
|
33
33
|
description: model.description,
|
34
|
-
displayName:
|
34
|
+
displayName:
|
35
|
+
model.display_name?.replace(/[\t()]/g, (match) =>
|
36
|
+
match === '(' ? ' (' : match === ')' ? ')' : '',
|
37
|
+
) ||
|
38
|
+
model.title ||
|
39
|
+
model.id,
|
35
40
|
enabled: knownModel?.enabled || false,
|
36
41
|
functionCall: knownModel?.abilities?.functionCall || false,
|
37
42
|
id: model.id,
|
38
43
|
reasoning:
|
39
|
-
reasoningKeywords.some(keyword => model.id.toLowerCase().includes(keyword))
|
40
|
-
|
41
|
-
|
44
|
+
reasoningKeywords.some((keyword) => model.id.toLowerCase().includes(keyword)) ||
|
45
|
+
knownModel?.abilities?.reasoning ||
|
46
|
+
false,
|
42
47
|
vision:
|
43
|
-
model.description.toLowerCase().includes('视觉')
|
44
|
-
|
45
|
-
|
48
|
+
model.description.toLowerCase().includes('视觉') ||
|
49
|
+
knownModel?.abilities?.vision ||
|
50
|
+
false,
|
46
51
|
};
|
47
52
|
})
|
48
53
|
.filter(Boolean) as ChatModelCard[];
|