@lobehub/chat 1.43.5 → 1.44.0
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/docs/self-hosting/server-database/docker-compose.mdx +2 -2
- package/locales/ar/common.json +1 -0
- package/locales/ar/modelProvider.json +176 -0
- package/locales/ar/setting.json +1 -0
- package/locales/bg-BG/common.json +1 -0
- package/locales/bg-BG/modelProvider.json +176 -0
- package/locales/bg-BG/setting.json +1 -0
- package/locales/de-DE/common.json +1 -0
- package/locales/de-DE/modelProvider.json +176 -0
- package/locales/de-DE/setting.json +1 -0
- package/locales/en-US/common.json +1 -0
- package/locales/en-US/modelProvider.json +176 -0
- package/locales/en-US/setting.json +1 -0
- package/locales/es-ES/common.json +1 -0
- package/locales/es-ES/modelProvider.json +176 -0
- package/locales/es-ES/setting.json +1 -0
- package/locales/fa-IR/common.json +1 -0
- package/locales/fa-IR/modelProvider.json +176 -0
- package/locales/fa-IR/setting.json +1 -0
- package/locales/fr-FR/common.json +1 -0
- package/locales/fr-FR/modelProvider.json +176 -0
- package/locales/fr-FR/setting.json +1 -0
- package/locales/it-IT/common.json +1 -0
- package/locales/it-IT/modelProvider.json +176 -0
- package/locales/it-IT/setting.json +1 -0
- package/locales/ja-JP/common.json +1 -0
- package/locales/ja-JP/modelProvider.json +176 -0
- package/locales/ja-JP/setting.json +1 -0
- package/locales/ko-KR/common.json +1 -0
- package/locales/ko-KR/modelProvider.json +176 -0
- package/locales/ko-KR/setting.json +1 -0
- package/locales/nl-NL/common.json +1 -0
- package/locales/nl-NL/modelProvider.json +176 -0
- package/locales/nl-NL/setting.json +1 -0
- package/locales/pl-PL/common.json +1 -0
- package/locales/pl-PL/modelProvider.json +176 -0
- package/locales/pl-PL/setting.json +1 -0
- package/locales/pt-BR/common.json +1 -0
- package/locales/pt-BR/modelProvider.json +176 -0
- package/locales/pt-BR/setting.json +1 -0
- package/locales/ru-RU/common.json +1 -0
- package/locales/ru-RU/modelProvider.json +176 -0
- package/locales/ru-RU/setting.json +1 -0
- package/locales/tr-TR/common.json +1 -0
- package/locales/tr-TR/modelProvider.json +176 -0
- package/locales/tr-TR/setting.json +1 -0
- package/locales/vi-VN/common.json +1 -0
- package/locales/vi-VN/modelProvider.json +176 -0
- package/locales/vi-VN/setting.json +1 -0
- package/locales/zh-CN/common.json +1 -0
- package/locales/zh-CN/modelProvider.json +176 -0
- package/locales/zh-CN/setting.json +1 -0
- package/locales/zh-TW/common.json +1 -0
- package/locales/zh-TW/modelProvider.json +176 -0
- package/locales/zh-TW/setting.json +1 -0
- package/package.json +4 -4
- package/src/app/(main)/(mobile)/me/settings/features/Category.tsx +1 -1
- package/src/app/(main)/(mobile)/me/settings/features/useCategory.tsx +12 -5
- package/src/app/(main)/changelog/features/VersionTag.tsx +1 -2
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/Thread.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/ThreadItem.tsx +1 -2
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/index.tsx +0 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/AgentsSuggest.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/QuestionSuggest.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ZenModeToast/Toast.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/index.tsx +0 -2
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem/index.tsx +0 -1
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +2 -3
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/index.tsx +6 -1
- package/src/app/(main)/chat/@session/features/SessionListContent/CollapseGroup/index.tsx +1 -1
- package/src/app/(main)/chat/features/Migration/Start.tsx +1 -1
- package/src/app/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/TopicList.tsx +4 -3
- package/src/app/(main)/discover/(detail)/assistant/[slug]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(detail)/features/ShareButton.tsx +2 -1
- package/src/app/(main)/discover/(detail)/model/[...slugs]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(detail)/plugin/[slug]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(detail)/provider/[slug]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(list)/_layout/Desktop/Nav.tsx +0 -1
- package/src/app/(main)/discover/(list)/assistants/features/Card.tsx +1 -1
- package/src/app/(main)/discover/(list)/models/features/Card.tsx +1 -1
- package/src/app/(main)/discover/(list)/plugins/features/Card.tsx +1 -1
- package/src/app/(main)/discover/(list)/providers/features/Card.tsx +1 -1
- package/src/app/(main)/discover/components/GridLoadingCard.tsx +2 -1
- package/src/app/(main)/discover/components/Title.tsx +1 -1
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +1 -1
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/index.tsx +0 -1
- package/src/app/(main)/files/(content)/@modal/(.)[id]/FullscreenModal.tsx +2 -2
- package/src/app/(main)/files/(content)/NotSupportClient.tsx +2 -2
- package/src/app/(main)/profile/_layout/Desktop/SideBar.tsx +1 -1
- package/src/app/(main)/profile/stats/features/ShareButton/Preview.tsx +5 -5
- package/src/app/(main)/repos/[id]/evals/components/Container.tsx +1 -1
- package/src/app/(main)/repos/[id]/evals/dataset/DatasetList/Item.tsx +0 -1
- package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +1 -1
- package/src/app/(main)/settings/about/features/ItemCard.tsx +3 -3
- package/src/app/(main)/settings/about/features/Version.tsx +1 -1
- package/src/app/(main)/settings/hooks/useCategory.tsx +22 -9
- package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +2 -1
- package/src/app/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +0 -1
- package/src/app/(main)/settings/provider/(detail)/[id]/index.tsx +19 -0
- package/src/app/(main)/settings/provider/(detail)/[id]/page.tsx +95 -0
- package/src/app/(main)/settings/provider/(detail)/azure/page.tsx +119 -0
- package/src/app/(main)/settings/provider/(detail)/bedrock/page.tsx +91 -0
- package/src/app/(main)/settings/provider/(detail)/cloudflare/page.tsx +58 -0
- package/src/app/(main)/settings/provider/(detail)/github/page.tsx +67 -0
- package/src/app/(main)/settings/provider/(detail)/huggingface/page.tsx +67 -0
- package/src/app/(main)/settings/provider/(detail)/ollama/Checker.tsx +73 -0
- package/src/app/(main)/settings/provider/(detail)/ollama/page.tsx +34 -0
- package/src/app/(main)/settings/provider/(detail)/openai/page.tsx +23 -0
- package/src/app/(main)/settings/provider/(detail)/wenxin/page.tsx +61 -0
- package/src/app/(main)/settings/provider/(list)/Footer.tsx +36 -0
- package/src/app/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +134 -0
- package/src/app/(main)/settings/provider/(list)/ProviderGrid/index.tsx +91 -0
- package/src/app/(main)/settings/provider/(list)/index.tsx +19 -0
- package/src/app/(main)/settings/provider/ProviderMenu/AddNew.tsx +28 -0
- package/src/app/(main)/settings/provider/ProviderMenu/All.tsx +29 -0
- package/src/app/(main)/settings/provider/ProviderMenu/Item.tsx +69 -0
- package/src/app/(main)/settings/provider/ProviderMenu/List.tsx +76 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SearchResult.tsx +43 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SkeletonList.tsx +60 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx +30 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/index.tsx +91 -0
- package/src/app/(main)/settings/provider/ProviderMenu/index.tsx +80 -0
- package/src/app/(main)/settings/provider/_layout/Desktop.tsx +37 -0
- package/src/app/(main)/settings/provider/_layout/Mobile.tsx +14 -0
- package/src/app/(main)/settings/provider/const.ts +20 -0
- package/src/app/(main)/settings/provider/features/CreateNewProvider/index.tsx +146 -0
- package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/Form.tsx +105 -0
- package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/index.tsx +69 -0
- package/src/app/(main)/settings/provider/features/ModelList/DisabledModels.tsx +29 -0
- package/src/app/(main)/settings/provider/features/ModelList/EmptyModels.tsx +101 -0
- package/src/app/(main)/settings/provider/features/ModelList/EnabledModelList/index.tsx +85 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/Form.tsx +109 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/index.tsx +76 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelItem.tsx +346 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/Search.tsx +37 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +145 -0
- package/src/app/(main)/settings/provider/features/ModelList/SearchResult.tsx +67 -0
- package/src/app/(main)/settings/provider/features/ModelList/SkeletonList.tsx +63 -0
- package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/ListItem.tsx +20 -0
- package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/index.tsx +96 -0
- package/src/app/(main)/settings/provider/features/ModelList/index.tsx +59 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/Checker.tsx +120 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/SkeletonInput.tsx +5 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +137 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx +49 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/index.tsx +343 -0
- package/src/app/(main)/settings/provider/layout.tsx +21 -0
- package/src/app/(main)/settings/provider/page.tsx +17 -0
- package/src/app/(main)/settings/provider/type.ts +5 -0
- package/src/app/(main)/settings/sync/features/DeviceInfo/Card.tsx +1 -1
- package/src/app/(main)/settings/sync/features/DeviceInfo/index.tsx +1 -1
- package/src/app/@modal/(.)changelog/modal/features/ReadDetail.tsx +1 -1
- package/src/app/@modal/(.)changelog/modal/features/VersionTag.tsx +1 -2
- package/src/app/@modal/(.)changelog/modal/layout.tsx +1 -1
- package/src/components/Cell/index.tsx +1 -1
- package/src/components/DragUpload/index.tsx +2 -3
- package/src/components/FeatureList/index.tsx +1 -1
- package/src/components/FileParsingStatus/EmbeddingStatus.tsx +1 -1
- package/src/components/FileParsingStatus/index.tsx +1 -1
- package/src/components/FunctionModal/style.tsx +2 -2
- package/src/components/GoBack/index.tsx +1 -2
- package/src/components/HotKeys/index.tsx +1 -1
- package/src/components/InstantSwitch/index.tsx +28 -0
- package/src/components/Menu/index.tsx +1 -1
- package/src/components/ModelSelect/index.tsx +2 -3
- package/src/components/Notification/index.tsx +2 -1
- package/src/components/StatisticCard/index.tsx +5 -6
- package/src/config/aiModels/ai21.ts +38 -0
- package/src/config/aiModels/ai360.ts +71 -0
- package/src/config/aiModels/anthropic.ts +152 -0
- package/src/config/aiModels/azure.ts +86 -0
- package/src/config/aiModels/baichuan.ts +107 -0
- package/src/config/aiModels/bedrock.ts +315 -0
- package/src/config/aiModels/cloudflare.ts +88 -0
- package/src/config/aiModels/deepseek.ts +27 -0
- package/src/config/aiModels/fireworksai.ts +232 -0
- package/src/config/aiModels/giteeai.ts +137 -0
- package/src/config/aiModels/github.ts +273 -0
- package/src/config/aiModels/google.ts +317 -0
- package/src/config/aiModels/groq.ts +202 -0
- package/src/config/aiModels/higress.ts +2828 -0
- package/src/config/aiModels/huggingface.ts +56 -0
- package/src/config/aiModels/hunyuan.ts +151 -0
- package/src/config/aiModels/index.ts +98 -0
- package/src/config/aiModels/internlm.ts +40 -0
- package/src/config/aiModels/minimax.ts +55 -0
- package/src/config/aiModels/mistral.ts +172 -0
- package/src/config/aiModels/moonshot.ts +44 -0
- package/src/config/aiModels/novita.ts +124 -0
- package/src/config/aiModels/ollama.ts +412 -0
- package/src/config/aiModels/openai.ts +537 -0
- package/src/config/aiModels/openrouter.ts +252 -0
- package/src/config/aiModels/perplexity.ts +67 -0
- package/src/config/aiModels/qwen.ts +302 -0
- package/src/config/aiModels/sensenova.ts +114 -0
- package/src/config/aiModels/siliconcloud.ts +679 -0
- package/src/config/aiModels/spark.ts +68 -0
- package/src/config/aiModels/stepfun.ts +153 -0
- package/src/config/aiModels/taichu.ts +19 -0
- package/src/config/aiModels/togetherai.ts +334 -0
- package/src/config/aiModels/upstage.ts +37 -0
- package/src/config/aiModels/wenxin.ts +171 -0
- package/src/config/aiModels/xai.ts +72 -0
- package/src/config/aiModels/zeroone.ts +156 -0
- package/src/config/aiModels/zhipu.ts +235 -0
- package/src/config/featureFlags/schema.ts +3 -0
- package/src/config/modelProviders/anthropic.ts +1 -0
- package/src/config/modelProviders/github.ts +0 -1
- package/src/config/modelProviders/google.ts +1 -0
- package/src/config/modelProviders/stepfun.ts +2 -0
- package/src/database/migrations/0013_add_ai_infra.sql +44 -0
- package/src/database/migrations/meta/0013_snapshot.json +3598 -0
- package/src/database/migrations/meta/_journal.json +7 -0
- package/src/database/repositories/aiInfra/index.ts +115 -0
- package/src/database/schemas/aiInfra.ts +69 -0
- package/src/database/schemas/index.ts +1 -0
- package/src/database/server/models/__tests__/aiModel.test.ts +318 -0
- package/src/database/server/models/__tests__/aiProvider.test.ts +373 -0
- package/src/database/server/models/aiModel.ts +250 -0
- package/src/database/server/models/aiProvider.ts +234 -0
- package/src/features/AgentSetting/AgentPrompt/index.tsx +2 -2
- package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +2 -1
- package/src/features/ChatInput/ActionBar/Tools/index.tsx +2 -3
- package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +2 -3
- package/src/features/ChatInput/Desktop/FilePreview/FileItem/index.tsx +3 -2
- package/src/features/ChatInput/Desktop/FilePreview/FileList.tsx +2 -2
- package/src/features/ChatInput/Mobile/Files/FileItem/File.tsx +2 -2
- package/src/features/ChatInput/Mobile/InputArea/index.tsx +1 -1
- package/src/features/ChatInput/STT/common.tsx +1 -1
- package/src/features/Conversation/Error/style.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/FileChunks/Item/style.ts +2 -2
- package/src/features/Conversation/Messages/Assistant/FileChunks/index.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/ToolCallItem/Inspector/style.ts +2 -3
- package/src/features/Conversation/Messages/Assistant/ToolCallItem/style.ts +2 -3
- package/src/features/Conversation/Messages/User/FileListViewer/Item.tsx +0 -1
- package/src/features/Conversation/components/BackBottom/style.ts +2 -2
- package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/Icon.tsx +2 -3
- package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/index.tsx +3 -3
- package/src/features/Conversation/components/MarkdownElements/LobeThinking/Render.tsx +1 -1
- package/src/features/Conversation/components/OTPInput.tsx +2 -2
- package/src/features/DataImporter/Loading.tsx +1 -1
- package/src/features/FileManager/FileList/EmptyStatus.tsx +1 -1
- package/src/features/FileManager/FileList/index.tsx +1 -1
- package/src/features/FileManager/UploadDock/Item.tsx +1 -1
- package/src/features/FileManager/UploadDock/index.tsx +4 -4
- package/src/features/FileViewer/NotSupport/index.tsx +1 -1
- package/src/features/FileViewer/Renderer/MSDoc/index.tsx +0 -1
- package/src/features/FileViewer/Renderer/TXT/index.tsx +1 -1
- package/src/features/InitClientDB/EnableModal.tsx +1 -1
- package/src/features/InitClientDB/ErrorResult.tsx +1 -1
- package/src/features/InitClientDB/InitIndicator.tsx +1 -1
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +0 -1
- package/src/features/ModelSwitchPanel/index.tsx +2 -2
- package/src/features/PluginsUI/Render/Loading.tsx +0 -1
- package/src/features/Portal/Home/Body/Files/FileList/Item.tsx +1 -1
- package/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts +1 -2
- package/src/features/Setting/SettingContainer.tsx +8 -1
- package/src/features/ShareModal/ShareImage/style.ts +2 -2
- package/src/features/ShareModal/style.ts +2 -2
- package/src/features/User/DataStatistics.tsx +1 -1
- package/src/hooks/useEnabledChatModels.ts +10 -1
- package/src/hooks/useModelSupportToolUse.ts +15 -0
- package/src/hooks/useModelSupportVision.ts +15 -0
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +3 -3
- package/src/layout/GlobalProvider/AppTheme.tsx +1 -1
- package/src/layout/GlobalProvider/StoreInitialization.tsx +5 -0
- package/src/locales/default/common.ts +1 -0
- package/src/locales/default/modelProvider.ts +178 -0
- package/src/locales/default/setting.ts +1 -0
- package/src/server/modules/KeyVaultsEncrypt/index.ts +1 -1
- package/src/server/routers/lambda/aiModel.ts +128 -0
- package/src/server/routers/lambda/aiProvider.ts +127 -0
- package/src/server/routers/lambda/index.ts +4 -0
- package/src/services/__tests__/_auth.test.ts +16 -49
- package/src/services/__tests__/chat.test.ts +2 -0
- package/src/services/_auth.ts +42 -25
- package/src/services/aiModel.ts +52 -0
- package/src/services/aiProvider.ts +47 -0
- package/src/services/chat.ts +62 -18
- package/src/store/aiInfra/index.ts +2 -0
- package/src/store/aiInfra/initialState.ts +11 -0
- package/src/store/aiInfra/selectors.ts +2 -0
- package/src/store/aiInfra/slices/aiModel/action.ts +146 -0
- package/src/store/aiInfra/slices/aiModel/index.ts +3 -0
- package/src/store/aiInfra/slices/aiModel/initialState.ts +14 -0
- package/src/store/aiInfra/slices/aiModel/selectors.ts +63 -0
- package/src/store/aiInfra/slices/aiProvider/action.ts +208 -0
- package/src/store/aiInfra/slices/aiProvider/index.ts +3 -0
- package/src/store/aiInfra/slices/aiProvider/initialState.ts +32 -0
- package/src/store/aiInfra/slices/aiProvider/selectors.ts +99 -0
- package/src/store/aiInfra/store.ts +25 -0
- package/src/store/global/initialState.ts +1 -0
- package/src/store/serverConfig/selectors.test.ts +1 -0
- package/src/styles/global.ts +1 -1
- package/src/types/aiModel.ts +32 -6
- package/src/types/aiProvider.ts +11 -4
- package/src/utils/fetch/fetchSSE.ts +3 -1
@@ -63,6 +63,44 @@
|
|
63
63
|
"title": "Cloudflare 帳戶 ID / API 位址"
|
64
64
|
}
|
65
65
|
},
|
66
|
+
"createNewAiProvider": {
|
67
|
+
"apiKey": {
|
68
|
+
"placeholder": "請填寫你的 API Key",
|
69
|
+
"required": "請填寫你的 API Key",
|
70
|
+
"title": "API Key"
|
71
|
+
},
|
72
|
+
"basicTitle": "基本資訊",
|
73
|
+
"configTitle": "配置信息",
|
74
|
+
"confirm": "新建",
|
75
|
+
"createSuccess": "新建成功",
|
76
|
+
"description": {
|
77
|
+
"placeholder": "服務商簡介(選填)",
|
78
|
+
"title": "服務商簡介"
|
79
|
+
},
|
80
|
+
"id": {
|
81
|
+
"placeholder": "建議全小寫,例如 openai,創建後將不可修改",
|
82
|
+
"required": "請填寫服務商 ID",
|
83
|
+
"title": "服務商 ID"
|
84
|
+
},
|
85
|
+
"logo": {
|
86
|
+
"required": "請上傳正確的服務商 Logo",
|
87
|
+
"title": "服務商 Logo"
|
88
|
+
},
|
89
|
+
"name": {
|
90
|
+
"placeholder": "請輸入服務商的展示名稱",
|
91
|
+
"required": "請填寫服務商名稱",
|
92
|
+
"title": "服務商名稱"
|
93
|
+
},
|
94
|
+
"proxyUrl": {
|
95
|
+
"placeholder": "請填寫你的請求地址,如果不填則會使用 SDK 對應的請求地址",
|
96
|
+
"title": "代理地址"
|
97
|
+
},
|
98
|
+
"sdkType": {
|
99
|
+
"required": "請選擇 SDK 類型",
|
100
|
+
"title": "請求格式"
|
101
|
+
},
|
102
|
+
"title": "創建自定義 AI 服務商"
|
103
|
+
},
|
66
104
|
"github": {
|
67
105
|
"personalAccessToken": {
|
68
106
|
"desc": "填入你的 Github 個人存取權杖,點擊[這裡](https://github.com/settings/tokens) 創建",
|
@@ -77,6 +115,23 @@
|
|
77
115
|
"title": "HuggingFace Token"
|
78
116
|
}
|
79
117
|
},
|
118
|
+
"list": {
|
119
|
+
"title": {
|
120
|
+
"disabled": "未啟用服務商",
|
121
|
+
"enabled": "已啟用服務商"
|
122
|
+
}
|
123
|
+
},
|
124
|
+
"menu": {
|
125
|
+
"addCustomProvider": "添加自定義服務商",
|
126
|
+
"all": "全部",
|
127
|
+
"list": {
|
128
|
+
"disabled": "未啟用",
|
129
|
+
"enabled": "已啟用"
|
130
|
+
},
|
131
|
+
"notFound": "未找到搜索結果",
|
132
|
+
"searchProviders": "搜索服務商...",
|
133
|
+
"sort": "自定義排序"
|
134
|
+
},
|
80
135
|
"ollama": {
|
81
136
|
"checker": {
|
82
137
|
"desc": "測試代理地址是否正確填寫",
|
@@ -131,6 +186,127 @@
|
|
131
186
|
"title": "下載指定的 Ollama 模型"
|
132
187
|
}
|
133
188
|
},
|
189
|
+
"providerModels": {
|
190
|
+
"config": {
|
191
|
+
"aesGcm": "您的秘鑰與代理地址等將使用 <1>AES-GCM</1> 加密算法進行加密",
|
192
|
+
"apiKey": {
|
193
|
+
"desc": "請填寫你的 {{name}} API Key",
|
194
|
+
"placeholder": "{{name}} API Key",
|
195
|
+
"title": "API Key"
|
196
|
+
},
|
197
|
+
"baseURL": {
|
198
|
+
"desc": "必須包含 http(s)://",
|
199
|
+
"placeholder": "https://your-proxy-url.com/v1",
|
200
|
+
"title": "API 代理地址"
|
201
|
+
},
|
202
|
+
"checker": {
|
203
|
+
"button": "檢查",
|
204
|
+
"desc": "測試 Api Key 與代理地址是否正確填寫",
|
205
|
+
"pass": "檢查通過",
|
206
|
+
"title": "連通性檢查"
|
207
|
+
},
|
208
|
+
"fetchOnClient": {
|
209
|
+
"desc": "客戶端請求模式將從瀏覽器直接發起會話請求,可提升響應速度",
|
210
|
+
"title": "使用客戶端請求模式"
|
211
|
+
},
|
212
|
+
"helpDoc": "配置教程",
|
213
|
+
"waitingForMore": "更多模型正在 <1>計劃接入</1> 中,敬請期待"
|
214
|
+
},
|
215
|
+
"createNew": {
|
216
|
+
"title": "創建自定義 AI 模型"
|
217
|
+
},
|
218
|
+
"item": {
|
219
|
+
"config": "配置模型",
|
220
|
+
"customModelCards": {
|
221
|
+
"addNew": "創建並添加 {{id}} 模型",
|
222
|
+
"confirmDelete": "即將刪除該自定義模型,刪除後將不可恢復,請謹慎操作。"
|
223
|
+
},
|
224
|
+
"delete": {
|
225
|
+
"confirm": "確認刪除模型 {{displayName}}?",
|
226
|
+
"success": "刪除成功",
|
227
|
+
"title": "刪除模型"
|
228
|
+
},
|
229
|
+
"modelConfig": {
|
230
|
+
"azureDeployName": {
|
231
|
+
"extra": "在 Azure OpenAI 中實際請求的字段",
|
232
|
+
"placeholder": "請輸入 Azure 中的模型部署名稱",
|
233
|
+
"title": "模型部署名稱"
|
234
|
+
},
|
235
|
+
"displayName": {
|
236
|
+
"placeholder": "請輸入模型的展示名稱,例如 ChatGPT、GPT-4 等",
|
237
|
+
"title": "模型展示名稱"
|
238
|
+
},
|
239
|
+
"files": {
|
240
|
+
"extra": "當前文件上傳實現僅為一種 Hack 方案,僅限自行嘗試。完整文件上傳能力請等待後續實現",
|
241
|
+
"title": "支持文件上傳"
|
242
|
+
},
|
243
|
+
"functionCall": {
|
244
|
+
"extra": "此配置將僅開啟應用中的函數調用能力,是否支持函數調用完全取決於模型本身,請自行測試該模型的函數調用能力可用性",
|
245
|
+
"title": "支持函數調用"
|
246
|
+
},
|
247
|
+
"id": {
|
248
|
+
"extra": "將作為模型標籤進行展示",
|
249
|
+
"placeholder": "請輸入模型id,例如 gpt-4-turbo-preview 或 claude-2.1",
|
250
|
+
"title": "模型 ID"
|
251
|
+
},
|
252
|
+
"modalTitle": "自定義模型配置",
|
253
|
+
"tokens": {
|
254
|
+
"title": "最大 token 數",
|
255
|
+
"unlimited": "無限制"
|
256
|
+
},
|
257
|
+
"vision": {
|
258
|
+
"extra": "此配置將僅開啟應用中的圖片上傳配置,是否支持識別完全取決於模型本身,請自行測試該模型的視覺識別能力可用性",
|
259
|
+
"title": "支持視覺識別"
|
260
|
+
}
|
261
|
+
},
|
262
|
+
"pricing": {
|
263
|
+
"image": "${{amount}}/圖片",
|
264
|
+
"inputCharts": "${{amount}}/M 字符",
|
265
|
+
"inputMinutes": "${{amount}}/分鐘",
|
266
|
+
"inputTokens": "輸入 ${{amount}}/M",
|
267
|
+
"outputTokens": "輸出 ${{amount}}/M"
|
268
|
+
},
|
269
|
+
"releasedAt": "發佈於{{releasedAt}}"
|
270
|
+
},
|
271
|
+
"list": {
|
272
|
+
"addNew": "新增模型",
|
273
|
+
"disabled": "未啟用",
|
274
|
+
"empty": {
|
275
|
+
"desc": "請創建自定義模型或拉取模型後開始使用吧",
|
276
|
+
"title": "暫無可用模型"
|
277
|
+
},
|
278
|
+
"enabled": "已啟用",
|
279
|
+
"enabledActions": {
|
280
|
+
"disableAll": "全部禁用",
|
281
|
+
"enableAll": "全部啟用",
|
282
|
+
"sort": "自訂模型排序"
|
283
|
+
},
|
284
|
+
"enabledEmpty": "暫無啟用模型,請從下方列表中啟用心儀的模型吧~",
|
285
|
+
"fetcher": {
|
286
|
+
"clear": "清除取得的模型",
|
287
|
+
"fetch": "取得模型列表",
|
288
|
+
"fetching": "正在取得模型列表...",
|
289
|
+
"latestTime": "上次更新時間:{{time}}",
|
290
|
+
"noLatestTime": "尚未取得列表"
|
291
|
+
},
|
292
|
+
"search": "搜尋模型...",
|
293
|
+
"searchResult": "搜尋到 {{count}} 個模型",
|
294
|
+
"title": "模型列表",
|
295
|
+
"total": "共 {{count}} 個模型可用"
|
296
|
+
},
|
297
|
+
"searchNotFound": "未找到搜尋結果"
|
298
|
+
},
|
299
|
+
"sortModal": {
|
300
|
+
"success": "排序更新成功",
|
301
|
+
"title": "自定義排序",
|
302
|
+
"update": "更新"
|
303
|
+
},
|
304
|
+
"updateAiProvider": {
|
305
|
+
"confirmDelete": "即將刪除該 AI 服務商,刪除後將無法找回,確認是否刪除?",
|
306
|
+
"deleteSuccess": "刪除成功",
|
307
|
+
"tooltip": "更新服務商基礎配置",
|
308
|
+
"updateSuccess": "更新成功"
|
309
|
+
},
|
134
310
|
"wenxin": {
|
135
311
|
"accessKey": {
|
136
312
|
"desc": "填入百度千帆平台的 Access Key",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lobehub/chat",
|
3
|
-
"version": "1.
|
3
|
+
"version": "1.44.0",
|
4
4
|
"description": "Lobe Chat - an open-source, high-performance chatbot 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",
|
@@ -125,12 +125,12 @@
|
|
125
125
|
"@icons-pack/react-simple-icons": "9.6.0",
|
126
126
|
"@khmyznikov/pwa-install": "^0.3.9",
|
127
127
|
"@langchain/community": "^0.3.22",
|
128
|
-
"@lobehub/charts": "^1.11.
|
128
|
+
"@lobehub/charts": "^1.11.1",
|
129
129
|
"@lobehub/chat-plugin-sdk": "^1.32.4",
|
130
130
|
"@lobehub/chat-plugins-gateway": "^1.9.0",
|
131
131
|
"@lobehub/icons": "^1.61.1",
|
132
132
|
"@lobehub/tts": "^1.27.0",
|
133
|
-
"@lobehub/ui": "^1.
|
133
|
+
"@lobehub/ui": "^1.162.0",
|
134
134
|
"@neondatabase/serverless": "^0.10.4",
|
135
135
|
"@next/third-parties": "^15.1.3",
|
136
136
|
"@react-spring/web": "^9.7.5",
|
@@ -244,7 +244,7 @@
|
|
244
244
|
"@edge-runtime/vm": "^5.0.0",
|
245
245
|
"@huggingface/tasks": "^0.12.30",
|
246
246
|
"@lobehub/i18n-cli": "^1.20.3",
|
247
|
-
"@lobehub/lint": "^1.
|
247
|
+
"@lobehub/lint": "^1.25.3",
|
248
248
|
"@lobehub/seo-cli": "^1.4.3",
|
249
249
|
"@next/bundle-analyzer": "^15.1.3",
|
250
250
|
"@next/eslint-plugin-next": "^15.1.3",
|
@@ -9,7 +9,7 @@ import { useCategory } from './useCategory';
|
|
9
9
|
const Category = memo(() => {
|
10
10
|
const items = useCategory();
|
11
11
|
|
12
|
-
return items?.map((item, index) => <Cell key={item.key || index}
|
12
|
+
return items?.map((item, index) => <Cell {...item} key={item.key || index} />);
|
13
13
|
});
|
14
14
|
|
15
15
|
export default Category;
|
@@ -6,6 +6,7 @@ import { Flexbox } from 'react-layout-kit';
|
|
6
6
|
import urlJoin from 'url-join';
|
7
7
|
|
8
8
|
import { CellProps } from '@/components/Cell';
|
9
|
+
import { isServerMode } from '@/const/version';
|
9
10
|
import { SettingsTabs } from '@/store/global/initialState';
|
10
11
|
import { featureFlagsSelectors, useServerConfigStore } from '@/store/serverConfig';
|
11
12
|
|
@@ -37,11 +38,17 @@ export const useCategory = () => {
|
|
37
38
|
</Flexbox>
|
38
39
|
),
|
39
40
|
},
|
40
|
-
showLLM &&
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
41
|
+
showLLM && isServerMode
|
42
|
+
? {
|
43
|
+
icon: Brain,
|
44
|
+
key: SettingsTabs.Provider,
|
45
|
+
label: t('tab.provider'),
|
46
|
+
}
|
47
|
+
: {
|
48
|
+
icon: Brain,
|
49
|
+
key: SettingsTabs.LLM,
|
50
|
+
label: t('tab.llm'),
|
51
|
+
},
|
45
52
|
{ icon: Mic2, key: SettingsTabs.TTS, label: t('tab.tts') },
|
46
53
|
{
|
47
54
|
icon: Bot,
|
@@ -16,9 +16,9 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
16
16
|
|
17
17
|
padding-block: 8px 4px;
|
18
18
|
padding-inline: 4px;
|
19
|
+
border-radius: 6px;
|
19
20
|
|
20
21
|
background: ${isDarkMode ? token.colorFillTertiary : token.colorFillQuaternary};
|
21
|
-
border-radius: 6px;
|
22
22
|
`,
|
23
23
|
}));
|
24
24
|
|
@@ -27,11 +27,11 @@ const useStyles = createStyles(({ css, token, responsive }) => ({
|
|
27
27
|
height: 100%;
|
28
28
|
min-height: 110px;
|
29
29
|
padding: 16px;
|
30
|
+
border-radius: ${token.borderRadius}px;
|
30
31
|
|
31
32
|
color: ${token.colorText};
|
32
33
|
|
33
34
|
background: ${token.colorBgContainer};
|
34
|
-
border-radius: ${token.borderRadius}px;
|
35
35
|
|
36
36
|
&:hover {
|
37
37
|
background: ${token.colorBgElevated};
|
@@ -20,11 +20,11 @@ const useStyles = createStyles(({ css, token, responsive }) => ({
|
|
20
20
|
|
21
21
|
padding-block: 12px;
|
22
22
|
padding-inline: 24px;
|
23
|
+
border-radius: 48px;
|
23
24
|
|
24
25
|
color: ${token.colorText};
|
25
26
|
|
26
27
|
background: ${token.colorBgContainer};
|
27
|
-
border-radius: 48px;
|
28
28
|
|
29
29
|
&:hover {
|
30
30
|
background: ${token.colorBgElevated};
|
package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/index.tsx
CHANGED
@@ -27,7 +27,6 @@ const useStyles = createStyles(({ css, token, isDarkMode }, index: number) => ({
|
|
27
27
|
inset-inline-start: 26px;
|
28
28
|
|
29
29
|
width: 18px;
|
30
|
-
|
31
30
|
border-block-end: 2px solid ${token.colorBorderSecondary};
|
32
31
|
border-inline-start: 2px solid ${token.colorBorderSecondary};
|
33
32
|
border-end-start-radius: 8px;
|
@@ -47,7 +46,6 @@ const useStyles = createStyles(({ css, token, isDarkMode }, index: number) => ({
|
|
47
46
|
margin-block: 2px;
|
48
47
|
padding-block: 4px;
|
49
48
|
padding-inline: 8px;
|
50
|
-
|
51
49
|
border-radius: ${token.borderRadius}px;
|
52
50
|
|
53
51
|
&:hover {
|
@@ -4,10 +4,9 @@ import { memo } from 'react';
|
|
4
4
|
import { Flexbox } from 'react-layout-kit';
|
5
5
|
|
6
6
|
import ModelSwitchPanel from '@/features/ModelSwitchPanel';
|
7
|
+
import { useModelSupportToolUse } from '@/hooks/useModelSupportToolUse';
|
7
8
|
import { useAgentStore } from '@/store/agent';
|
8
9
|
import { agentSelectors } from '@/store/agent/selectors';
|
9
|
-
import { useUserStore } from '@/store/user';
|
10
|
-
import { modelProviderSelectors } from '@/store/user/selectors';
|
11
10
|
|
12
11
|
import PluginTag from '../../../features/PluginTag';
|
13
12
|
import KnowledgeTag from './KnowledgeTag';
|
@@ -20,7 +19,7 @@ const TitleTags = memo(() => {
|
|
20
19
|
const plugins = useAgentStore(agentSelectors.currentAgentPlugins, isEqual);
|
21
20
|
const enabledKnowledge = useAgentStore(agentSelectors.currentEnabledKnowledge, isEqual);
|
22
21
|
|
23
|
-
const showPlugin =
|
22
|
+
const showPlugin = useModelSupportToolUse(model);
|
24
23
|
|
25
24
|
return (
|
26
25
|
<Flexbox align={'center'} horizontal>
|
@@ -1,5 +1,8 @@
|
|
1
|
+
import { Suspense } from 'react';
|
1
2
|
import { Flexbox } from 'react-layout-kit';
|
2
3
|
|
4
|
+
import BrandTextLoading from '@/components/Loading/BrandTextLoading';
|
5
|
+
|
3
6
|
import { LayoutProps } from '../type';
|
4
7
|
import ChatHeader from './ChatHeader';
|
5
8
|
import HotKeys from './HotKeys';
|
@@ -24,7 +27,9 @@ const Layout = ({ children, topic, conversation, portal }: LayoutProps) => {
|
|
24
27
|
{conversation}
|
25
28
|
</Flexbox>
|
26
29
|
{children}
|
27
|
-
<Portal>
|
30
|
+
<Portal>
|
31
|
+
<Suspense fallback={<BrandTextLoading />}>{portal}</Suspense>
|
32
|
+
</Portal>
|
28
33
|
<TopicPanel>{topic}</TopicPanel>
|
29
34
|
</Flexbox>
|
30
35
|
<HotKeys />
|
@@ -8,8 +8,8 @@ const useStyles = createStyles(({ css, prefixCls, token, responsive }) => ({
|
|
8
8
|
container: css`
|
9
9
|
.${prefixCls}-collapse-header {
|
10
10
|
padding-inline: 16px 10px !important;
|
11
|
-
color: ${token.colorTextDescription} !important;
|
12
11
|
border-radius: ${token.borderRadius}px !important;
|
12
|
+
color: ${token.colorTextDescription} !important;
|
13
13
|
|
14
14
|
${responsive.mobile} {
|
15
15
|
border-radius: 0 !important;
|
@@ -31,8 +31,8 @@ const useStyles = createStyles(({ css, token, isDarkMode, responsive }) => ({
|
|
31
31
|
iconCtn: css`
|
32
32
|
width: 72px;
|
33
33
|
height: 72px;
|
34
|
-
background: ${isDarkMode ? token.blue1 : token.geekblue1};
|
35
34
|
border-radius: 50%;
|
35
|
+
background: ${isDarkMode ? token.blue1 : token.geekblue1};
|
36
36
|
`,
|
37
37
|
intro: css`
|
38
38
|
${responsive.mobile} {
|
package/src/app/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/TopicList.tsx
CHANGED
@@ -6,8 +6,8 @@ import { ExampleTopic } from '@/types/discover';
|
|
6
6
|
|
7
7
|
const useStyles = createStyles(({ css, token }) => ({
|
8
8
|
active: css`
|
9
|
-
background: ${token.colorBgElevated};
|
10
9
|
border-inline-start: 4px solid ${token.colorFill};
|
10
|
+
background: ${token.colorBgElevated};
|
11
11
|
box-shadow: 0 0 0 1px ${token.colorFillSecondary} inset;
|
12
12
|
`,
|
13
13
|
container: css`
|
@@ -20,15 +20,16 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
20
20
|
item: css`
|
21
21
|
cursor: pointer;
|
22
22
|
|
23
|
-
background: ${token.colorFillTertiary};
|
24
23
|
border-inline-start: 4px solid transparent;
|
25
24
|
border-radius: ${token.borderRadiusLG}px;
|
26
25
|
|
26
|
+
background: ${token.colorFillTertiary};
|
27
|
+
|
27
28
|
transition: all 0.2s ${token.motionEaseInOut};
|
28
29
|
|
29
30
|
&:hover {
|
30
|
-
background: ${token.colorBgElevated};
|
31
31
|
border-inline-start: 4px solid ${token.colorFill};
|
32
|
+
background: ${token.colorBgElevated};
|
32
33
|
box-shadow: 0 0 0 1px ${token.colorFillSecondary} inset;
|
33
34
|
}
|
34
35
|
`,
|
@@ -19,9 +19,9 @@ import Back from '../../../features/Back';
|
|
19
19
|
|
20
20
|
export const useStyles = createStyles(({ css, token }) => ({
|
21
21
|
tag: css`
|
22
|
+
border: none;
|
22
23
|
color: ${token.colorTextSecondary};
|
23
24
|
background: ${token.colorFillSecondary};
|
24
|
-
border: none;
|
25
25
|
`,
|
26
26
|
time: css`
|
27
27
|
font-size: 12px;
|
@@ -17,9 +17,10 @@ const useStyles = createStyles(({ css, token }) => {
|
|
17
17
|
banner: css`
|
18
18
|
overflow: hidden;
|
19
19
|
|
20
|
-
background: ${token.colorBgContainer};
|
21
20
|
border: 1px solid ${token.colorBorderSecondary};
|
22
21
|
border-radius: ${token.borderRadiusLG}px;
|
22
|
+
|
23
|
+
background: ${token.colorBgContainer};
|
23
24
|
box-shadow: ${token.boxShadowTertiary};
|
24
25
|
`,
|
25
26
|
copy: css`
|
@@ -15,9 +15,9 @@ import Back from '../../../features/Back';
|
|
15
15
|
|
16
16
|
export const useStyles = createStyles(({ css, token }) => ({
|
17
17
|
tag: css`
|
18
|
+
border: none;
|
18
19
|
color: ${token.colorTextSecondary};
|
19
20
|
background: ${token.colorFillSecondary};
|
20
|
-
border: none;
|
21
21
|
`,
|
22
22
|
time: css`
|
23
23
|
font-size: 12px;
|
@@ -18,9 +18,9 @@ import Back from '../../../features/Back';
|
|
18
18
|
|
19
19
|
export const useStyles = createStyles(({ css, token }) => ({
|
20
20
|
tag: css`
|
21
|
+
border: none;
|
21
22
|
color: ${token.colorTextSecondary};
|
22
23
|
background: ${token.colorFillSecondary};
|
23
|
-
border: none;
|
24
24
|
`,
|
25
25
|
time: css`
|
26
26
|
font-size: 12px;
|
@@ -14,9 +14,9 @@ import Back from '../../../features/Back';
|
|
14
14
|
|
15
15
|
export const useStyles = createStyles(({ css, token }) => ({
|
16
16
|
tag: css`
|
17
|
+
border: none;
|
17
18
|
color: ${token.colorTextSecondary};
|
18
19
|
background: ${token.colorFillSecondary};
|
19
|
-
border: none;
|
20
20
|
`,
|
21
21
|
time: css`
|
22
22
|
font-size: 12px;
|
@@ -34,9 +34,9 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
34
34
|
|
35
35
|
height: 100%;
|
36
36
|
min-height: 162px;
|
37
|
+
border-radius: ${token.borderRadiusLG}px;
|
37
38
|
|
38
39
|
background: ${token.colorBgContainer};
|
39
|
-
border-radius: ${token.borderRadiusLG}px;
|
40
40
|
box-shadow: 0 0 1px 1px ${isDarkMode ? token.colorFillQuaternary : token.colorFillSecondary}
|
41
41
|
inset;
|
42
42
|
|
@@ -24,9 +24,9 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
24
24
|
|
25
25
|
height: 100%;
|
26
26
|
min-height: 162px;
|
27
|
+
border-radius: ${token.borderRadiusLG}px;
|
27
28
|
|
28
29
|
background: ${token.colorBgContainer};
|
29
|
-
border-radius: ${token.borderRadiusLG}px;
|
30
30
|
box-shadow: 0 0 1px 1px ${isDarkMode ? token.colorFillQuaternary : token.colorFillSecondary}
|
31
31
|
inset;
|
32
32
|
|
@@ -33,9 +33,9 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
33
33
|
|
34
34
|
height: 100%;
|
35
35
|
min-height: 162px;
|
36
|
+
border-radius: ${token.borderRadiusLG}px;
|
36
37
|
|
37
38
|
background: ${token.colorBgContainer};
|
38
|
-
border-radius: ${token.borderRadiusLG}px;
|
39
39
|
box-shadow: 0 0 1px 1px ${isDarkMode ? token.colorFillQuaternary : token.colorFillSecondary}
|
40
40
|
inset;
|
41
41
|
|
@@ -30,9 +30,9 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
30
30
|
|
31
31
|
height: 100%;
|
32
32
|
min-height: 162px;
|
33
|
+
border-radius: ${token.borderRadiusLG}px;
|
33
34
|
|
34
35
|
background: ${token.colorBgContainer};
|
35
|
-
border-radius: ${token.borderRadiusLG}px;
|
36
36
|
box-shadow: 0 0 1px 1px ${isDarkMode ? token.colorFillQuaternary : token.colorFillSecondary}
|
37
37
|
inset;
|
38
38
|
|
@@ -14,8 +14,9 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
14
14
|
|
15
15
|
overflow: hidden;
|
16
16
|
|
17
|
-
background: ${token.colorBgContainer};
|
18
17
|
border-radius: ${token.borderRadiusLG}px;
|
18
|
+
|
19
|
+
background: ${token.colorBgContainer};
|
19
20
|
box-shadow: 0 0 1px 1px ${isDarkMode ? token.colorFillQuaternary : token.colorFillSecondary}
|
20
21
|
inset;
|
21
22
|
|
@@ -19,13 +19,13 @@ const useStyles = createStyles(({ css, responsive, token }) => ({
|
|
19
19
|
|
20
20
|
padding-block: 0.1em;
|
21
21
|
padding-inline: 0.3em;
|
22
|
+
border-radius: ${token.borderRadius}px;
|
22
23
|
|
23
24
|
font-size: 18px;
|
24
25
|
font-weight: 500;
|
25
26
|
color: ${token.colorTextSecondary};
|
26
27
|
|
27
28
|
background: ${token.colorFillSecondary};
|
28
|
-
border-radius: ${token.borderRadius}px;
|
29
29
|
${responsive.mobile} {
|
30
30
|
font-size: 14px;
|
31
31
|
}
|