@lobehub/lobehub 2.0.0-next.273 → 2.0.0-next.275
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 +59 -0
- package/changelog/v1.json +18 -0
- package/locales/ar/chat.json +7 -0
- package/locales/ar/models.json +2 -3
- package/locales/ar/plugin.json +22 -1
- package/locales/bg-BG/chat.json +7 -0
- package/locales/bg-BG/models.json +3 -3
- package/locales/bg-BG/plugin.json +22 -1
- package/locales/de-DE/chat.json +7 -0
- package/locales/de-DE/models.json +3 -4
- package/locales/de-DE/plugin.json +22 -1
- package/locales/en-US/chat.json +7 -0
- package/locales/en-US/models.json +5 -5
- package/locales/en-US/plugin.json +22 -1
- package/locales/es-ES/chat.json +7 -0
- package/locales/es-ES/models.json +3 -4
- package/locales/es-ES/plugin.json +22 -1
- package/locales/fa-IR/chat.json +7 -0
- package/locales/fa-IR/models.json +3 -4
- package/locales/fa-IR/plugin.json +22 -1
- package/locales/fr-FR/chat.json +7 -0
- package/locales/fr-FR/models.json +50 -3
- package/locales/fr-FR/plugin.json +22 -1
- package/locales/it-IT/chat.json +7 -0
- package/locales/it-IT/models.json +3 -3
- package/locales/it-IT/plugin.json +22 -1
- package/locales/ja-JP/chat.json +7 -0
- package/locales/ja-JP/models.json +43 -4
- package/locales/ja-JP/plugin.json +22 -1
- package/locales/ko-KR/chat.json +7 -0
- package/locales/ko-KR/models.json +3 -4
- package/locales/ko-KR/plugin.json +22 -1
- package/locales/nl-NL/chat.json +7 -0
- package/locales/nl-NL/models.json +51 -3
- package/locales/nl-NL/plugin.json +22 -1
- package/locales/pl-PL/chat.json +7 -0
- package/locales/pl-PL/models.json +3 -3
- package/locales/pl-PL/plugin.json +22 -1
- package/locales/pt-BR/chat.json +7 -0
- package/locales/pt-BR/models.json +3 -4
- package/locales/pt-BR/plugin.json +22 -1
- package/locales/ru-RU/chat.json +7 -0
- package/locales/ru-RU/models.json +3 -4
- package/locales/ru-RU/plugin.json +22 -1
- package/locales/tr-TR/chat.json +7 -0
- package/locales/tr-TR/models.json +3 -4
- package/locales/tr-TR/plugin.json +22 -1
- package/locales/vi-VN/chat.json +7 -0
- package/locales/vi-VN/models.json +3 -3
- package/locales/vi-VN/plugin.json +22 -1
- package/locales/zh-CN/chat.json +7 -0
- package/locales/zh-CN/models.json +54 -4
- package/locales/zh-CN/plugin.json +22 -1
- package/locales/zh-TW/chat.json +7 -0
- package/locales/zh-TW/models.json +43 -4
- package/locales/zh-TW/plugin.json +22 -1
- package/package.json +2 -2
- package/packages/builtin-tool-agent-builder/package.json +1 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/GetAvailableModels/index.tsx +66 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/InstallPlugin/index.tsx +63 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/SearchMarketTools/index.tsx +64 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/UpdateConfig/index.tsx +94 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/UpdatePrompt/index.tsx +96 -0
- package/packages/builtin-tool-agent-builder/src/client/Inspector/index.ts +29 -0
- package/packages/builtin-tool-agent-builder/src/client/index.ts +13 -0
- package/packages/builtin-tool-agent-builder/src/executor.ts +132 -0
- package/packages/builtin-tool-cloud-sandbox/src/client/Inspector/ExecuteCode/index.tsx +5 -14
- package/packages/builtin-tool-cloud-sandbox/src/client/Inspector/RunCommand/index.tsx +5 -13
- package/packages/builtin-tool-group-agent-builder/package.json +7 -1
- package/packages/builtin-tool-group-agent-builder/src/ExecutionRuntime/index.ts +331 -87
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/BatchCreateAgents/index.tsx +110 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/CreateAgent/index.tsx +72 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/InviteAgent/index.tsx +57 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/RemoveAgent/index.tsx +57 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/SearchAgent/index.tsx +66 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateAgentPrompt/index.tsx +120 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroup/index.tsx +87 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/UpdateGroupPrompt/index.tsx +99 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Inspector/index.ts +52 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/BatchCreateAgents.tsx +103 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/UpdateAgentPrompt/index.tsx +36 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/UpdateGroupPrompt/index.tsx +36 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Render/index.ts +16 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/BatchCreateAgents/index.tsx +88 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/UpdateAgentPrompt/index.tsx +37 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/UpdateGroupPrompt/index.tsx +35 -0
- package/packages/builtin-tool-group-agent-builder/src/client/Streaming/index.ts +22 -0
- package/packages/builtin-tool-group-agent-builder/src/client/index.ts +26 -0
- package/packages/builtin-tool-group-agent-builder/src/executor.ts +284 -0
- package/packages/builtin-tool-group-agent-builder/src/index.ts +1 -14
- package/packages/builtin-tool-group-agent-builder/src/manifest.ts +160 -15
- package/packages/builtin-tool-group-agent-builder/src/systemRole.ts +232 -46
- package/packages/builtin-tool-group-agent-builder/src/types.ts +191 -41
- package/packages/builtin-tool-group-management/src/client/Inspector/Broadcast/index.tsx +2 -2
- package/packages/builtin-tool-group-management/src/manifest.ts +1 -1
- package/packages/builtin-tool-gtd/src/client/Inspector/ClearTodos/index.tsx +5 -11
- package/packages/builtin-tool-gtd/src/client/Inspector/CompleteTodos/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/CreatePlan/index.tsx +6 -15
- package/packages/builtin-tool-gtd/src/client/Inspector/CreateTodos/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/ExecTask/index.tsx +6 -17
- package/packages/builtin-tool-gtd/src/client/Inspector/RemoveTodos/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/UpdatePlan/index.tsx +3 -9
- package/packages/builtin-tool-gtd/src/client/Inspector/UpdateTodos/index.tsx +3 -9
- package/packages/builtin-tool-knowledge-base/src/client/Inspector/ReadKnowledge/index.tsx +4 -16
- package/packages/builtin-tool-knowledge-base/src/client/Inspector/SearchKnowledgeBase/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/EditLocalFile/index.tsx +4 -12
- package/packages/builtin-tool-local-system/src/client/Inspector/GlobLocalFiles/index.tsx +5 -13
- package/packages/builtin-tool-local-system/src/client/Inspector/GrepContent/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/ListLocalFiles/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/ReadLocalFile/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/RenameLocalFile/index.tsx +5 -11
- package/packages/builtin-tool-local-system/src/client/Inspector/RunCommand/index.tsx +5 -13
- package/packages/builtin-tool-local-system/src/client/Inspector/SearchLocalFiles/index.tsx +5 -16
- package/packages/builtin-tool-local-system/src/client/Inspector/WriteLocalFile/index.tsx +6 -15
- package/packages/builtin-tool-notebook/src/client/Inspector/CreateDocument/index.tsx +7 -15
- package/packages/builtin-tool-page-agent/src/client/Inspector/EditTitle/index.tsx +5 -14
- package/packages/builtin-tool-page-agent/src/client/Inspector/GetPageContent/index.tsx +7 -8
- package/packages/builtin-tool-page-agent/src/client/Inspector/InitPage/index.tsx +4 -10
- package/packages/builtin-tool-page-agent/src/client/Inspector/ModifyNodes/index.tsx +3 -9
- package/packages/builtin-tool-page-agent/src/client/Inspector/ReplaceText/index.tsx +5 -11
- package/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlMultiPages/index.tsx +6 -15
- package/packages/builtin-tool-web-browsing/src/client/Inspector/CrawlSinglePage/index.tsx +6 -15
- package/packages/builtin-tool-web-browsing/src/client/Inspector/Search/index.tsx +4 -15
- package/packages/database/src/models/chatGroup.ts +1 -1
- package/packages/model-bank/src/aiModels/aihubmix.ts +2 -1
- package/packages/model-bank/src/aiModels/google.ts +2 -1
- package/packages/model-bank/src/aiModels/infiniai.ts +9 -6
- package/packages/model-bank/src/aiModels/minimax.ts +9 -5
- package/packages/model-bank/src/aiModels/ollamacloud.ts +4 -2
- package/packages/model-bank/src/aiModels/vertexai.ts +2 -1
- package/packages/types/src/agentGroup/index.ts +8 -0
- package/patches/@upstash__qstash.patch +13 -1
- package/src/app/[variants]/(main)/agent/_layout/Sidebar/Header/Nav.tsx +1 -1
- package/src/app/[variants]/(main)/agent/cron/[cronId]/index.tsx +4 -3
- package/src/app/[variants]/(main)/agent/profile/features/ProfileEditor/index.tsx +1 -1
- package/src/app/[variants]/(main)/agent/profile/features/store/action.ts +18 -21
- package/src/app/[variants]/(main)/community/(detail)/features/MakedownRender.tsx +8 -6
- package/src/app/[variants]/(main)/group/_layout/GroupIdSync.tsx +6 -1
- package/src/app/[variants]/(main)/group/_layout/Sidebar/GroupConfig/AgentProfilePopup.tsx +29 -21
- package/src/app/[variants]/(main)/group/_layout/Sidebar/GroupConfig/GroupMember.tsx +1 -0
- package/src/app/[variants]/(main)/group/_layout/Sidebar/GroupConfig/GroupMemberItem.tsx +35 -18
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Header/AddTopicButon.tsx +2 -10
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Header/Nav.tsx +10 -2
- package/src/app/[variants]/(main)/group/_layout/Sidebar/Header/index.tsx +1 -2
- package/src/app/[variants]/(main)/group/profile/features/AgentBuilder/AgentBuilderProvider.tsx +1 -0
- package/src/app/[variants]/(main)/group/profile/features/AgentBuilder/TopicSelector.tsx +15 -9
- package/src/app/[variants]/(main)/group/profile/features/AgentBuilder/index.tsx +12 -6
- package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor/AgentHeader.tsx → GroupProfile/GroupHeader.tsx} +22 -29
- package/src/app/[variants]/(main)/group/profile/features/GroupProfile/index.tsx +96 -0
- package/src/app/[variants]/(main)/group/profile/features/Header/AgentBuilderToggle.tsx +3 -4
- package/src/app/[variants]/(main)/group/profile/features/Header/AutoSaveHint.tsx +11 -7
- package/src/app/[variants]/(main)/group/profile/features/Header/ChromeTabs/index.tsx +147 -0
- package/src/app/[variants]/(main)/group/profile/features/Header/index.tsx +104 -13
- package/src/app/[variants]/(main)/group/profile/features/MemberProfile/AgentHeader.tsx +222 -0
- package/src/app/[variants]/(main)/group/profile/features/MemberProfile/index.tsx +155 -0
- package/src/app/[variants]/(main)/group/profile/features/ProfileHydration.tsx +63 -5
- package/src/app/[variants]/(main)/group/profile/index.tsx +34 -37
- package/src/app/[variants]/(main)/settings/proxy/features/ProxyForm.tsx +156 -253
- package/src/app/[variants]/(main)/settings/proxy/index.tsx +1 -3
- package/src/app/[variants]/(mobile)/(home)/_layout/SessionHydration.tsx +1 -1
- package/src/app/[variants]/(mobile)/(home)/features/SessionListContent/List/Item/index.tsx +1 -1
- package/src/features/AgentBuilder/index.tsx +16 -1
- package/src/features/Conversation/Messages/AssistantGroup/Tool/Inspector/StatusIndicator.tsx +3 -2
- package/src/features/Conversation/Messages/User/useMarkdown.tsx +1 -0
- package/src/features/EditorCanvas/EditorCanvas.test.tsx +206 -0
- package/src/features/EditorCanvas/EditorDataMode.tsx +53 -19
- package/src/features/EditorModal/index.tsx +2 -2
- package/src/features/NavPanel/components/SessionHydration.tsx +1 -1
- package/src/features/PageEditor/EditorCanvas/useAskCopilotItem.tsx +10 -6
- package/src/features/PageEditor/Header/index.tsx +12 -10
- package/src/features/PageEditor/Header/useMenu.tsx +45 -48
- package/src/features/RightPanel/ToggleRightPanelButton.tsx +3 -1
- package/src/features/ShareModal/ShareImage/ChatList/index.tsx +1 -1
- package/src/features/ShareModal/SharePdf/index.tsx +1 -1
- package/src/hooks/useBidirectionalQuerySync.ts +112 -0
- package/src/locales/default/chat.ts +10 -0
- package/src/locales/default/plugin.ts +22 -1
- package/src/server/modules/AgentRuntime/RuntimeExecutors.ts +45 -45
- package/src/server/modules/KeyVaultsEncrypt/index.ts +6 -6
- package/src/server/modules/S3/index.ts +1 -1
- package/src/server/routers/lambda/agent.ts +24 -0
- package/src/server/routers/lambda/agentGroup.ts +39 -0
- package/src/services/agent.ts +22 -0
- package/src/services/chatGroup/index.ts +14 -0
- package/src/store/agent/selectors/selectors.ts +3 -0
- package/src/store/agentGroup/initialState.ts +6 -0
- package/src/store/agentGroup/selectors/byId.ts +3 -1
- package/src/store/agentGroup/selectors/current.ts +2 -2
- package/src/store/agentGroup/slices/lifecycle.ts +18 -0
- package/src/store/chat/agents/__tests__/createAgentExecutors/fixtures/mockStore.ts +1 -1
- package/src/store/chat/slices/aiAgent/actions/__tests__/agentGroup.test.ts +4 -1
- package/src/store/chat/slices/aiAgent/actions/agentGroup.ts +1 -1
- package/src/store/chat/slices/aiChat/actions/__tests__/conversationLifecycle.test.ts +65 -0
- package/src/store/chat/slices/aiChat/actions/conversationLifecycle.ts +2 -1
- package/src/store/chat/slices/builtinTool/actions/__tests__/search.test.ts +1 -1
- package/src/store/chat/slices/builtinTool/actions/index.ts +1 -6
- package/src/store/chat/slices/message/action.test.ts +5 -5
- package/src/store/chat/slices/message/actions/publicApi.ts +5 -5
- package/src/store/chat/slices/message/initialState.ts +0 -5
- package/src/store/chat/slices/message/selectors/displayMessage.test.ts +4 -4
- package/src/store/chat/slices/plugin/action.test.ts +54 -19
- package/src/store/chat/slices/plugin/actions/pluginTypes.ts +15 -21
- package/src/store/chat/slices/topic/action.test.ts +74 -24
- package/src/store/chat/slices/topic/action.ts +21 -13
- package/src/store/chat/slices/topic/selectors.test.ts +1 -1
- package/src/store/global/initialState.ts +10 -0
- package/src/store/global/selectors/systemStatus.ts +5 -0
- package/src/store/groupProfile/action.ts +168 -0
- package/src/store/groupProfile/index.ts +16 -0
- package/src/{app/[variants]/(main)/group/profile/features/store → store/groupProfile}/initialState.ts +17 -0
- package/src/store/groupProfile/selectors.ts +13 -0
- package/src/store/tool/slices/builtin/executors/index.ts +4 -0
- package/src/styles/text.ts +16 -0
- package/src/tools/inspectors.ts +13 -0
- package/src/tools/renders.ts +3 -0
- package/src/tools/streamings.ts +8 -0
- package/tests/mocks/lru_map.ts +40 -0
- package/vitest.config.mts +9 -1
- package/src/app/[variants]/(main)/group/profile/features/EditorCanvas/TypoBar.tsx +0 -129
- package/src/app/[variants]/(main)/group/profile/features/EditorCanvas/index.tsx +0 -138
- package/src/app/[variants]/(main)/group/profile/features/EditorCanvas/useSlashItems.tsx +0 -139
- package/src/app/[variants]/(main)/group/profile/features/ProfileEditor/index.tsx +0 -82
- package/src/app/[variants]/(main)/group/profile/features/ProfileProvider.tsx +0 -20
- package/src/app/[variants]/(main)/group/profile/features/StoreUpdater.tsx +0 -24
- package/src/app/[variants]/(main)/group/profile/features/store/action.ts +0 -163
- package/src/app/[variants]/(main)/group/profile/features/store/index.ts +0 -23
- package/src/app/[variants]/(main)/group/profile/features/store/selectors.ts +0 -7
- package/src/features/EditorModal/EditorCanvas.tsx +0 -84
- package/src/features/EditorModal/Typobar.tsx +0 -139
- package/src/store/chat/slices/builtinTool/actions/agentBuilder.ts +0 -192
- package/src/store/chat/slices/builtinTool/actions/groupAgentBuilder.ts +0 -242
- package/src/tools/executionRuntimes.ts +0 -14
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/AgentTool.tsx +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/MentionDropdown.tsx +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/index.tsx +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/types.ts +0 -0
- /package/src/app/[variants]/(main)/group/profile/features/{ProfileEditor → MemberProfile}/MentionList/useMentionItems.tsx +0 -0
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"builtins.lobe-agent-builder.apiName.getConfig": "Lấy cấu hình",
|
|
6
6
|
"builtins.lobe-agent-builder.apiName.getMeta": "Lấy siêu dữ liệu",
|
|
7
7
|
"builtins.lobe-agent-builder.apiName.getPrompt": "Lấy lời nhắc hệ thống",
|
|
8
|
+
"builtins.lobe-agent-builder.apiName.installPlugin": "Cài đặt Kỹ năng",
|
|
8
9
|
"builtins.lobe-agent-builder.apiName.searchMarketTools": "Tìm kiếm Kỹ năng trên chợ",
|
|
9
10
|
"builtins.lobe-agent-builder.apiName.searchOfficialTools": "Tìm kiếm Kỹ năng chính thức",
|
|
10
11
|
"builtins.lobe-agent-builder.apiName.setModel": "Thiết lập mô hình",
|
|
@@ -15,6 +16,12 @@
|
|
|
15
16
|
"builtins.lobe-agent-builder.apiName.updateConfig": "Cập nhật cấu hình",
|
|
16
17
|
"builtins.lobe-agent-builder.apiName.updateMeta": "Cập nhật siêu dữ liệu",
|
|
17
18
|
"builtins.lobe-agent-builder.apiName.updatePrompt": "Cập nhật lời nhắc hệ thống",
|
|
19
|
+
"builtins.lobe-agent-builder.inspector.chars": " ký tự",
|
|
20
|
+
"builtins.lobe-agent-builder.inspector.disablePlugin": "Vô hiệu hóa",
|
|
21
|
+
"builtins.lobe-agent-builder.inspector.enablePlugin": "Kích hoạt",
|
|
22
|
+
"builtins.lobe-agent-builder.inspector.modelsCount": "{{count}} mô hình",
|
|
23
|
+
"builtins.lobe-agent-builder.inspector.noResults": "Không có kết quả",
|
|
24
|
+
"builtins.lobe-agent-builder.inspector.togglePlugin": "Chuyển đổi",
|
|
18
25
|
"builtins.lobe-agent-builder.title": "Chuyên gia Xây dựng Tác nhân",
|
|
19
26
|
"builtins.lobe-cloud-sandbox.apiName.editLocalFile": "Chỉnh sửa tệp",
|
|
20
27
|
"builtins.lobe-cloud-sandbox.apiName.executeCode": "Thực thi mã",
|
|
@@ -31,13 +38,27 @@
|
|
|
31
38
|
"builtins.lobe-cloud-sandbox.apiName.searchLocalFiles": "Tìm kiếm tệp",
|
|
32
39
|
"builtins.lobe-cloud-sandbox.apiName.writeLocalFile": "Ghi tệp",
|
|
33
40
|
"builtins.lobe-cloud-sandbox.title": "Môi trường Đám mây",
|
|
41
|
+
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "Tạo hàng loạt tác nhân",
|
|
42
|
+
"builtins.lobe-group-agent-builder.apiName.createAgent": "Tạo tác nhân",
|
|
34
43
|
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "Lấy mô hình khả dụng",
|
|
35
44
|
"builtins.lobe-group-agent-builder.apiName.installPlugin": "Cài đặt Kỹ năng",
|
|
36
45
|
"builtins.lobe-group-agent-builder.apiName.inviteAgent": "Mời thành viên",
|
|
37
46
|
"builtins.lobe-group-agent-builder.apiName.removeAgent": "Xóa thành viên",
|
|
47
|
+
"builtins.lobe-group-agent-builder.apiName.searchAgent": "Tìm kiếm tác nhân",
|
|
38
48
|
"builtins.lobe-group-agent-builder.apiName.searchMarketTools": "Tìm kiếm Kỹ năng trên chợ",
|
|
39
49
|
"builtins.lobe-group-agent-builder.apiName.updateAgentConfig": "Cập nhật cấu hình tác nhân",
|
|
40
|
-
"builtins.lobe-group-agent-builder.apiName.
|
|
50
|
+
"builtins.lobe-group-agent-builder.apiName.updateAgentPrompt": "Cập nhật lời nhắc tác nhân",
|
|
51
|
+
"builtins.lobe-group-agent-builder.apiName.updateGroup": "Cập nhật nhóm",
|
|
52
|
+
"builtins.lobe-group-agent-builder.apiName.updateGroupPrompt": "Cập nhật lời nhắc nhóm",
|
|
53
|
+
"builtins.lobe-group-agent-builder.apiName.updateSupervisorPrompt": "Cập nhật lời nhắc giám sát",
|
|
54
|
+
"builtins.lobe-group-agent-builder.inspector.agents": "tác nhân",
|
|
55
|
+
"builtins.lobe-group-agent-builder.inspector.avatar": "Ảnh đại diện",
|
|
56
|
+
"builtins.lobe-group-agent-builder.inspector.backgroundColor": "Màu nền",
|
|
57
|
+
"builtins.lobe-group-agent-builder.inspector.description": "Mô tả",
|
|
58
|
+
"builtins.lobe-group-agent-builder.inspector.noResults": "Không có kết quả",
|
|
59
|
+
"builtins.lobe-group-agent-builder.inspector.openingMessage": "Tin nhắn mở đầu",
|
|
60
|
+
"builtins.lobe-group-agent-builder.inspector.openingQuestions": "Câu hỏi mở đầu",
|
|
61
|
+
"builtins.lobe-group-agent-builder.inspector.title": "Tiêu đề",
|
|
41
62
|
"builtins.lobe-group-agent-builder.title": "Chuyên gia Xây dựng Nhóm",
|
|
42
63
|
"builtins.lobe-group-management.apiName.broadcast": "Tất cả cùng nói",
|
|
43
64
|
"builtins.lobe-group-management.apiName.createAgent": "Thêm thành viên nhóm",
|
package/locales/zh-CN/chat.json
CHANGED
|
@@ -71,11 +71,18 @@
|
|
|
71
71
|
"group.desc": "在同一对话空间,让多个助理一起推进任务",
|
|
72
72
|
"group.memberTooltip": "群组内有 {{count}} 名成员",
|
|
73
73
|
"group.orchestratorThinking": "主持人思考中…",
|
|
74
|
+
"group.profile.contentPlaceholder": "在此设定群组的目标/工作模式等,这些信息将会共享给所有群组成员",
|
|
75
|
+
"group.profile.external": "外部",
|
|
76
|
+
"group.profile.externalAgentWarning": "这是一个外部代理。此处所做的更改将直接修改原始代理配置。",
|
|
77
|
+
"group.profile.groupSettings": "群组设定",
|
|
78
|
+
"group.profile.supervisor": "群组主管",
|
|
79
|
+
"group.profile.supervisorPlaceholder": "群组主管负责协调不同 Agent,在此设定主管的信息可以使得协调工作流更加精准",
|
|
74
80
|
"group.removeMember": "移除成员",
|
|
75
81
|
"group.title": "群组",
|
|
76
82
|
"groupDescription": "群组描述",
|
|
77
83
|
"groupSidebar.agentProfile.chat": "对话",
|
|
78
84
|
"groupSidebar.agentProfile.model": "模型",
|
|
85
|
+
"groupSidebar.agentProfile.settings": "设置",
|
|
79
86
|
"groupSidebar.members.addMember": "添加成员",
|
|
80
87
|
"groupSidebar.members.enableOrchestrator": "启用主持人",
|
|
81
88
|
"groupSidebar.members.memberSettings": "成员设置",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"Meta-Llama-4-Maverick-17B-128E-Instruct-FP8.description": "Llama 4 Maverick 是一款大型 MoE 模型,采用高效专家激活机制,具备强大的推理能力。",
|
|
74
74
|
"MiniMax-M1.description": "一款全新自研推理模型,支持 80K 思维链和 100 万输入,性能媲美全球顶尖模型。",
|
|
75
75
|
"MiniMax-M2-Stable.description": "专为高效编程与智能体工作流打造,具备更高并发能力,适用于商业场景。",
|
|
76
|
-
"MiniMax-M2.1-Lightning.description": "
|
|
77
|
-
"MiniMax-M2.1.description": "
|
|
78
|
-
"MiniMax-M2.description": "
|
|
76
|
+
"MiniMax-M2.1-Lightning.description": "强大的多语言编程能力,全面升级的编程体验。更快、更高效。",
|
|
77
|
+
"MiniMax-M2.1.description": "强大的多语言编程能力,全面升级的编程体验",
|
|
78
|
+
"MiniMax-M2.description": "专为高效编程与智能体工作流打造",
|
|
79
79
|
"MiniMax-Text-01.description": "MiniMax-01 引入超越传统 Transformer 的大规模线性注意力机制,拥有 4560 亿参数,每次激活 459 亿,支持最长 400 万上下文(为 GPT-4o 的 32 倍,Claude-3.5-Sonnet 的 20 倍),性能顶尖。",
|
|
80
80
|
"MiniMaxAI/MiniMax-M1-80k.description": "MiniMax-M1 是一款开源权重的大规模混合注意力推理模型,总参数 4560 亿,每个 token 激活约 459 亿。原生支持 100 万上下文,使用 Flash Attention,在生成 10 万 token 时比 DeepSeek R1 减少 75% FLOPs。采用 MoE 架构,结合 CISPO 和混合注意力 RL 训练,在长输入推理和真实软件工程任务中表现领先。",
|
|
81
81
|
"MiniMaxAI/MiniMax-M2.description": "MiniMax-M2 重新定义了智能体效率。这是一款紧凑、快速、性价比高的 MoE 模型,总参数 2300 亿,激活参数仅 100 亿,专为顶级编程与智能体任务设计,同时保留强大的通用智能。仅用 100 亿激活参数即可媲美更大模型,适用于高效应用场景。",
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
"gemini-2.5-pro-preview-05-06.description": "Gemini 2.5 Pro Preview 是 Google 最先进的推理模型,能够处理代码、数学、STEM 问题,并分析大规模数据集、代码库和长文档。",
|
|
527
527
|
"gemini-2.5-pro-preview-06-05.description": "Gemini 2.5 Pro Preview 是 Google 最先进的推理模型,能够处理代码、数学、STEM 问题,并分析大规模数据集、代码库和长文档。",
|
|
528
528
|
"gemini-2.5-pro.description": "Gemini 2.5 Pro 是 Google 的旗舰推理模型,支持长上下文,适用于复杂任务。",
|
|
529
|
-
"gemini-3-flash-preview.description": "Gemini 3 Flash
|
|
529
|
+
"gemini-3-flash-preview.description": "Gemini 3 Flash 是一款以速度为核心的智能模型,融合前沿智能与卓越的搜索能力。",
|
|
530
530
|
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。",
|
|
531
531
|
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image(Nano Banana Pro)是 Google 的图像生成模型,同时支持多模态对话。",
|
|
532
532
|
"gemini-3-pro-preview.description": "Gemini 3 Pro 是 Google 最强大的智能体与编程模型,在最先进推理基础上提供更丰富的视觉效果与更深入的交互体验。",
|
|
@@ -606,6 +606,56 @@
|
|
|
606
606
|
"google/gemma-3-27b-it.description": "Gemma 3 27B 是 Google 推出的开源语言模型,在效率和性能方面树立了新标杆。",
|
|
607
607
|
"google/text-embedding-005.description": "一款专注于英文任务的文本嵌入模型,针对代码和英文任务进行了优化。",
|
|
608
608
|
"google/text-multilingual-embedding-002.description": "一款多语言文本嵌入模型,针对跨语言任务进行了优化,支持多种语言。",
|
|
609
|
+
"gpt-3.5-turbo-0125.description": "GPT-3.5 Turbo 用于文本生成与理解;当前指向 gpt-3.5-turbo-0125。",
|
|
610
|
+
"gpt-3.5-turbo-1106.description": "GPT-3.5 Turbo 用于文本生成与理解;当前指向 gpt-3.5-turbo-0125。",
|
|
611
|
+
"gpt-3.5-turbo-instruct.description": "GPT-3.5 Turbo 优化用于指令跟随的文本生成与理解任务。",
|
|
612
|
+
"gpt-3.5-turbo.description": "GPT-3.5 Turbo 用于文本生成与理解;当前指向 gpt-3.5-turbo-0125。",
|
|
613
|
+
"gpt-35-turbo-16k.description": "GPT-3.5 Turbo 16k 是一款高容量文本生成模型,适用于复杂任务。",
|
|
614
|
+
"gpt-35-turbo.description": "GPT-3.5 Turbo 是 OpenAI 高效的聊天与文本生成模型,支持并行函数调用。",
|
|
615
|
+
"gpt-4-0125-preview.description": "最新的 GPT-4 Turbo 增加了视觉能力。视觉请求支持 JSON 模式与函数调用。该模型在实时应用中兼顾准确性与效率,性价比高。",
|
|
616
|
+
"gpt-4-0613.description": "GPT-4 提供更大的上下文窗口,适用于处理更长的输入,适合信息整合与数据分析。",
|
|
617
|
+
"gpt-4-1106-preview.description": "最新的 GPT-4 Turbo 增加了视觉能力。视觉请求支持 JSON 模式与函数调用。该模型在实时应用中兼顾准确性与效率,性价比高。",
|
|
618
|
+
"gpt-4-32k-0613.description": "GPT-4 提供更大的上下文窗口,适用于需要广泛信息整合与数据分析的场景。",
|
|
619
|
+
"gpt-4-32k.description": "GPT-4 提供更大的上下文窗口,适用于需要广泛信息整合与数据分析的场景。",
|
|
620
|
+
"gpt-4-turbo-2024-04-09.description": "最新的 GPT-4 Turbo 增加了视觉能力。视觉请求支持 JSON 模式与函数调用。该模型在实时应用中兼顾准确性与效率,性价比高。",
|
|
621
|
+
"gpt-4-turbo-preview.description": "最新的 GPT-4 Turbo 增加了视觉能力。视觉请求支持 JSON 模式与函数调用。该模型在实时应用中兼顾准确性与效率,性价比高。",
|
|
622
|
+
"gpt-4-turbo.description": "最新的 GPT-4 Turbo 增加了视觉能力。视觉请求支持 JSON 模式与函数调用。该模型在实时应用中兼顾准确性与效率,性价比高。",
|
|
623
|
+
"gpt-4-vision-preview.description": "GPT-4 Vision 预览版,专为图像分析与处理任务设计。",
|
|
624
|
+
"gpt-4.1-mini.description": "GPT-4.1 mini 在智能、速度与成本之间实现平衡,适用于多种场景。",
|
|
625
|
+
"gpt-4.1-nano.description": "GPT-4.1 nano 是最快且最具性价比的 GPT-4.1 模型。",
|
|
626
|
+
"gpt-4.1.description": "GPT-4.1 是我们面向复杂任务与跨领域问题解决的旗舰模型。",
|
|
627
|
+
"gpt-4.5-preview.description": "GPT-4.5-preview 是最新的通用模型,具备更深的世界知识与更强的意图理解能力,擅长创意任务与智能体规划。知识截止时间为 2023 年 10 月。",
|
|
628
|
+
"gpt-4.description": "GPT-4 提供更大的上下文窗口,适用于信息整合与数据分析等任务。",
|
|
629
|
+
"gpt-4o-2024-05-13.description": "ChatGPT-4o 是一款实时更新的动态模型,结合强大的理解与生成能力,适用于客户支持、教育与技术支持等大规模应用场景。",
|
|
630
|
+
"gpt-4o-2024-08-06.description": "ChatGPT-4o 是一款实时更新的动态模型,结合强大的语言理解与生成能力,适用于客户支持、教育与技术协助等大规模应用场景。",
|
|
631
|
+
"gpt-4o-2024-11-20.description": "ChatGPT-4o 是一款实时更新的动态模型,结合强大的理解与生成能力,适用于客户支持、教育与技术支持等大规模应用场景。",
|
|
632
|
+
"gpt-4o-audio-preview.description": "GPT-4o 音频预览模型,支持音频输入与输出。",
|
|
633
|
+
"gpt-4o-mini-audio-preview.description": "GPT-4o mini 音频模型,支持音频输入与输出。",
|
|
634
|
+
"gpt-4o-mini-realtime-preview.description": "GPT-4o-mini 实时变体,支持音频与文本的实时输入输出。",
|
|
635
|
+
"gpt-4o-mini-search-preview.description": "GPT-4o mini 搜索预览版,训练用于理解并执行网页搜索请求,通过 Chat Completions API 实现。网页搜索按工具调用计费,另加 token 成本。",
|
|
636
|
+
"gpt-4o-mini-transcribe.description": "GPT-4o Mini 转录模型是一款语音转文本模型,使用 GPT-4o 进行音频转录,在词错误率、语言识别与准确性方面优于原始 Whisper 模型。",
|
|
637
|
+
"gpt-4o-mini-tts.description": "GPT-4o mini TTS 是一款基于 GPT-4o mini 的文本转语音模型,可将文本转换为自然语音,最大输入为 2000 个 token。",
|
|
638
|
+
"gpt-4o-mini.description": "GPT-4o mini 是 OpenAI 在 GPT-4 Omni 之后推出的最新模型,支持文本+图像输入与文本输出。作为最先进的小型模型,其价格远低于前沿模型,比 GPT-3.5 Turbo 便宜 60% 以上,同时保持顶级智能水平(MMLU 达 82%)。",
|
|
639
|
+
"gpt-4o-realtime-preview-2024-10-01.description": "GPT-4o 实时变体,支持音频与文本的实时输入输出。",
|
|
640
|
+
"gpt-4o-realtime-preview-2025-06-03.description": "GPT-4o 实时变体,支持音频与文本的实时输入输出。",
|
|
641
|
+
"gpt-4o-realtime-preview.description": "GPT-4o 实时变体,支持音频与文本的实时输入输出。",
|
|
642
|
+
"gpt-4o-search-preview.description": "GPT-4o 搜索预览版,训练用于理解并执行网页搜索请求,通过 Chat Completions API 实现。网页搜索按工具调用计费,另加 token 成本。",
|
|
643
|
+
"gpt-4o-transcribe.description": "GPT-4o 转录模型是一款语音转文本模型,使用 GPT-4o 进行音频转录,在词错误率、语言识别与准确性方面优于原始 Whisper 模型。",
|
|
644
|
+
"gpt-4o.description": "ChatGPT-4o 是一款实时更新的动态模型,结合强大的理解与生成能力,适用于客户支持、教育与技术支持等大规模应用场景。",
|
|
645
|
+
"gpt-5-chat-latest.description": "GPT-5 模型用于 ChatGPT,结合强大的理解与生成能力,适用于对话类应用。",
|
|
646
|
+
"gpt-5-chat.description": "GPT-5 Chat 是一款预览模型,专为对话场景优化。支持文本与图像输入,仅输出文本,适用于聊天机器人与对话式 AI 应用。",
|
|
647
|
+
"gpt-5-codex.description": "GPT-5 Codex 是 GPT-5 的一个变体,专为 Codex 类环境中的智能编程任务优化。",
|
|
648
|
+
"gpt-5-mini.description": "GPT-5 的快速、低成本变体,适用于定义明确的任务,在保持质量的同时提供更快响应。",
|
|
649
|
+
"gpt-5-nano.description": "GPT-5 的最快、最具性价比的变体,适用于对延迟与成本敏感的应用。",
|
|
650
|
+
"gpt-5-pro.description": "GPT-5 Pro 使用更多计算资源以实现更深入的思考,持续提供更优质的答案。",
|
|
651
|
+
"gpt-5.1-chat-latest.description": "GPT-5.1 Chat:GPT-5.1 的 ChatGPT 变体,专为对话场景打造。",
|
|
652
|
+
"gpt-5.1-codex-mini.description": "GPT-5.1 Codex mini:更小、更低成本的 Codex 变体,专为智能编程任务优化。",
|
|
653
|
+
"gpt-5.1-codex.description": "GPT-5.1 Codex:GPT-5.1 的一个变体,专为复杂代码/智能体工作流优化,适用于 Responses API。",
|
|
654
|
+
"gpt-5.1.description": "GPT-5.1 — 一款旗舰模型,专为编程与智能体任务优化,支持可配置的推理深度与更长上下文。",
|
|
655
|
+
"gpt-5.2-chat-latest.description": "GPT-5.2 Chat 是 GPT-5.2 的 ChatGPT 变体(chat-latest),用于体验最新对话改进。",
|
|
656
|
+
"gpt-5.2-pro.description": "GPT-5.2 Pro:GPT-5.2 的更智能、更精准变体(仅限 Responses API),适用于更难的问题与多轮推理。",
|
|
657
|
+
"gpt-5.2.description": "GPT-5.2 是一款旗舰模型,适用于编程与智能体工作流,具备更强推理能力与长上下文处理能力。",
|
|
658
|
+
"gpt-5.description": "跨领域编程与智能体任务的最佳模型。GPT-5 在准确性、速度、推理、上下文感知、结构化思维与问题解决方面实现飞跃。",
|
|
609
659
|
"meta/Llama-3.2-90B-Vision-Instruct.description": "适用于视觉理解代理应用的高级图像推理模型。",
|
|
610
660
|
"meta/Llama-3.3-70B-Instruct.description": "Llama 3.3 是最先进的多语言开源 Llama 模型,在极低成本下实现接近 405B 的性能。该模型基于 Transformer 架构,并通过 SFT 和 RLHF 提升实用性与安全性。其指令微调版本专为多语言对话优化,在行业基准测试中超越众多开源与闭源聊天模型。知识截止时间:2023 年 12 月。",
|
|
611
661
|
"meta/Meta-Llama-3-70B-Instruct.description": "一款功能强大的 700 亿参数模型,擅长推理、编程和广泛的语言任务。",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"builtins.lobe-agent-builder.apiName.getConfig": "获取配置",
|
|
6
6
|
"builtins.lobe-agent-builder.apiName.getMeta": "获取元数据",
|
|
7
7
|
"builtins.lobe-agent-builder.apiName.getPrompt": "获取系统提示词",
|
|
8
|
+
"builtins.lobe-agent-builder.apiName.installPlugin": "安装技能",
|
|
8
9
|
"builtins.lobe-agent-builder.apiName.searchMarketTools": "搜索技能市场",
|
|
9
10
|
"builtins.lobe-agent-builder.apiName.searchOfficialTools": "搜索官方技能",
|
|
10
11
|
"builtins.lobe-agent-builder.apiName.setModel": "设置模型",
|
|
@@ -15,6 +16,12 @@
|
|
|
15
16
|
"builtins.lobe-agent-builder.apiName.updateConfig": "更新配置",
|
|
16
17
|
"builtins.lobe-agent-builder.apiName.updateMeta": "更新元数据",
|
|
17
18
|
"builtins.lobe-agent-builder.apiName.updatePrompt": "更新系统提示词",
|
|
19
|
+
"builtins.lobe-agent-builder.inspector.chars": "字",
|
|
20
|
+
"builtins.lobe-agent-builder.inspector.disablePlugin": "关闭",
|
|
21
|
+
"builtins.lobe-agent-builder.inspector.enablePlugin": "开启",
|
|
22
|
+
"builtins.lobe-agent-builder.inspector.modelsCount": "{{count}} 个模型",
|
|
23
|
+
"builtins.lobe-agent-builder.inspector.noResults": "无结果",
|
|
24
|
+
"builtins.lobe-agent-builder.inspector.togglePlugin": "切换",
|
|
18
25
|
"builtins.lobe-agent-builder.title": "助理构建专家",
|
|
19
26
|
"builtins.lobe-cloud-sandbox.apiName.editLocalFile": "编辑文件",
|
|
20
27
|
"builtins.lobe-cloud-sandbox.apiName.executeCode": "执行代码",
|
|
@@ -31,13 +38,27 @@
|
|
|
31
38
|
"builtins.lobe-cloud-sandbox.apiName.searchLocalFiles": "搜索文件",
|
|
32
39
|
"builtins.lobe-cloud-sandbox.apiName.writeLocalFile": "写入文件",
|
|
33
40
|
"builtins.lobe-cloud-sandbox.title": "云端沙盒",
|
|
41
|
+
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "批量创建 Agent",
|
|
42
|
+
"builtins.lobe-group-agent-builder.apiName.createAgent": "创建代理",
|
|
34
43
|
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "获取可用模型",
|
|
35
44
|
"builtins.lobe-group-agent-builder.apiName.installPlugin": "安装技能",
|
|
36
45
|
"builtins.lobe-group-agent-builder.apiName.inviteAgent": "邀请成员",
|
|
37
46
|
"builtins.lobe-group-agent-builder.apiName.removeAgent": "移除成员",
|
|
47
|
+
"builtins.lobe-group-agent-builder.apiName.searchAgent": "搜索代理",
|
|
38
48
|
"builtins.lobe-group-agent-builder.apiName.searchMarketTools": "搜索技能市场",
|
|
39
49
|
"builtins.lobe-group-agent-builder.apiName.updateAgentConfig": "更新代理配置",
|
|
40
|
-
"builtins.lobe-group-agent-builder.apiName.
|
|
50
|
+
"builtins.lobe-group-agent-builder.apiName.updateAgentPrompt": "更新助理提示词",
|
|
51
|
+
"builtins.lobe-group-agent-builder.apiName.updateGroup": "更新群组",
|
|
52
|
+
"builtins.lobe-group-agent-builder.apiName.updateGroupPrompt": "更新群组提示词",
|
|
53
|
+
"builtins.lobe-group-agent-builder.apiName.updateSupervisorPrompt": "更新群组主管提示词",
|
|
54
|
+
"builtins.lobe-group-agent-builder.inspector.agents": "个 Agent",
|
|
55
|
+
"builtins.lobe-group-agent-builder.inspector.avatar": "头像",
|
|
56
|
+
"builtins.lobe-group-agent-builder.inspector.backgroundColor": "背景色",
|
|
57
|
+
"builtins.lobe-group-agent-builder.inspector.description": "描述",
|
|
58
|
+
"builtins.lobe-group-agent-builder.inspector.noResults": "无结果",
|
|
59
|
+
"builtins.lobe-group-agent-builder.inspector.openingMessage": "开场白",
|
|
60
|
+
"builtins.lobe-group-agent-builder.inspector.openingQuestions": "开场问题",
|
|
61
|
+
"builtins.lobe-group-agent-builder.inspector.title": "标题",
|
|
41
62
|
"builtins.lobe-group-agent-builder.title": "群组构建专家",
|
|
42
63
|
"builtins.lobe-group-management.apiName.broadcast": "所有人发言",
|
|
43
64
|
"builtins.lobe-group-management.apiName.createAgent": "添加群组成员",
|
package/locales/zh-TW/chat.json
CHANGED
|
@@ -71,11 +71,18 @@
|
|
|
71
71
|
"group.desc": "與多位 AI 助手在共用的對話空間中協作。",
|
|
72
72
|
"group.memberTooltip": "群組內有 {{count}} 位成員",
|
|
73
73
|
"group.orchestratorThinking": "主持人正在思考中...",
|
|
74
|
+
"group.profile.contentPlaceholder": "在此設定群組目標/工作模式。這些資訊將與所有群組成員共享。",
|
|
75
|
+
"group.profile.external": "外部",
|
|
76
|
+
"group.profile.externalAgentWarning": "這是一個外部代理。此處所做的變更將直接修改原始代理的設定。",
|
|
77
|
+
"group.profile.groupSettings": "群組設定",
|
|
78
|
+
"group.profile.supervisor": "主管",
|
|
79
|
+
"group.profile.supervisorPlaceholder": "主管負責協調不同的代理。在此設定主管資訊可提升工作流程的協調效率。",
|
|
74
80
|
"group.removeMember": "移除成員",
|
|
75
81
|
"group.title": "群組",
|
|
76
82
|
"groupDescription": "團隊描述",
|
|
77
83
|
"groupSidebar.agentProfile.chat": "對話",
|
|
78
84
|
"groupSidebar.agentProfile.model": "模型",
|
|
85
|
+
"groupSidebar.agentProfile.settings": "設定",
|
|
79
86
|
"groupSidebar.members.addMember": "添加成員",
|
|
80
87
|
"groupSidebar.members.enableOrchestrator": "啟用主持人",
|
|
81
88
|
"groupSidebar.members.memberSettings": "成員設定",
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
"Meta-Llama-4-Maverick-17B-128E-Instruct-FP8.description": "Llama 4 Maverick 是一款大型 MoE 模型,具備高效專家啟用機制,展現強大的推理效能。",
|
|
74
74
|
"MiniMax-M1.description": "一款內部開發的推理模型,具備 80K 思路鏈與 100 萬輸入,效能媲美全球頂尖模型。",
|
|
75
75
|
"MiniMax-M2-Stable.description": "專為高效編碼與代理流程設計,具備更高併發能力,適用於商業應用。",
|
|
76
|
-
"MiniMax-M2.1-Lightning.description": "
|
|
77
|
-
"MiniMax-M2.1.description": "
|
|
78
|
-
"MiniMax-M2.description": "
|
|
76
|
+
"MiniMax-M2.1-Lightning.description": "強大的多語言編程能力,全面升級的編程體驗。更快速、更高效。",
|
|
77
|
+
"MiniMax-M2.1.description": "強大的多語言編程能力,全面升級的編程體驗",
|
|
78
|
+
"MiniMax-M2.description": "專為高效編碼與智能體工作流程打造",
|
|
79
79
|
"MiniMax-Text-01.description": "MiniMax-01 採用超越傳統 Transformer 的大規模線性注意力機制,擁有 4560 億參數,每次啟用 459 億,支援最多 400 萬字元上下文(為 GPT-4o 的 32 倍,Claude-3.5-Sonnet 的 20 倍),效能頂尖。",
|
|
80
80
|
"MiniMaxAI/MiniMax-M1-80k.description": "MiniMax-M1 是一款開源權重的大型混合注意力推理模型,總參數 4560 億,每個 token 啟用約 459 億。原生支援 100 萬上下文,使用 Flash Attention 技術,在 10 萬 token 生成任務中比 DeepSeek R1 減少 75% FLOPs。採用 MoE 架構、CISPO 與混合注意力強化學習訓練,在長輸入推理與真實軟體工程任務中表現領先。",
|
|
81
81
|
"MiniMaxAI/MiniMax-M2.description": "MiniMax-M2 重新定義代理效率。這是一款緊湊、快速、具成本效益的 MoE 模型,總參數 2300 億,啟用參數僅 100 億,專為頂級編碼與代理任務設計,同時保有強大的通用智能。即使僅啟用 100 億參數,其效能仍可媲美更大型模型,適合高效率應用場景。",
|
|
@@ -526,7 +526,7 @@
|
|
|
526
526
|
"gemini-2.5-pro-preview-05-06.description": "Gemini 2.5 Pro Preview 是 Google 最先進的推理模型,能處理程式碼、數學與 STEM 問題,並分析大型資料集、程式碼庫與長篇文件。",
|
|
527
527
|
"gemini-2.5-pro-preview-06-05.description": "Gemini 2.5 Pro Preview 是 Google 最先進的推理模型,能處理程式碼、數學與 STEM 問題,並分析大型資料集、程式碼庫與長篇文件。",
|
|
528
528
|
"gemini-2.5-pro.description": "Gemini 2.5 Pro 是 Google 的旗艦推理模型,支援長上下文,適用於處理複雜任務。",
|
|
529
|
-
"gemini-3-flash-preview.description": "Gemini 3 Flash
|
|
529
|
+
"gemini-3-flash-preview.description": "Gemini 3 Flash 是一款以速度為核心的智慧模型,結合尖端智能與卓越的搜尋基礎能力。",
|
|
530
530
|
"gemini-3-pro-image-preview.description": "Gemini 3 Pro Image(Nano Banana Pro)是 Google 的圖像生成模型,支援多模態對話。",
|
|
531
531
|
"gemini-3-pro-image-preview:image.description": "Gemini 3 Pro Image(Nano Banana Pro)是 Google 的圖像生成模型,並支援多模態聊天。",
|
|
532
532
|
"gemini-3-pro-preview.description": "Gemini 3 Pro 是 Google 最強大的智能代理與情境編碼模型,具備頂尖推理能力、豐富視覺表現與深度互動。",
|
|
@@ -626,6 +626,45 @@
|
|
|
626
626
|
"gpt-4.1.description": "GPT-4.1 是我們的旗艦模型,適用於複雜任務與跨領域問題解決。",
|
|
627
627
|
"gpt-4.5-preview.description": "GPT-4.5-preview 是最新的通用模型,具備深厚的世界知識與更佳的意圖理解能力,擅長創意任務與智能代理規劃。知識截止時間為 2023 年 10 月。",
|
|
628
628
|
"gpt-4.description": "GPT-4 提供更大的上下文視窗,能處理更長的輸入,適合廣泛資訊整合與資料分析。",
|
|
629
|
+
"gpt-4o-2024-05-13.description": "ChatGPT-4o 是一款即時更新的動態模型,結合強大的理解與生成能力,適用於客服、教育與技術支援等大規模應用場景。",
|
|
630
|
+
"gpt-4o-2024-08-06.description": "ChatGPT-4o 是一款即時更新的動態模型,結合強大的語言理解與生成能力,適用於客服、教育與技術支援等大規模應用場景。",
|
|
631
|
+
"gpt-4o-2024-11-20.description": "ChatGPT-4o 是一款即時更新的動態模型,結合強大的理解與生成能力,適用於客服、教育與技術支援等大規模應用場景。",
|
|
632
|
+
"gpt-4o-audio-preview.description": "GPT-4o 音訊預覽模型,支援音訊輸入與輸出。",
|
|
633
|
+
"gpt-4o-mini-audio-preview.description": "GPT-4o mini 音訊模型,支援音訊輸入與輸出。",
|
|
634
|
+
"gpt-4o-mini-realtime-preview.description": "GPT-4o-mini 即時變體,支援音訊與文字的即時輸入/輸出。",
|
|
635
|
+
"gpt-4o-mini-search-preview.description": "GPT-4o mini 搜尋預覽模型,透過 Chat Completions API 訓練以理解並執行網頁搜尋查詢。網頁搜尋按工具呼叫次數額外計費。",
|
|
636
|
+
"gpt-4o-mini-transcribe.description": "GPT-4o Mini Transcribe 是一款語音轉文字模型,使用 GPT-4o 進行音訊轉錄,提升詞錯率、語言識別與準確性,優於原始 Whisper 模型。",
|
|
637
|
+
"gpt-4o-mini-tts.description": "GPT-4o mini TTS 是一款基於 GPT-4o mini 的文字轉語音模型,將文字轉換為自然語音,最多支援 2000 個 token 輸入。",
|
|
638
|
+
"gpt-4o-mini.description": "GPT-4o mini 是 OpenAI 在 GPT-4 Omni 之後推出的最新模型,支援文字+圖片輸入與文字輸出。作為最先進的小型模型,其價格遠低於最新前沿模型,比 GPT-3.5 Turbo 便宜超過 60%,同時保有頂尖智慧(82% MMLU)。",
|
|
639
|
+
"gpt-4o-realtime-preview-2024-10-01.description": "GPT-4o 即時變體,支援音訊與文字的即時輸入/輸出。",
|
|
640
|
+
"gpt-4o-realtime-preview-2025-06-03.description": "GPT-4o 即時變體,支援音訊與文字的即時輸入/輸出。",
|
|
641
|
+
"gpt-4o-realtime-preview.description": "GPT-4o 即時變體,支援音訊與文字的即時輸入/輸出。",
|
|
642
|
+
"gpt-4o-search-preview.description": "GPT-4o 搜尋預覽模型,透過 Chat Completions API 訓練以理解並執行網頁搜尋查詢。網頁搜尋按工具呼叫次數額外計費。",
|
|
643
|
+
"gpt-4o-transcribe.description": "GPT-4o Transcribe 是一款語音轉文字模型,使用 GPT-4o 進行音訊轉錄,提升詞錯率、語言識別與準確性,優於原始 Whisper 模型。",
|
|
644
|
+
"gpt-4o.description": "ChatGPT-4o 是一款即時更新的動態模型,結合強大的理解與生成能力,適用於客服、教育與技術支援等大規模應用場景。",
|
|
645
|
+
"gpt-5-chat-latest.description": "GPT-5 模型應用於 ChatGPT,結合強大的理解與生成能力,適用於對話應用。",
|
|
646
|
+
"gpt-5-chat.description": "GPT-5 Chat 是一款預覽模型,針對對話場景進行最佳化。支援文字與圖片輸入,僅輸出文字,適用於聊天機器人與對話式 AI 應用。",
|
|
647
|
+
"gpt-5-codex.description": "GPT-5 Codex 是 GPT-5 的變體,針對類似 Codex 環境中的智能編碼任務進行最佳化。",
|
|
648
|
+
"gpt-5-mini.description": "GPT-5 的快速且具成本效益的變體,適用於明確任務,回應更快且維持品質。",
|
|
649
|
+
"gpt-5-nano.description": "GPT-5 中最快且最具成本效益的變體,適用於對延遲與成本敏感的應用場景。",
|
|
650
|
+
"gpt-5-pro.description": "GPT-5 Pro 使用更多運算資源以進行更深入思考,穩定提供更優質的答案。",
|
|
651
|
+
"gpt-5.1-chat-latest.description": "GPT-5.1 Chat:GPT-5.1 的 ChatGPT 變體,專為對話場景打造。",
|
|
652
|
+
"gpt-5.1-codex-mini.description": "GPT-5.1 Codex mini:較小且成本更低的 Codex 變體,針對智能編碼任務進行最佳化。",
|
|
653
|
+
"gpt-5.1-codex.description": "GPT-5.1 Codex:GPT-5.1 的變體,針對複雜程式碼與智能體工作流程進行最佳化,適用於 Responses API。",
|
|
654
|
+
"gpt-5.1.description": "GPT-5.1 — 旗艦模型,針對編碼與智能體任務進行最佳化,具備可調整的推理深度與更長的上下文支援。",
|
|
655
|
+
"gpt-5.2-chat-latest.description": "GPT-5.2 Chat 是 GPT-5.2 的 ChatGPT 變體(chat-latest),體驗最新對話改進。",
|
|
656
|
+
"gpt-5.2-pro.description": "GPT-5.2 Pro:GPT-5.2 的更智慧、更精準變體(僅限 Responses API),適合處理困難問題與長多輪推理。",
|
|
657
|
+
"gpt-5.2.description": "GPT-5.2 是針對編碼與智能體工作流程的旗艦模型,具備更強推理能力與長上下文表現。",
|
|
658
|
+
"gpt-5.description": "跨領域編碼與智能體任務的最佳模型。GPT-5 在準確性、速度、推理、上下文理解、結構化思維與問題解決方面實現飛躍。",
|
|
659
|
+
"gpt-audio.description": "GPT Audio 是一款通用聊天模型,支援音訊輸入/輸出,並整合於 Chat Completions API 中。",
|
|
660
|
+
"gpt-image-1-mini.description": "GPT Image 1 的低成本變體,原生支援文字與圖片輸入,並輸出圖片。",
|
|
661
|
+
"gpt-image-1.5.description": "GPT Image 1 的增強版,生成速度提升 4 倍,編輯更精準,文字渲染效果更佳。",
|
|
662
|
+
"gpt-image-1.description": "ChatGPT 原生多模態圖像生成模型。",
|
|
663
|
+
"gpt-oss-120b.description": "需申請使用。GPT-OSS-120B 是 OpenAI 推出的開源大型語言模型,具備強大的文字生成能力。",
|
|
664
|
+
"gpt-oss-20b.description": "需申請使用。GPT-OSS-20B 是 OpenAI 推出的中型開源語言模型,具備高效的文字生成能力。",
|
|
665
|
+
"gpt-oss:120b.description": "GPT-OSS 120B 是 OpenAI 的大型開源 LLM,採用 MXFP4 量化,定位為旗艦模型。需多 GPU 或高階工作站環境,於複雜推理、程式碼生成與多語言處理方面表現優異,支援進階函式呼叫與工具整合。",
|
|
666
|
+
"gpt-oss:20b.description": "GPT-OSS 20B 是 OpenAI 的開源 LLM,採用 MXFP4 量化,適用於高階消費級 GPU 或 Apple Silicon Mac。於對話生成、編碼與推理任務中表現良好,支援函式呼叫與工具使用。",
|
|
667
|
+
"gpt-realtime.description": "通用即時模型,支援即時文字與音訊輸入/輸出,並支援圖片輸入。",
|
|
629
668
|
"meta/Llama-3.2-90B-Vision-Instruct.description": "先進的圖像推理能力,適用於視覺理解代理應用。",
|
|
630
669
|
"meta/Llama-3.3-70B-Instruct.description": "Llama 3.3 是最先進的多語言開源 Llama 模型,以極低成本提供接近 405B 的效能。該模型基於 Transformer 架構,並透過 SFT 與 RLHF 提升實用性與安全性。經指令微調版本針對多語言對話進行最佳化,在業界基準測試中超越多數開放與封閉模型。知識截止時間:2023 年 12 月。",
|
|
631
670
|
"meta/Meta-Llama-3-70B-Instruct.description": "一款功能強大的 70B 參數模型,擅長推理、程式編寫與廣泛語言任務。",
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"builtins.lobe-agent-builder.apiName.getConfig": "取得設定",
|
|
6
6
|
"builtins.lobe-agent-builder.apiName.getMeta": "取得中繼資料",
|
|
7
7
|
"builtins.lobe-agent-builder.apiName.getPrompt": "取得系統提示詞",
|
|
8
|
+
"builtins.lobe-agent-builder.apiName.installPlugin": "安裝技能",
|
|
8
9
|
"builtins.lobe-agent-builder.apiName.searchMarketTools": "搜尋外掛市集",
|
|
9
10
|
"builtins.lobe-agent-builder.apiName.searchOfficialTools": "搜尋官方工具",
|
|
10
11
|
"builtins.lobe-agent-builder.apiName.setModel": "設定模型",
|
|
@@ -15,6 +16,12 @@
|
|
|
15
16
|
"builtins.lobe-agent-builder.apiName.updateConfig": "更新設定",
|
|
16
17
|
"builtins.lobe-agent-builder.apiName.updateMeta": "更新中繼資料",
|
|
17
18
|
"builtins.lobe-agent-builder.apiName.updatePrompt": "更新系統提示詞",
|
|
19
|
+
"builtins.lobe-agent-builder.inspector.chars": " 字元",
|
|
20
|
+
"builtins.lobe-agent-builder.inspector.disablePlugin": "停用",
|
|
21
|
+
"builtins.lobe-agent-builder.inspector.enablePlugin": "啟用",
|
|
22
|
+
"builtins.lobe-agent-builder.inspector.modelsCount": "{{count}} 個模型",
|
|
23
|
+
"builtins.lobe-agent-builder.inspector.noResults": "沒有結果",
|
|
24
|
+
"builtins.lobe-agent-builder.inspector.togglePlugin": "切換",
|
|
18
25
|
"builtins.lobe-agent-builder.title": "Agent 建構器",
|
|
19
26
|
"builtins.lobe-cloud-sandbox.apiName.editLocalFile": "編輯檔案",
|
|
20
27
|
"builtins.lobe-cloud-sandbox.apiName.executeCode": "執行程式碼",
|
|
@@ -31,13 +38,27 @@
|
|
|
31
38
|
"builtins.lobe-cloud-sandbox.apiName.searchLocalFiles": "搜尋檔案",
|
|
32
39
|
"builtins.lobe-cloud-sandbox.apiName.writeLocalFile": "寫入檔案",
|
|
33
40
|
"builtins.lobe-cloud-sandbox.title": "雲端沙盒",
|
|
41
|
+
"builtins.lobe-group-agent-builder.apiName.batchCreateAgents": "批次建立代理",
|
|
42
|
+
"builtins.lobe-group-agent-builder.apiName.createAgent": "建立代理",
|
|
34
43
|
"builtins.lobe-group-agent-builder.apiName.getAvailableModels": "取得可用模型",
|
|
35
44
|
"builtins.lobe-group-agent-builder.apiName.installPlugin": "安裝外掛",
|
|
36
45
|
"builtins.lobe-group-agent-builder.apiName.inviteAgent": "邀請成員",
|
|
37
46
|
"builtins.lobe-group-agent-builder.apiName.removeAgent": "移除成員",
|
|
47
|
+
"builtins.lobe-group-agent-builder.apiName.searchAgent": "搜尋代理",
|
|
38
48
|
"builtins.lobe-group-agent-builder.apiName.searchMarketTools": "搜尋外掛市集",
|
|
39
49
|
"builtins.lobe-group-agent-builder.apiName.updateAgentConfig": "更新代理設定",
|
|
40
|
-
"builtins.lobe-group-agent-builder.apiName.
|
|
50
|
+
"builtins.lobe-group-agent-builder.apiName.updateAgentPrompt": "更新代理提示詞",
|
|
51
|
+
"builtins.lobe-group-agent-builder.apiName.updateGroup": "更新群組",
|
|
52
|
+
"builtins.lobe-group-agent-builder.apiName.updateGroupPrompt": "更新群組提示詞",
|
|
53
|
+
"builtins.lobe-group-agent-builder.apiName.updateSupervisorPrompt": "更新主管提示詞",
|
|
54
|
+
"builtins.lobe-group-agent-builder.inspector.agents": "代理",
|
|
55
|
+
"builtins.lobe-group-agent-builder.inspector.avatar": "頭像",
|
|
56
|
+
"builtins.lobe-group-agent-builder.inspector.backgroundColor": "背景顏色",
|
|
57
|
+
"builtins.lobe-group-agent-builder.inspector.description": "描述",
|
|
58
|
+
"builtins.lobe-group-agent-builder.inspector.noResults": "沒有結果",
|
|
59
|
+
"builtins.lobe-group-agent-builder.inspector.openingMessage": "開場訊息",
|
|
60
|
+
"builtins.lobe-group-agent-builder.inspector.openingQuestions": "開場問題",
|
|
61
|
+
"builtins.lobe-group-agent-builder.inspector.title": "標題",
|
|
41
62
|
"builtins.lobe-group-agent-builder.title": "群組代理建構器",
|
|
42
63
|
"builtins.lobe-group-management.apiName.broadcast": "所有人發言",
|
|
43
64
|
"builtins.lobe-group-management.apiName.createAgent": "新增團隊成員",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.275",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
"@lobehub/icons": "^4.0.2",
|
|
207
207
|
"@lobehub/market-sdk": "0.28.1",
|
|
208
208
|
"@lobehub/tts": "^4.0.2",
|
|
209
|
-
"@lobehub/ui": "^4.
|
|
209
|
+
"@lobehub/ui": "^4.18.0",
|
|
210
210
|
"@modelcontextprotocol/sdk": "^1.25.1",
|
|
211
211
|
"@neondatabase/serverless": "^1.0.2",
|
|
212
212
|
"@next/third-parties": "^16.1.1",
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import type { BuiltinInspectorProps } from '@lobechat/types';
|
|
4
|
+
import { cx } from 'antd-style';
|
|
5
|
+
import { memo, useMemo } from 'react';
|
|
6
|
+
import { useTranslation } from 'react-i18next';
|
|
7
|
+
|
|
8
|
+
import { highlightTextStyles, inspectorTextStyles, shinyTextStyles } from '@/styles';
|
|
9
|
+
|
|
10
|
+
import type { GetAvailableModelsParams, GetAvailableModelsState } from '../../../types';
|
|
11
|
+
|
|
12
|
+
export const GetAvailableModelsInspector = memo<
|
|
13
|
+
BuiltinInspectorProps<GetAvailableModelsParams, GetAvailableModelsState>
|
|
14
|
+
>(({ args, partialArgs, isArgumentsStreaming, isLoading, pluginState }) => {
|
|
15
|
+
const { t } = useTranslation('plugin');
|
|
16
|
+
|
|
17
|
+
const providerId = args?.providerId || partialArgs?.providerId;
|
|
18
|
+
|
|
19
|
+
// Calculate total model count from providers
|
|
20
|
+
const modelInfo = useMemo(() => {
|
|
21
|
+
if (!pluginState?.providers) return null;
|
|
22
|
+
|
|
23
|
+
const allModels = pluginState.providers.flatMap((p) => p.models);
|
|
24
|
+
const totalCount = allModels.length;
|
|
25
|
+
|
|
26
|
+
if (totalCount === 0) return null;
|
|
27
|
+
|
|
28
|
+
// Get first 2 model names for display
|
|
29
|
+
const displayModels = allModels.slice(0, 2).map((m) => m.name || m.id);
|
|
30
|
+
return { displayModels, totalCount };
|
|
31
|
+
}, [pluginState?.providers]);
|
|
32
|
+
|
|
33
|
+
// Initial streaming state
|
|
34
|
+
if (isArgumentsStreaming || isLoading) {
|
|
35
|
+
return (
|
|
36
|
+
<div className={cx(inspectorTextStyles.root, shinyTextStyles.shinyText)}>
|
|
37
|
+
<span>{t('builtins.lobe-agent-builder.apiName.getAvailableModels')}</span>
|
|
38
|
+
{providerId && (
|
|
39
|
+
<>
|
|
40
|
+
: <span className={highlightTextStyles.primary}>{providerId}</span>
|
|
41
|
+
</>
|
|
42
|
+
)}
|
|
43
|
+
</div>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Loaded state with results
|
|
48
|
+
return (
|
|
49
|
+
<div className={inspectorTextStyles.root}>
|
|
50
|
+
<span>{t('builtins.lobe-agent-builder.apiName.getAvailableModels')}: </span>
|
|
51
|
+
{modelInfo && (
|
|
52
|
+
<span className={highlightTextStyles.primary}>
|
|
53
|
+
{modelInfo.displayModels.join(' / ')}
|
|
54
|
+
{modelInfo.totalCount > 2 &&
|
|
55
|
+
t('builtins.lobe-agent-builder.inspector.modelsCount', {
|
|
56
|
+
count: modelInfo.totalCount,
|
|
57
|
+
})}
|
|
58
|
+
</span>
|
|
59
|
+
)}
|
|
60
|
+
</div>
|
|
61
|
+
);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
GetAvailableModelsInspector.displayName = 'GetAvailableModelsInspector';
|
|
65
|
+
|
|
66
|
+
export default GetAvailableModelsInspector;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import type { BuiltinInspectorProps } from '@lobechat/types';
|
|
4
|
+
import { createStaticStyles, cssVar, cx } from 'antd-style';
|
|
5
|
+
import { Check, X } from 'lucide-react';
|
|
6
|
+
import { memo } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
|
|
9
|
+
import { highlightTextStyles, inspectorTextStyles, shinyTextStyles } from '@/styles';
|
|
10
|
+
|
|
11
|
+
import type { InstallPluginParams, InstallPluginState } from '../../../types';
|
|
12
|
+
|
|
13
|
+
const styles = createStaticStyles(({ css }) => ({
|
|
14
|
+
statusIcon: css`
|
|
15
|
+
margin-block-end: -2px;
|
|
16
|
+
margin-inline-start: 4px;
|
|
17
|
+
`,
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
export const InstallPluginInspector = memo<
|
|
21
|
+
BuiltinInspectorProps<InstallPluginParams, InstallPluginState>
|
|
22
|
+
>(({ args, partialArgs, isArgumentsStreaming, isLoading, pluginState }) => {
|
|
23
|
+
const { t } = useTranslation('plugin');
|
|
24
|
+
|
|
25
|
+
const identifier = args?.identifier || partialArgs?.identifier;
|
|
26
|
+
const displayName = pluginState?.pluginName || identifier;
|
|
27
|
+
|
|
28
|
+
// Initial streaming state
|
|
29
|
+
if (isArgumentsStreaming && !identifier) {
|
|
30
|
+
return (
|
|
31
|
+
<div className={cx(inspectorTextStyles.root, shinyTextStyles.shinyText)}>
|
|
32
|
+
<span>{t('builtins.lobe-agent-builder.apiName.installPlugin')}</span>
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Get installation result
|
|
38
|
+
const isSuccess = pluginState?.success && pluginState?.installed;
|
|
39
|
+
const hasResult = pluginState?.success !== undefined;
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div
|
|
43
|
+
className={cx(
|
|
44
|
+
inspectorTextStyles.root,
|
|
45
|
+
(isArgumentsStreaming || isLoading) && shinyTextStyles.shinyText,
|
|
46
|
+
)}
|
|
47
|
+
>
|
|
48
|
+
<span>{t('builtins.lobe-agent-builder.apiName.installPlugin')}: </span>
|
|
49
|
+
{displayName && <span className={highlightTextStyles.primary}>{displayName}</span>}
|
|
50
|
+
{!isLoading &&
|
|
51
|
+
hasResult &&
|
|
52
|
+
(isSuccess ? (
|
|
53
|
+
<Check className={styles.statusIcon} color={cssVar.colorSuccess} size={14} />
|
|
54
|
+
) : (
|
|
55
|
+
<X className={styles.statusIcon} color={cssVar.colorError} size={14} />
|
|
56
|
+
))}
|
|
57
|
+
</div>
|
|
58
|
+
);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
InstallPluginInspector.displayName = 'InstallPluginInspector';
|
|
62
|
+
|
|
63
|
+
export default InstallPluginInspector;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import type { BuiltinInspectorProps } from '@lobechat/types';
|
|
4
|
+
import { Text } from '@lobehub/ui';
|
|
5
|
+
import { cssVar, cx } from 'antd-style';
|
|
6
|
+
import { memo } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
|
|
9
|
+
import { highlightTextStyles, inspectorTextStyles, shinyTextStyles } from '@/styles';
|
|
10
|
+
|
|
11
|
+
import type { SearchMarketToolsParams, SearchMarketToolsState } from '../../../types';
|
|
12
|
+
|
|
13
|
+
export const SearchMarketToolsInspector = memo<
|
|
14
|
+
BuiltinInspectorProps<SearchMarketToolsParams, SearchMarketToolsState>
|
|
15
|
+
>(({ args, partialArgs, isArgumentsStreaming, isLoading, pluginState }) => {
|
|
16
|
+
const { t } = useTranslation('plugin');
|
|
17
|
+
|
|
18
|
+
const query = args?.query || partialArgs?.query;
|
|
19
|
+
const category = args?.category || partialArgs?.category;
|
|
20
|
+
const displayText = query || category;
|
|
21
|
+
|
|
22
|
+
// Initial streaming state
|
|
23
|
+
if (isArgumentsStreaming && !displayText) {
|
|
24
|
+
return (
|
|
25
|
+
<div className={cx(inspectorTextStyles.root, shinyTextStyles.shinyText)}>
|
|
26
|
+
<span>{t('builtins.lobe-agent-builder.apiName.searchMarketTools')}</span>
|
|
27
|
+
</div>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const resultCount = pluginState?.tools?.length ?? 0;
|
|
32
|
+
const hasResults = resultCount > 0;
|
|
33
|
+
|
|
34
|
+
return (
|
|
35
|
+
<div
|
|
36
|
+
className={cx(
|
|
37
|
+
inspectorTextStyles.root,
|
|
38
|
+
(isArgumentsStreaming || isLoading) && shinyTextStyles.shinyText,
|
|
39
|
+
)}
|
|
40
|
+
>
|
|
41
|
+
<span>{t('builtins.lobe-agent-builder.apiName.searchMarketTools')}: </span>
|
|
42
|
+
{displayText && <span className={highlightTextStyles.primary}>{displayText}</span>}
|
|
43
|
+
{!isLoading &&
|
|
44
|
+
!isArgumentsStreaming &&
|
|
45
|
+
pluginState?.tools &&
|
|
46
|
+
(hasResults ? (
|
|
47
|
+
<span style={{ marginInlineStart: 4 }}>({resultCount})</span>
|
|
48
|
+
) : (
|
|
49
|
+
<Text
|
|
50
|
+
as={'span'}
|
|
51
|
+
color={cssVar.colorTextDescription}
|
|
52
|
+
fontSize={12}
|
|
53
|
+
style={{ marginInlineStart: 4 }}
|
|
54
|
+
>
|
|
55
|
+
({t('builtins.lobe-agent-builder.inspector.noResults')})
|
|
56
|
+
</Text>
|
|
57
|
+
))}
|
|
58
|
+
</div>
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
SearchMarketToolsInspector.displayName = 'SearchMarketToolsInspector';
|
|
63
|
+
|
|
64
|
+
export default SearchMarketToolsInspector;
|