@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.
Files changed (299) hide show
  1. package/CHANGELOG.md +50 -0
  2. package/changelog/v1.json +18 -0
  3. package/docs/self-hosting/server-database/docker-compose.mdx +2 -2
  4. package/locales/ar/common.json +1 -0
  5. package/locales/ar/modelProvider.json +176 -0
  6. package/locales/ar/setting.json +1 -0
  7. package/locales/bg-BG/common.json +1 -0
  8. package/locales/bg-BG/modelProvider.json +176 -0
  9. package/locales/bg-BG/setting.json +1 -0
  10. package/locales/de-DE/common.json +1 -0
  11. package/locales/de-DE/modelProvider.json +176 -0
  12. package/locales/de-DE/setting.json +1 -0
  13. package/locales/en-US/common.json +1 -0
  14. package/locales/en-US/modelProvider.json +176 -0
  15. package/locales/en-US/setting.json +1 -0
  16. package/locales/es-ES/common.json +1 -0
  17. package/locales/es-ES/modelProvider.json +176 -0
  18. package/locales/es-ES/setting.json +1 -0
  19. package/locales/fa-IR/common.json +1 -0
  20. package/locales/fa-IR/modelProvider.json +176 -0
  21. package/locales/fa-IR/setting.json +1 -0
  22. package/locales/fr-FR/common.json +1 -0
  23. package/locales/fr-FR/modelProvider.json +176 -0
  24. package/locales/fr-FR/setting.json +1 -0
  25. package/locales/it-IT/common.json +1 -0
  26. package/locales/it-IT/modelProvider.json +176 -0
  27. package/locales/it-IT/setting.json +1 -0
  28. package/locales/ja-JP/common.json +1 -0
  29. package/locales/ja-JP/modelProvider.json +176 -0
  30. package/locales/ja-JP/setting.json +1 -0
  31. package/locales/ko-KR/common.json +1 -0
  32. package/locales/ko-KR/modelProvider.json +176 -0
  33. package/locales/ko-KR/setting.json +1 -0
  34. package/locales/nl-NL/common.json +1 -0
  35. package/locales/nl-NL/modelProvider.json +176 -0
  36. package/locales/nl-NL/setting.json +1 -0
  37. package/locales/pl-PL/common.json +1 -0
  38. package/locales/pl-PL/modelProvider.json +176 -0
  39. package/locales/pl-PL/setting.json +1 -0
  40. package/locales/pt-BR/common.json +1 -0
  41. package/locales/pt-BR/modelProvider.json +176 -0
  42. package/locales/pt-BR/setting.json +1 -0
  43. package/locales/ru-RU/common.json +1 -0
  44. package/locales/ru-RU/modelProvider.json +176 -0
  45. package/locales/ru-RU/setting.json +1 -0
  46. package/locales/tr-TR/common.json +1 -0
  47. package/locales/tr-TR/modelProvider.json +176 -0
  48. package/locales/tr-TR/setting.json +1 -0
  49. package/locales/vi-VN/common.json +1 -0
  50. package/locales/vi-VN/modelProvider.json +176 -0
  51. package/locales/vi-VN/setting.json +1 -0
  52. package/locales/zh-CN/common.json +1 -0
  53. package/locales/zh-CN/modelProvider.json +176 -0
  54. package/locales/zh-CN/setting.json +1 -0
  55. package/locales/zh-TW/common.json +1 -0
  56. package/locales/zh-TW/modelProvider.json +176 -0
  57. package/locales/zh-TW/setting.json +1 -0
  58. package/package.json +4 -4
  59. package/src/app/(main)/(mobile)/me/settings/features/Category.tsx +1 -1
  60. package/src/app/(main)/(mobile)/me/settings/features/useCategory.tsx +12 -5
  61. package/src/app/(main)/changelog/features/VersionTag.tsx +1 -2
  62. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/Thread.tsx +1 -1
  63. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/ThreadItem.tsx +1 -2
  64. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/index.tsx +0 -1
  65. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/AgentsSuggest.tsx +1 -1
  66. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/QuestionSuggest.tsx +1 -1
  67. package/src/app/(main)/chat/(workspace)/@conversation/features/ZenModeToast/Toast.tsx +1 -1
  68. package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/index.tsx +0 -2
  69. package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem/index.tsx +0 -1
  70. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +2 -3
  71. package/src/app/(main)/chat/(workspace)/_layout/Desktop/index.tsx +6 -1
  72. package/src/app/(main)/chat/@session/features/SessionListContent/CollapseGroup/index.tsx +1 -1
  73. package/src/app/(main)/chat/features/Migration/Start.tsx +1 -1
  74. package/src/app/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/TopicList.tsx +4 -3
  75. package/src/app/(main)/discover/(detail)/assistant/[slug]/features/Header.tsx +1 -1
  76. package/src/app/(main)/discover/(detail)/features/ShareButton.tsx +2 -1
  77. package/src/app/(main)/discover/(detail)/model/[...slugs]/features/Header.tsx +1 -1
  78. package/src/app/(main)/discover/(detail)/plugin/[slug]/features/Header.tsx +1 -1
  79. package/src/app/(main)/discover/(detail)/provider/[slug]/features/Header.tsx +1 -1
  80. package/src/app/(main)/discover/(list)/_layout/Desktop/Nav.tsx +0 -1
  81. package/src/app/(main)/discover/(list)/assistants/features/Card.tsx +1 -1
  82. package/src/app/(main)/discover/(list)/models/features/Card.tsx +1 -1
  83. package/src/app/(main)/discover/(list)/plugins/features/Card.tsx +1 -1
  84. package/src/app/(main)/discover/(list)/providers/features/Card.tsx +1 -1
  85. package/src/app/(main)/discover/components/GridLoadingCard.tsx +2 -1
  86. package/src/app/(main)/discover/components/Title.tsx +1 -1
  87. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +1 -1
  88. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/index.tsx +0 -1
  89. package/src/app/(main)/files/(content)/@modal/(.)[id]/FullscreenModal.tsx +2 -2
  90. package/src/app/(main)/files/(content)/NotSupportClient.tsx +2 -2
  91. package/src/app/(main)/profile/_layout/Desktop/SideBar.tsx +1 -1
  92. package/src/app/(main)/profile/stats/features/ShareButton/Preview.tsx +5 -5
  93. package/src/app/(main)/repos/[id]/evals/components/Container.tsx +1 -1
  94. package/src/app/(main)/repos/[id]/evals/dataset/DatasetList/Item.tsx +0 -1
  95. package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +1 -1
  96. package/src/app/(main)/settings/about/features/ItemCard.tsx +3 -3
  97. package/src/app/(main)/settings/about/features/Version.tsx +1 -1
  98. package/src/app/(main)/settings/hooks/useCategory.tsx +22 -9
  99. package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +2 -1
  100. package/src/app/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +0 -1
  101. package/src/app/(main)/settings/provider/(detail)/[id]/index.tsx +19 -0
  102. package/src/app/(main)/settings/provider/(detail)/[id]/page.tsx +95 -0
  103. package/src/app/(main)/settings/provider/(detail)/azure/page.tsx +119 -0
  104. package/src/app/(main)/settings/provider/(detail)/bedrock/page.tsx +91 -0
  105. package/src/app/(main)/settings/provider/(detail)/cloudflare/page.tsx +58 -0
  106. package/src/app/(main)/settings/provider/(detail)/github/page.tsx +67 -0
  107. package/src/app/(main)/settings/provider/(detail)/huggingface/page.tsx +67 -0
  108. package/src/app/(main)/settings/provider/(detail)/ollama/Checker.tsx +73 -0
  109. package/src/app/(main)/settings/provider/(detail)/ollama/page.tsx +34 -0
  110. package/src/app/(main)/settings/provider/(detail)/openai/page.tsx +23 -0
  111. package/src/app/(main)/settings/provider/(detail)/wenxin/page.tsx +61 -0
  112. package/src/app/(main)/settings/provider/(list)/Footer.tsx +36 -0
  113. package/src/app/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +134 -0
  114. package/src/app/(main)/settings/provider/(list)/ProviderGrid/index.tsx +91 -0
  115. package/src/app/(main)/settings/provider/(list)/index.tsx +19 -0
  116. package/src/app/(main)/settings/provider/ProviderMenu/AddNew.tsx +28 -0
  117. package/src/app/(main)/settings/provider/ProviderMenu/All.tsx +29 -0
  118. package/src/app/(main)/settings/provider/ProviderMenu/Item.tsx +69 -0
  119. package/src/app/(main)/settings/provider/ProviderMenu/List.tsx +76 -0
  120. package/src/app/(main)/settings/provider/ProviderMenu/SearchResult.tsx +43 -0
  121. package/src/app/(main)/settings/provider/ProviderMenu/SkeletonList.tsx +60 -0
  122. package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx +30 -0
  123. package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/index.tsx +91 -0
  124. package/src/app/(main)/settings/provider/ProviderMenu/index.tsx +80 -0
  125. package/src/app/(main)/settings/provider/_layout/Desktop.tsx +37 -0
  126. package/src/app/(main)/settings/provider/_layout/Mobile.tsx +14 -0
  127. package/src/app/(main)/settings/provider/const.ts +20 -0
  128. package/src/app/(main)/settings/provider/features/CreateNewProvider/index.tsx +146 -0
  129. package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/Form.tsx +105 -0
  130. package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/index.tsx +69 -0
  131. package/src/app/(main)/settings/provider/features/ModelList/DisabledModels.tsx +29 -0
  132. package/src/app/(main)/settings/provider/features/ModelList/EmptyModels.tsx +101 -0
  133. package/src/app/(main)/settings/provider/features/ModelList/EnabledModelList/index.tsx +85 -0
  134. package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/Form.tsx +109 -0
  135. package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/index.tsx +76 -0
  136. package/src/app/(main)/settings/provider/features/ModelList/ModelItem.tsx +346 -0
  137. package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/Search.tsx +37 -0
  138. package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +145 -0
  139. package/src/app/(main)/settings/provider/features/ModelList/SearchResult.tsx +67 -0
  140. package/src/app/(main)/settings/provider/features/ModelList/SkeletonList.tsx +63 -0
  141. package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/ListItem.tsx +20 -0
  142. package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/index.tsx +96 -0
  143. package/src/app/(main)/settings/provider/features/ModelList/index.tsx +59 -0
  144. package/src/app/(main)/settings/provider/features/ProviderConfig/Checker.tsx +120 -0
  145. package/src/app/(main)/settings/provider/features/ProviderConfig/SkeletonInput.tsx +5 -0
  146. package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +137 -0
  147. package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx +49 -0
  148. package/src/app/(main)/settings/provider/features/ProviderConfig/index.tsx +343 -0
  149. package/src/app/(main)/settings/provider/layout.tsx +21 -0
  150. package/src/app/(main)/settings/provider/page.tsx +17 -0
  151. package/src/app/(main)/settings/provider/type.ts +5 -0
  152. package/src/app/(main)/settings/sync/features/DeviceInfo/Card.tsx +1 -1
  153. package/src/app/(main)/settings/sync/features/DeviceInfo/index.tsx +1 -1
  154. package/src/app/@modal/(.)changelog/modal/features/ReadDetail.tsx +1 -1
  155. package/src/app/@modal/(.)changelog/modal/features/VersionTag.tsx +1 -2
  156. package/src/app/@modal/(.)changelog/modal/layout.tsx +1 -1
  157. package/src/components/Cell/index.tsx +1 -1
  158. package/src/components/DragUpload/index.tsx +2 -3
  159. package/src/components/FeatureList/index.tsx +1 -1
  160. package/src/components/FileParsingStatus/EmbeddingStatus.tsx +1 -1
  161. package/src/components/FileParsingStatus/index.tsx +1 -1
  162. package/src/components/FunctionModal/style.tsx +2 -2
  163. package/src/components/GoBack/index.tsx +1 -2
  164. package/src/components/HotKeys/index.tsx +1 -1
  165. package/src/components/InstantSwitch/index.tsx +28 -0
  166. package/src/components/Menu/index.tsx +1 -1
  167. package/src/components/ModelSelect/index.tsx +2 -3
  168. package/src/components/Notification/index.tsx +2 -1
  169. package/src/components/StatisticCard/index.tsx +5 -6
  170. package/src/config/aiModels/ai21.ts +38 -0
  171. package/src/config/aiModels/ai360.ts +71 -0
  172. package/src/config/aiModels/anthropic.ts +152 -0
  173. package/src/config/aiModels/azure.ts +86 -0
  174. package/src/config/aiModels/baichuan.ts +107 -0
  175. package/src/config/aiModels/bedrock.ts +315 -0
  176. package/src/config/aiModels/cloudflare.ts +88 -0
  177. package/src/config/aiModels/deepseek.ts +27 -0
  178. package/src/config/aiModels/fireworksai.ts +232 -0
  179. package/src/config/aiModels/giteeai.ts +137 -0
  180. package/src/config/aiModels/github.ts +273 -0
  181. package/src/config/aiModels/google.ts +317 -0
  182. package/src/config/aiModels/groq.ts +202 -0
  183. package/src/config/aiModels/higress.ts +2828 -0
  184. package/src/config/aiModels/huggingface.ts +56 -0
  185. package/src/config/aiModels/hunyuan.ts +151 -0
  186. package/src/config/aiModels/index.ts +98 -0
  187. package/src/config/aiModels/internlm.ts +40 -0
  188. package/src/config/aiModels/minimax.ts +55 -0
  189. package/src/config/aiModels/mistral.ts +172 -0
  190. package/src/config/aiModels/moonshot.ts +44 -0
  191. package/src/config/aiModels/novita.ts +124 -0
  192. package/src/config/aiModels/ollama.ts +412 -0
  193. package/src/config/aiModels/openai.ts +537 -0
  194. package/src/config/aiModels/openrouter.ts +252 -0
  195. package/src/config/aiModels/perplexity.ts +67 -0
  196. package/src/config/aiModels/qwen.ts +302 -0
  197. package/src/config/aiModels/sensenova.ts +114 -0
  198. package/src/config/aiModels/siliconcloud.ts +679 -0
  199. package/src/config/aiModels/spark.ts +68 -0
  200. package/src/config/aiModels/stepfun.ts +153 -0
  201. package/src/config/aiModels/taichu.ts +19 -0
  202. package/src/config/aiModels/togetherai.ts +334 -0
  203. package/src/config/aiModels/upstage.ts +37 -0
  204. package/src/config/aiModels/wenxin.ts +171 -0
  205. package/src/config/aiModels/xai.ts +72 -0
  206. package/src/config/aiModels/zeroone.ts +156 -0
  207. package/src/config/aiModels/zhipu.ts +235 -0
  208. package/src/config/featureFlags/schema.ts +3 -0
  209. package/src/config/modelProviders/anthropic.ts +1 -0
  210. package/src/config/modelProviders/github.ts +0 -1
  211. package/src/config/modelProviders/google.ts +1 -0
  212. package/src/config/modelProviders/stepfun.ts +2 -0
  213. package/src/database/migrations/0013_add_ai_infra.sql +44 -0
  214. package/src/database/migrations/meta/0013_snapshot.json +3598 -0
  215. package/src/database/migrations/meta/_journal.json +7 -0
  216. package/src/database/repositories/aiInfra/index.ts +115 -0
  217. package/src/database/schemas/aiInfra.ts +69 -0
  218. package/src/database/schemas/index.ts +1 -0
  219. package/src/database/server/models/__tests__/aiModel.test.ts +318 -0
  220. package/src/database/server/models/__tests__/aiProvider.test.ts +373 -0
  221. package/src/database/server/models/aiModel.ts +250 -0
  222. package/src/database/server/models/aiProvider.ts +234 -0
  223. package/src/features/AgentSetting/AgentPrompt/index.tsx +2 -2
  224. package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +2 -1
  225. package/src/features/ChatInput/ActionBar/Tools/index.tsx +2 -3
  226. package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +2 -3
  227. package/src/features/ChatInput/Desktop/FilePreview/FileItem/index.tsx +3 -2
  228. package/src/features/ChatInput/Desktop/FilePreview/FileList.tsx +2 -2
  229. package/src/features/ChatInput/Mobile/Files/FileItem/File.tsx +2 -2
  230. package/src/features/ChatInput/Mobile/InputArea/index.tsx +1 -1
  231. package/src/features/ChatInput/STT/common.tsx +1 -1
  232. package/src/features/Conversation/Error/style.tsx +2 -2
  233. package/src/features/Conversation/Messages/Assistant/FileChunks/Item/style.ts +2 -2
  234. package/src/features/Conversation/Messages/Assistant/FileChunks/index.tsx +1 -1
  235. package/src/features/Conversation/Messages/Assistant/ToolCallItem/Inspector/style.ts +2 -3
  236. package/src/features/Conversation/Messages/Assistant/ToolCallItem/style.ts +2 -3
  237. package/src/features/Conversation/Messages/User/FileListViewer/Item.tsx +0 -1
  238. package/src/features/Conversation/components/BackBottom/style.ts +2 -2
  239. package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/Icon.tsx +2 -3
  240. package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/index.tsx +3 -3
  241. package/src/features/Conversation/components/MarkdownElements/LobeThinking/Render.tsx +1 -1
  242. package/src/features/Conversation/components/OTPInput.tsx +2 -2
  243. package/src/features/DataImporter/Loading.tsx +1 -1
  244. package/src/features/FileManager/FileList/EmptyStatus.tsx +1 -1
  245. package/src/features/FileManager/FileList/index.tsx +1 -1
  246. package/src/features/FileManager/UploadDock/Item.tsx +1 -1
  247. package/src/features/FileManager/UploadDock/index.tsx +4 -4
  248. package/src/features/FileViewer/NotSupport/index.tsx +1 -1
  249. package/src/features/FileViewer/Renderer/MSDoc/index.tsx +0 -1
  250. package/src/features/FileViewer/Renderer/TXT/index.tsx +1 -1
  251. package/src/features/InitClientDB/EnableModal.tsx +1 -1
  252. package/src/features/InitClientDB/ErrorResult.tsx +1 -1
  253. package/src/features/InitClientDB/InitIndicator.tsx +1 -1
  254. package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +0 -1
  255. package/src/features/ModelSwitchPanel/index.tsx +2 -2
  256. package/src/features/PluginsUI/Render/Loading.tsx +0 -1
  257. package/src/features/Portal/Home/Body/Files/FileList/Item.tsx +1 -1
  258. package/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts +1 -2
  259. package/src/features/Setting/SettingContainer.tsx +8 -1
  260. package/src/features/ShareModal/ShareImage/style.ts +2 -2
  261. package/src/features/ShareModal/style.ts +2 -2
  262. package/src/features/User/DataStatistics.tsx +1 -1
  263. package/src/hooks/useEnabledChatModels.ts +10 -1
  264. package/src/hooks/useModelSupportToolUse.ts +15 -0
  265. package/src/hooks/useModelSupportVision.ts +15 -0
  266. package/src/layout/AuthProvider/Clerk/useAppearance.ts +3 -3
  267. package/src/layout/GlobalProvider/AppTheme.tsx +1 -1
  268. package/src/layout/GlobalProvider/StoreInitialization.tsx +5 -0
  269. package/src/locales/default/common.ts +1 -0
  270. package/src/locales/default/modelProvider.ts +178 -0
  271. package/src/locales/default/setting.ts +1 -0
  272. package/src/server/modules/KeyVaultsEncrypt/index.ts +1 -1
  273. package/src/server/routers/lambda/aiModel.ts +128 -0
  274. package/src/server/routers/lambda/aiProvider.ts +127 -0
  275. package/src/server/routers/lambda/index.ts +4 -0
  276. package/src/services/__tests__/_auth.test.ts +16 -49
  277. package/src/services/__tests__/chat.test.ts +2 -0
  278. package/src/services/_auth.ts +42 -25
  279. package/src/services/aiModel.ts +52 -0
  280. package/src/services/aiProvider.ts +47 -0
  281. package/src/services/chat.ts +62 -18
  282. package/src/store/aiInfra/index.ts +2 -0
  283. package/src/store/aiInfra/initialState.ts +11 -0
  284. package/src/store/aiInfra/selectors.ts +2 -0
  285. package/src/store/aiInfra/slices/aiModel/action.ts +146 -0
  286. package/src/store/aiInfra/slices/aiModel/index.ts +3 -0
  287. package/src/store/aiInfra/slices/aiModel/initialState.ts +14 -0
  288. package/src/store/aiInfra/slices/aiModel/selectors.ts +63 -0
  289. package/src/store/aiInfra/slices/aiProvider/action.ts +208 -0
  290. package/src/store/aiInfra/slices/aiProvider/index.ts +3 -0
  291. package/src/store/aiInfra/slices/aiProvider/initialState.ts +32 -0
  292. package/src/store/aiInfra/slices/aiProvider/selectors.ts +99 -0
  293. package/src/store/aiInfra/store.ts +25 -0
  294. package/src/store/global/initialState.ts +1 -0
  295. package/src/store/serverConfig/selectors.test.ts +1 -0
  296. package/src/styles/global.ts +1 -1
  297. package/src/types/aiModel.ts +32 -6
  298. package/src/types/aiProvider.ts +11 -4
  299. 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",
@@ -411,6 +411,7 @@
411
411
  "common": "通用設置",
412
412
  "experiment": "實驗",
413
413
  "llm": "語言模型",
414
+ "provider": "AI 服務商",
414
415
  "sync": "雲端同步",
415
416
  "system-agent": "系統助手",
416
417
  "tts": "語音服務"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/chat",
3
- "version": "1.43.5",
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.0",
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.161.0",
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.24.4",
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} {...item} />);
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
- icon: Brain,
42
- key: SettingsTabs.LLM,
43
- label: t('tab.llm'),
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,
@@ -10,10 +10,9 @@ const useStyles = createStyles(({ token, css }) => {
10
10
  margin: 0;
11
11
  padding-block: 4px;
12
12
  padding-inline: 12px;
13
+ border-radius: 16px;
13
14
 
14
15
  color: ${token.colorTextSecondary};
15
-
16
- border-radius: 16px;
17
16
  `,
18
17
  };
19
18
  });
@@ -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
 
@@ -20,11 +20,10 @@ const useStyles = createStyles(({ css, token }) => ({
20
20
 
21
21
  padding-block: 4px;
22
22
  padding-inline: 6px;
23
+ border-radius: 6px;
23
24
 
24
25
  font-size: 12px;
25
26
 
26
- border-radius: 6px;
27
-
28
27
  &:hover {
29
28
  background: ${token.colorFillTertiary};
30
29
  }
@@ -29,7 +29,6 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => {
29
29
  inset-block: 56px 50px;
30
30
 
31
31
  width: 32px;
32
-
33
32
  border-block-end: 2px solid ${borderColor};
34
33
  }
35
34
  `,
@@ -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};
@@ -51,9 +51,9 @@ const useStyles = createStyles(({ css, token }) => ({
51
51
 
52
52
  padding-block: 12px;
53
53
  padding-inline: 16px;
54
+ border-radius: 9999px;
54
55
 
55
56
  background: ${token.colorText};
56
- border-radius: 9999px;
57
57
  box-shadow: ${token.boxShadowSecondary};
58
58
  `,
59
59
  }));
@@ -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 {
@@ -25,7 +25,6 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
25
25
  margin-block: 2px;
26
26
  margin-inline: 8px;
27
27
  padding: 8px;
28
-
29
28
  border-radius: ${token.borderRadius}px;
30
29
 
31
30
  &.topic-item {
@@ -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 = useUserStore(modelProviderSelectors.isModelEnabledFunctionCall(model));
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>{portal}</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} {
@@ -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;
@@ -28,7 +28,6 @@ export const useStyles = createStyles(({ css, token }) => ({
28
28
 
29
29
  height: auto;
30
30
  padding-block: 4px;
31
-
32
31
  border-color: transparent;
33
32
 
34
33
  transition: all 0.3s ${token.motionEaseInOut};
@@ -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
  }
@@ -16,8 +16,8 @@ const useStyles = createStyles(({ css, token }) => ({
16
16
  kbd {
17
17
  margin-inline: 2px;
18
18
  padding-inline: 6px;
19
- background: ${token.colorFillTertiary};
20
19
  border-radius: 4px;
20
+ background: ${token.colorFillTertiary};
21
21
  }
22
22
  `,
23
23
  }));
@@ -20,7 +20,6 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
20
20
  margin-inline: 8px;
21
21
  padding-block: 4px;
22
22
  padding-inline: 8px;
23
-
24
23
  border-radius: ${token.borderRadius}px;
25
24
 
26
25
  &.${knowledgeItemClass} {