@lobehub/chat 1.43.6 → 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 (298) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/changelog/v1.json +9 -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/@session/features/SessionListContent/CollapseGroup/index.tsx +1 -1
  72. package/src/app/(main)/chat/features/Migration/Start.tsx +1 -1
  73. package/src/app/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/TopicList.tsx +4 -3
  74. package/src/app/(main)/discover/(detail)/assistant/[slug]/features/Header.tsx +1 -1
  75. package/src/app/(main)/discover/(detail)/features/ShareButton.tsx +2 -1
  76. package/src/app/(main)/discover/(detail)/model/[...slugs]/features/Header.tsx +1 -1
  77. package/src/app/(main)/discover/(detail)/plugin/[slug]/features/Header.tsx +1 -1
  78. package/src/app/(main)/discover/(detail)/provider/[slug]/features/Header.tsx +1 -1
  79. package/src/app/(main)/discover/(list)/_layout/Desktop/Nav.tsx +0 -1
  80. package/src/app/(main)/discover/(list)/assistants/features/Card.tsx +1 -1
  81. package/src/app/(main)/discover/(list)/models/features/Card.tsx +1 -1
  82. package/src/app/(main)/discover/(list)/plugins/features/Card.tsx +1 -1
  83. package/src/app/(main)/discover/(list)/providers/features/Card.tsx +1 -1
  84. package/src/app/(main)/discover/components/GridLoadingCard.tsx +2 -1
  85. package/src/app/(main)/discover/components/Title.tsx +1 -1
  86. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +1 -1
  87. package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/index.tsx +0 -1
  88. package/src/app/(main)/files/(content)/@modal/(.)[id]/FullscreenModal.tsx +2 -2
  89. package/src/app/(main)/files/(content)/NotSupportClient.tsx +2 -2
  90. package/src/app/(main)/profile/_layout/Desktop/SideBar.tsx +1 -1
  91. package/src/app/(main)/profile/stats/features/ShareButton/Preview.tsx +5 -5
  92. package/src/app/(main)/repos/[id]/evals/components/Container.tsx +1 -1
  93. package/src/app/(main)/repos/[id]/evals/dataset/DatasetList/Item.tsx +0 -1
  94. package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +1 -1
  95. package/src/app/(main)/settings/about/features/ItemCard.tsx +3 -3
  96. package/src/app/(main)/settings/about/features/Version.tsx +1 -1
  97. package/src/app/(main)/settings/hooks/useCategory.tsx +22 -9
  98. package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +2 -1
  99. package/src/app/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +0 -1
  100. package/src/app/(main)/settings/provider/(detail)/[id]/index.tsx +19 -0
  101. package/src/app/(main)/settings/provider/(detail)/[id]/page.tsx +95 -0
  102. package/src/app/(main)/settings/provider/(detail)/azure/page.tsx +119 -0
  103. package/src/app/(main)/settings/provider/(detail)/bedrock/page.tsx +91 -0
  104. package/src/app/(main)/settings/provider/(detail)/cloudflare/page.tsx +58 -0
  105. package/src/app/(main)/settings/provider/(detail)/github/page.tsx +67 -0
  106. package/src/app/(main)/settings/provider/(detail)/huggingface/page.tsx +67 -0
  107. package/src/app/(main)/settings/provider/(detail)/ollama/Checker.tsx +73 -0
  108. package/src/app/(main)/settings/provider/(detail)/ollama/page.tsx +34 -0
  109. package/src/app/(main)/settings/provider/(detail)/openai/page.tsx +23 -0
  110. package/src/app/(main)/settings/provider/(detail)/wenxin/page.tsx +61 -0
  111. package/src/app/(main)/settings/provider/(list)/Footer.tsx +36 -0
  112. package/src/app/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +134 -0
  113. package/src/app/(main)/settings/provider/(list)/ProviderGrid/index.tsx +91 -0
  114. package/src/app/(main)/settings/provider/(list)/index.tsx +19 -0
  115. package/src/app/(main)/settings/provider/ProviderMenu/AddNew.tsx +28 -0
  116. package/src/app/(main)/settings/provider/ProviderMenu/All.tsx +29 -0
  117. package/src/app/(main)/settings/provider/ProviderMenu/Item.tsx +69 -0
  118. package/src/app/(main)/settings/provider/ProviderMenu/List.tsx +76 -0
  119. package/src/app/(main)/settings/provider/ProviderMenu/SearchResult.tsx +43 -0
  120. package/src/app/(main)/settings/provider/ProviderMenu/SkeletonList.tsx +60 -0
  121. package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx +30 -0
  122. package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/index.tsx +91 -0
  123. package/src/app/(main)/settings/provider/ProviderMenu/index.tsx +80 -0
  124. package/src/app/(main)/settings/provider/_layout/Desktop.tsx +37 -0
  125. package/src/app/(main)/settings/provider/_layout/Mobile.tsx +14 -0
  126. package/src/app/(main)/settings/provider/const.ts +20 -0
  127. package/src/app/(main)/settings/provider/features/CreateNewProvider/index.tsx +146 -0
  128. package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/Form.tsx +105 -0
  129. package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/index.tsx +69 -0
  130. package/src/app/(main)/settings/provider/features/ModelList/DisabledModels.tsx +29 -0
  131. package/src/app/(main)/settings/provider/features/ModelList/EmptyModels.tsx +101 -0
  132. package/src/app/(main)/settings/provider/features/ModelList/EnabledModelList/index.tsx +85 -0
  133. package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/Form.tsx +109 -0
  134. package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/index.tsx +76 -0
  135. package/src/app/(main)/settings/provider/features/ModelList/ModelItem.tsx +346 -0
  136. package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/Search.tsx +37 -0
  137. package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +145 -0
  138. package/src/app/(main)/settings/provider/features/ModelList/SearchResult.tsx +67 -0
  139. package/src/app/(main)/settings/provider/features/ModelList/SkeletonList.tsx +63 -0
  140. package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/ListItem.tsx +20 -0
  141. package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/index.tsx +96 -0
  142. package/src/app/(main)/settings/provider/features/ModelList/index.tsx +59 -0
  143. package/src/app/(main)/settings/provider/features/ProviderConfig/Checker.tsx +120 -0
  144. package/src/app/(main)/settings/provider/features/ProviderConfig/SkeletonInput.tsx +5 -0
  145. package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +137 -0
  146. package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx +49 -0
  147. package/src/app/(main)/settings/provider/features/ProviderConfig/index.tsx +343 -0
  148. package/src/app/(main)/settings/provider/layout.tsx +21 -0
  149. package/src/app/(main)/settings/provider/page.tsx +17 -0
  150. package/src/app/(main)/settings/provider/type.ts +5 -0
  151. package/src/app/(main)/settings/sync/features/DeviceInfo/Card.tsx +1 -1
  152. package/src/app/(main)/settings/sync/features/DeviceInfo/index.tsx +1 -1
  153. package/src/app/@modal/(.)changelog/modal/features/ReadDetail.tsx +1 -1
  154. package/src/app/@modal/(.)changelog/modal/features/VersionTag.tsx +1 -2
  155. package/src/app/@modal/(.)changelog/modal/layout.tsx +1 -1
  156. package/src/components/Cell/index.tsx +1 -1
  157. package/src/components/DragUpload/index.tsx +2 -3
  158. package/src/components/FeatureList/index.tsx +1 -1
  159. package/src/components/FileParsingStatus/EmbeddingStatus.tsx +1 -1
  160. package/src/components/FileParsingStatus/index.tsx +1 -1
  161. package/src/components/FunctionModal/style.tsx +2 -2
  162. package/src/components/GoBack/index.tsx +1 -2
  163. package/src/components/HotKeys/index.tsx +1 -1
  164. package/src/components/InstantSwitch/index.tsx +28 -0
  165. package/src/components/Menu/index.tsx +1 -1
  166. package/src/components/ModelSelect/index.tsx +2 -3
  167. package/src/components/Notification/index.tsx +2 -1
  168. package/src/components/StatisticCard/index.tsx +5 -6
  169. package/src/config/aiModels/ai21.ts +38 -0
  170. package/src/config/aiModels/ai360.ts +71 -0
  171. package/src/config/aiModels/anthropic.ts +152 -0
  172. package/src/config/aiModels/azure.ts +86 -0
  173. package/src/config/aiModels/baichuan.ts +107 -0
  174. package/src/config/aiModels/bedrock.ts +315 -0
  175. package/src/config/aiModels/cloudflare.ts +88 -0
  176. package/src/config/aiModels/deepseek.ts +27 -0
  177. package/src/config/aiModels/fireworksai.ts +232 -0
  178. package/src/config/aiModels/giteeai.ts +137 -0
  179. package/src/config/aiModels/github.ts +273 -0
  180. package/src/config/aiModels/google.ts +317 -0
  181. package/src/config/aiModels/groq.ts +202 -0
  182. package/src/config/aiModels/higress.ts +2828 -0
  183. package/src/config/aiModels/huggingface.ts +56 -0
  184. package/src/config/aiModels/hunyuan.ts +151 -0
  185. package/src/config/aiModels/index.ts +98 -0
  186. package/src/config/aiModels/internlm.ts +40 -0
  187. package/src/config/aiModels/minimax.ts +55 -0
  188. package/src/config/aiModels/mistral.ts +172 -0
  189. package/src/config/aiModels/moonshot.ts +44 -0
  190. package/src/config/aiModels/novita.ts +124 -0
  191. package/src/config/aiModels/ollama.ts +412 -0
  192. package/src/config/aiModels/openai.ts +537 -0
  193. package/src/config/aiModels/openrouter.ts +252 -0
  194. package/src/config/aiModels/perplexity.ts +67 -0
  195. package/src/config/aiModels/qwen.ts +302 -0
  196. package/src/config/aiModels/sensenova.ts +114 -0
  197. package/src/config/aiModels/siliconcloud.ts +679 -0
  198. package/src/config/aiModels/spark.ts +68 -0
  199. package/src/config/aiModels/stepfun.ts +153 -0
  200. package/src/config/aiModels/taichu.ts +19 -0
  201. package/src/config/aiModels/togetherai.ts +334 -0
  202. package/src/config/aiModels/upstage.ts +37 -0
  203. package/src/config/aiModels/wenxin.ts +171 -0
  204. package/src/config/aiModels/xai.ts +72 -0
  205. package/src/config/aiModels/zeroone.ts +156 -0
  206. package/src/config/aiModels/zhipu.ts +235 -0
  207. package/src/config/featureFlags/schema.ts +3 -0
  208. package/src/config/modelProviders/anthropic.ts +1 -0
  209. package/src/config/modelProviders/github.ts +0 -1
  210. package/src/config/modelProviders/google.ts +1 -0
  211. package/src/config/modelProviders/stepfun.ts +2 -0
  212. package/src/database/migrations/0013_add_ai_infra.sql +44 -0
  213. package/src/database/migrations/meta/0013_snapshot.json +3598 -0
  214. package/src/database/migrations/meta/_journal.json +7 -0
  215. package/src/database/repositories/aiInfra/index.ts +115 -0
  216. package/src/database/schemas/aiInfra.ts +69 -0
  217. package/src/database/schemas/index.ts +1 -0
  218. package/src/database/server/models/__tests__/aiModel.test.ts +318 -0
  219. package/src/database/server/models/__tests__/aiProvider.test.ts +373 -0
  220. package/src/database/server/models/aiModel.ts +250 -0
  221. package/src/database/server/models/aiProvider.ts +234 -0
  222. package/src/features/AgentSetting/AgentPrompt/index.tsx +2 -2
  223. package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +2 -1
  224. package/src/features/ChatInput/ActionBar/Tools/index.tsx +2 -3
  225. package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +2 -3
  226. package/src/features/ChatInput/Desktop/FilePreview/FileItem/index.tsx +3 -2
  227. package/src/features/ChatInput/Desktop/FilePreview/FileList.tsx +2 -2
  228. package/src/features/ChatInput/Mobile/Files/FileItem/File.tsx +2 -2
  229. package/src/features/ChatInput/Mobile/InputArea/index.tsx +1 -1
  230. package/src/features/ChatInput/STT/common.tsx +1 -1
  231. package/src/features/Conversation/Error/style.tsx +2 -2
  232. package/src/features/Conversation/Messages/Assistant/FileChunks/Item/style.ts +2 -2
  233. package/src/features/Conversation/Messages/Assistant/FileChunks/index.tsx +1 -1
  234. package/src/features/Conversation/Messages/Assistant/ToolCallItem/Inspector/style.ts +2 -3
  235. package/src/features/Conversation/Messages/Assistant/ToolCallItem/style.ts +2 -3
  236. package/src/features/Conversation/Messages/User/FileListViewer/Item.tsx +0 -1
  237. package/src/features/Conversation/components/BackBottom/style.ts +2 -2
  238. package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/Icon.tsx +2 -3
  239. package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/index.tsx +3 -3
  240. package/src/features/Conversation/components/MarkdownElements/LobeThinking/Render.tsx +1 -1
  241. package/src/features/Conversation/components/OTPInput.tsx +2 -2
  242. package/src/features/DataImporter/Loading.tsx +1 -1
  243. package/src/features/FileManager/FileList/EmptyStatus.tsx +1 -1
  244. package/src/features/FileManager/FileList/index.tsx +1 -1
  245. package/src/features/FileManager/UploadDock/Item.tsx +1 -1
  246. package/src/features/FileManager/UploadDock/index.tsx +4 -4
  247. package/src/features/FileViewer/NotSupport/index.tsx +1 -1
  248. package/src/features/FileViewer/Renderer/MSDoc/index.tsx +0 -1
  249. package/src/features/FileViewer/Renderer/TXT/index.tsx +1 -1
  250. package/src/features/InitClientDB/EnableModal.tsx +1 -1
  251. package/src/features/InitClientDB/ErrorResult.tsx +1 -1
  252. package/src/features/InitClientDB/InitIndicator.tsx +1 -1
  253. package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +0 -1
  254. package/src/features/ModelSwitchPanel/index.tsx +2 -2
  255. package/src/features/PluginsUI/Render/Loading.tsx +0 -1
  256. package/src/features/Portal/Home/Body/Files/FileList/Item.tsx +1 -1
  257. package/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts +1 -2
  258. package/src/features/Setting/SettingContainer.tsx +8 -1
  259. package/src/features/ShareModal/ShareImage/style.ts +2 -2
  260. package/src/features/ShareModal/style.ts +2 -2
  261. package/src/features/User/DataStatistics.tsx +1 -1
  262. package/src/hooks/useEnabledChatModels.ts +10 -1
  263. package/src/hooks/useModelSupportToolUse.ts +15 -0
  264. package/src/hooks/useModelSupportVision.ts +15 -0
  265. package/src/layout/AuthProvider/Clerk/useAppearance.ts +3 -3
  266. package/src/layout/GlobalProvider/AppTheme.tsx +1 -1
  267. package/src/layout/GlobalProvider/StoreInitialization.tsx +5 -0
  268. package/src/locales/default/common.ts +1 -0
  269. package/src/locales/default/modelProvider.ts +178 -0
  270. package/src/locales/default/setting.ts +1 -0
  271. package/src/server/modules/KeyVaultsEncrypt/index.ts +1 -1
  272. package/src/server/routers/lambda/aiModel.ts +128 -0
  273. package/src/server/routers/lambda/aiProvider.ts +127 -0
  274. package/src/server/routers/lambda/index.ts +4 -0
  275. package/src/services/__tests__/_auth.test.ts +16 -49
  276. package/src/services/__tests__/chat.test.ts +2 -0
  277. package/src/services/_auth.ts +42 -25
  278. package/src/services/aiModel.ts +52 -0
  279. package/src/services/aiProvider.ts +47 -0
  280. package/src/services/chat.ts +62 -18
  281. package/src/store/aiInfra/index.ts +2 -0
  282. package/src/store/aiInfra/initialState.ts +11 -0
  283. package/src/store/aiInfra/selectors.ts +2 -0
  284. package/src/store/aiInfra/slices/aiModel/action.ts +146 -0
  285. package/src/store/aiInfra/slices/aiModel/index.ts +3 -0
  286. package/src/store/aiInfra/slices/aiModel/initialState.ts +14 -0
  287. package/src/store/aiInfra/slices/aiModel/selectors.ts +63 -0
  288. package/src/store/aiInfra/slices/aiProvider/action.ts +208 -0
  289. package/src/store/aiInfra/slices/aiProvider/index.ts +3 -0
  290. package/src/store/aiInfra/slices/aiProvider/initialState.ts +32 -0
  291. package/src/store/aiInfra/slices/aiProvider/selectors.ts +99 -0
  292. package/src/store/aiInfra/store.ts +25 -0
  293. package/src/store/global/initialState.ts +1 -0
  294. package/src/store/serverConfig/selectors.test.ts +1 -0
  295. package/src/styles/global.ts +1 -1
  296. package/src/types/aiModel.ts +32 -6
  297. package/src/types/aiProvider.ts +11 -4
  298. package/src/utils/fetch/fetchSSE.ts +3 -1
@@ -16,16 +16,16 @@ const useStyles = createStyles(
16
16
  border-radius: ${token.borderRadiusLG}px;
17
17
 
18
18
  ${responsive.mobile} {
19
- background: ${token.colorBgContainer};
20
19
  border: none;
21
20
  border-radius: 0;
21
+ background: ${token.colorBgContainer};
22
22
  }
23
23
  `,
24
24
  container: css`
25
25
  ${responsive.mobile} {
26
- background: ${token.colorBgContainer};
27
26
  border: none;
28
27
  border-radius: 0;
28
+ background: ${token.colorBgContainer};
29
29
  }
30
30
 
31
31
  .${prefixCls}-pro-card-title {
@@ -56,7 +56,6 @@ const useStyles = createStyles(
56
56
 
57
57
  margin: 0;
58
58
  padding: 0;
59
-
60
59
  border-end-start-radius: ${token.borderRadiusLG}px;
61
60
  border-end-end-radius: ${token.borderRadiusLG}px;
62
61
  }
@@ -132,6 +131,7 @@ const useStyles = createStyles(
132
131
 
133
132
  width: 66%;
134
133
  height: 50%;
134
+ border-radius: 50%;
135
135
 
136
136
  opacity: ${isDarkMode ? 1 : 0.33};
137
137
  background-image: linear-gradient(
@@ -143,7 +143,6 @@ const useStyles = createStyles(
143
143
  background-position: center left;
144
144
  background-size: contain;
145
145
  filter: blur(32px);
146
- border-radius: 50%;
147
146
  }
148
147
 
149
148
  > div {
@@ -151,12 +150,12 @@ const useStyles = createStyles(
151
150
  }
152
151
  `,
153
152
  icon: css`
154
- background: ${token.colorFillSecondary};
155
153
  border-radius: ${token.borderRadius}px;
154
+ background: ${token.colorFillSecondary};
156
155
  `,
157
156
  pure: css`
158
- background: transparent !important;
159
157
  border: none !important;
158
+ background: transparent !important;
160
159
  `,
161
160
  }),
162
161
  );
@@ -0,0 +1,38 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const ai21ChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ contextWindowTokens: 256_000,
9
+ displayName: 'Jamba 1.5 Mini',
10
+ enabled: true,
11
+ id: 'jamba-1.5-mini',
12
+ pricing: {
13
+ input: 0.2,
14
+ output: 0.4,
15
+ },
16
+ releasedAt: '2024-08-22',
17
+ type: 'chat',
18
+ },
19
+ {
20
+ abilities: {
21
+ functionCall: true,
22
+ },
23
+ contextWindowTokens: 256_000,
24
+ displayName: 'Jamba 1.5 Large',
25
+ enabled: true,
26
+ id: 'jamba-1.5-large',
27
+ pricing: {
28
+ input: 2,
29
+ output: 8,
30
+ },
31
+ releasedAt: '2024-08-22',
32
+ type: 'chat',
33
+ },
34
+ ];
35
+
36
+ export const allModels = [...ai21ChatModels];
37
+
38
+ export default allModels;
@@ -0,0 +1,71 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const ai360ChatModels: AIChatModelCard[] = [
4
+ {
5
+ contextWindowTokens: 8192,
6
+ description:
7
+ '360GPT2 Pro 是 360 公司推出的高级自然语言处理模型,具备卓越的文本生成和理解能力,尤其在生成与创作领域表现出色,能够处理复杂的语言转换和角色演绎任务。',
8
+ displayName: '360GPT2 Pro',
9
+ enabled: true,
10
+ id: '360gpt2-pro',
11
+ maxOutput: 7000,
12
+ pricing: {
13
+ currency: 'CNY',
14
+ input: 5,
15
+ output: 5,
16
+ },
17
+ type: 'chat',
18
+ },
19
+ {
20
+ abilities: {
21
+ functionCall: true,
22
+ },
23
+ contextWindowTokens: 8192,
24
+ description:
25
+ '360GPT Pro 作为 360 AI 模型系列的重要成员,以高效的文本处理能力满足多样化的自然语言应用场景,支持长文本理解和多轮对话等功能。',
26
+ displayName: '360GPT Pro',
27
+ enabled: true,
28
+ id: '360gpt-pro',
29
+ maxOutput: 7000,
30
+ pricing: {
31
+ currency: 'CNY',
32
+ input: 5,
33
+ output: 5,
34
+ },
35
+ type: 'chat',
36
+ },
37
+ {
38
+ contextWindowTokens: 8192,
39
+ description:
40
+ '360GPT Turbo 提供强大的计算和对话能力,具备出色的语义理解和生成效率,是企业和开发者理想的智能助理解决方案。',
41
+ displayName: '360GPT Turbo',
42
+ enabled: true,
43
+ id: '360gpt-turbo',
44
+ maxOutput: 7000,
45
+ pricing: {
46
+ currency: 'CNY',
47
+ input: 2,
48
+ output: 2,
49
+ },
50
+ type: 'chat',
51
+ },
52
+ {
53
+ contextWindowTokens: 8192,
54
+ description:
55
+ '360GPT Turbo Responsibility 8K 强调语义安全和责任导向,专为对内容安全有高度要求的应用场景设计,确保用户体验的准确性与稳健性。',
56
+ displayName: '360GPT Turbo Responsibility 8K',
57
+ enabled: true,
58
+ id: '360gpt-turbo-responsibility-8k',
59
+ maxOutput: 2048,
60
+ pricing: {
61
+ currency: 'CNY',
62
+ input: 2,
63
+ output: 2,
64
+ },
65
+ type: 'chat',
66
+ },
67
+ ];
68
+
69
+ export const allModels = [...ai360ChatModels];
70
+
71
+ export default allModels;
@@ -0,0 +1,152 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const anthropicChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ contextWindowTokens: 200_000,
9
+ description:
10
+ 'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
11
+ displayName: 'Claude 3.5 Haiku',
12
+ enabled: true,
13
+ id: 'claude-3-5-haiku-20241022',
14
+ maxOutput: 8192,
15
+ pricing: {
16
+ cachedInput: 0.1,
17
+ input: 1,
18
+ output: 5,
19
+ writeCacheInput: 1.25,
20
+ },
21
+ releasedAt: '2024-11-05',
22
+ type: 'chat',
23
+ },
24
+ {
25
+ abilities: {
26
+ functionCall: true,
27
+ vision: true,
28
+ },
29
+ contextWindowTokens: 200_000,
30
+ description:
31
+ 'Claude 3.5 Sonnet 提供了超越 Opus 的能力和比 Sonnet 更快的速度,同时保持与 Sonnet 相同的价格。Sonnet 特别擅长编程、数据科学、视觉处理、代理任务。',
32
+ displayName: 'Claude 3.5 Sonnet',
33
+ enabled: true,
34
+ id: 'claude-3-5-sonnet-20241022',
35
+ maxOutput: 8192,
36
+ pricing: {
37
+ cachedInput: 0.3,
38
+ input: 3,
39
+ output: 15,
40
+ writeCacheInput: 3.75,
41
+ },
42
+ releasedAt: '2024-10-22',
43
+ type: 'chat',
44
+ },
45
+ {
46
+ abilities: {
47
+ functionCall: true,
48
+ vision: true,
49
+ },
50
+ contextWindowTokens: 200_000,
51
+ description:
52
+ 'Claude 3.5 Sonnet 提供了超越 Opus 的能力和比 Sonnet 更快的速度,同时保持与 Sonnet 相同的价格。Sonnet 特别擅长编程、数据科学、视觉处理、代理任务。',
53
+ displayName: 'Claude 3.5 Sonnet 0620',
54
+ id: 'claude-3-5-sonnet-20240620',
55
+ maxOutput: 8192,
56
+ pricing: {
57
+ cachedInput: 0.3,
58
+ input: 3,
59
+ output: 15,
60
+ writeCacheInput: 3.75,
61
+ },
62
+ releasedAt: '2024-06-20',
63
+ type: 'chat',
64
+ },
65
+ {
66
+ abilities: {
67
+ functionCall: true,
68
+ vision: true,
69
+ },
70
+ contextWindowTokens: 200_000,
71
+ description:
72
+ 'Claude 3 Haiku 是 Anthropic 的最快且最紧凑的模型,旨在实现近乎即时的响应。它具有快速且准确的定向性能。',
73
+ displayName: 'Claude 3 Haiku',
74
+ id: 'claude-3-haiku-20240307',
75
+ maxOutput: 4096,
76
+ pricing: {
77
+ input: 0.25,
78
+ output: 1.25,
79
+ },
80
+ releasedAt: '2024-03-07',
81
+ type: 'chat',
82
+ },
83
+ {
84
+ abilities: {
85
+ functionCall: true,
86
+ vision: true,
87
+ },
88
+ contextWindowTokens: 200_000,
89
+ description:
90
+ 'Claude 3 Sonnet 在智能和速度方面为企业工作负载提供了理想的平衡。它以更低的价格提供最大效用,可靠且适合大规模部署。',
91
+ displayName: 'Claude 3 Sonnet',
92
+ id: 'claude-3-sonnet-20240229',
93
+ maxOutput: 4096,
94
+ pricing: {
95
+ input: 3,
96
+ output: 15,
97
+ },
98
+ releasedAt: '2024-02-29',
99
+ type: 'chat',
100
+ },
101
+ {
102
+ abilities: {
103
+ functionCall: true,
104
+ vision: true,
105
+ },
106
+ contextWindowTokens: 200_000,
107
+ description:
108
+ 'Claude 3 Opus 是 Anthropic 用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
109
+ displayName: 'Claude 3 Opus',
110
+ enabled: true,
111
+ id: 'claude-3-opus-20240229',
112
+ maxOutput: 4096,
113
+ pricing: {
114
+ input: 15,
115
+ output: 75,
116
+ },
117
+ releasedAt: '2024-02-29',
118
+ type: 'chat',
119
+ },
120
+ {
121
+ contextWindowTokens: 200_000,
122
+ description:
123
+ 'Claude 2 为企业提供了关键能力的进步,包括业界领先的 200K token 上下文、大幅降低模型幻觉的发生率、系统提示以及一个新的测试功能:工具调用。',
124
+ displayName: 'Claude 2.1',
125
+ id: 'claude-2.1',
126
+ maxOutput: 4096,
127
+ pricing: {
128
+ input: 8,
129
+ output: 24,
130
+ },
131
+ releasedAt: '2023-11-21',
132
+ type: 'chat',
133
+ },
134
+ {
135
+ contextWindowTokens: 100_000,
136
+ description:
137
+ 'Claude 2 为企业提供了关键能力的进步,包括业界领先的 200K token 上下文、大幅降低模型幻觉的发生率、系统提示以及一个新的测试功能:工具调用。',
138
+ displayName: 'Claude 2.0',
139
+ id: 'claude-2.0',
140
+ maxOutput: 4096,
141
+ pricing: {
142
+ input: 8,
143
+ output: 24,
144
+ },
145
+ releasedAt: '2023-07-11',
146
+ type: 'chat',
147
+ },
148
+ ];
149
+
150
+ export const allModels = [...anthropicChatModels];
151
+
152
+ export default allModels;
@@ -0,0 +1,86 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const azureChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ config: {
9
+ deploymentName: 'gpt-35-turbo',
10
+ },
11
+ contextWindowTokens: 16_385,
12
+ description:
13
+ 'GPT 3.5 Turbo,OpenAI提供的高效模型,适用于聊天和文本生成任务,支持并行函数调用。',
14
+ displayName: 'GPT 3.5 Turbo',
15
+ enabled: true,
16
+ id: 'gpt-3.5-turbo',
17
+ maxOutput: 4096,
18
+ type: 'chat',
19
+ },
20
+ {
21
+ abilities: {
22
+ functionCall: true,
23
+ },
24
+ config: {
25
+ deploymentName: 'gpt-35-turbo-16k',
26
+ },
27
+ contextWindowTokens: 16_384,
28
+ description: 'GPT 3.5 Turbo 16k,高容量文本生成模型,适合复杂任务。',
29
+ displayName: 'GPT 3.5 Turbo',
30
+ id: 'gpt-3.5-turbo-16k',
31
+ maxOutput: 4096,
32
+ type: 'chat',
33
+ },
34
+ {
35
+ abilities: {
36
+ functionCall: true,
37
+ vision: true,
38
+ },
39
+ config: {
40
+ deploymentName: 'gpt-4-turbo',
41
+ },
42
+ contextWindowTokens: 128_000,
43
+ description: 'GPT 4 Turbo,多模态模型,提供杰出的语言理解和生成能力,同时支持图像输入。',
44
+ displayName: 'GPT 4 Turbo',
45
+ enabled: true,
46
+ id: 'gpt-4',
47
+ maxOutput: 4096,
48
+ type: 'chat',
49
+ },
50
+ {
51
+ abilities: {
52
+ functionCall: true,
53
+ vision: true,
54
+ },
55
+ config: {
56
+ deploymentName: 'gpt-4o-mini',
57
+ },
58
+ contextWindowTokens: 128_000,
59
+ description: 'GPT-4o Mini,小型高效模型,具备与GPT-4o相似的卓越性能。',
60
+ displayName: 'GPT 4o Mini',
61
+ enabled: true,
62
+ id: 'gpt-4o-mini',
63
+ maxOutput: 4096,
64
+ type: 'chat',
65
+ },
66
+ {
67
+ abilities: {
68
+ functionCall: true,
69
+ vision: true,
70
+ },
71
+ config: {
72
+ deploymentName: 'gpt-4o',
73
+ },
74
+ contextWindowTokens: 128_000,
75
+ description: 'GPT-4o 是最新的多模态模型,结合高级文本和图像处理能力。',
76
+ displayName: 'GPT 4o',
77
+ enabled: true,
78
+ id: 'gpt-4o',
79
+ maxOutput: 4096,
80
+ type: 'chat',
81
+ },
82
+ ];
83
+
84
+ export const allModels = [...azureChatModels];
85
+
86
+ export default allModels;
@@ -0,0 +1,107 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const baichuanChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ contextWindowTokens: 32_768,
9
+ description:
10
+ '模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
11
+ displayName: 'Baichuan 4',
12
+ enabled: true,
13
+ id: 'Baichuan4',
14
+ maxOutput: 4096,
15
+ pricing: {
16
+ currency: 'CNY',
17
+ input: 100,
18
+ output: 100,
19
+ },
20
+ type: 'chat',
21
+ },
22
+ {
23
+ abilities: {
24
+ functionCall: true,
25
+ },
26
+ contextWindowTokens: 32_768,
27
+ description:
28
+ '模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
29
+ displayName: 'Baichuan 4 Turbo',
30
+ enabled: true,
31
+ id: 'Baichuan4-Turbo',
32
+ maxOutput: 4096,
33
+ pricing: {
34
+ currency: 'CNY',
35
+ input: 15,
36
+ output: 15,
37
+ },
38
+ type: 'chat',
39
+ },
40
+ {
41
+ abilities: {
42
+ functionCall: true,
43
+ },
44
+ contextWindowTokens: 32_768,
45
+ description:
46
+ '模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
47
+ displayName: 'Baichuan 4 Air',
48
+ enabled: true,
49
+ id: 'Baichuan4-Air',
50
+ maxOutput: 4096,
51
+ pricing: {
52
+ currency: 'CNY',
53
+ input: 0.98,
54
+ output: 0.98,
55
+ },
56
+ type: 'chat',
57
+ },
58
+ {
59
+ abilities: {
60
+ functionCall: true,
61
+ },
62
+ contextWindowTokens: 32_768,
63
+ description:
64
+ '针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
65
+ displayName: 'Baichuan 3 Turbo',
66
+ id: 'Baichuan3-Turbo',
67
+ maxOutput: 8192,
68
+ pricing: {
69
+ currency: 'CNY',
70
+ input: 12,
71
+ output: 12,
72
+ },
73
+ type: 'chat',
74
+ },
75
+ {
76
+ contextWindowTokens: 128_000,
77
+ description:
78
+ '具备 128K 超长上下文窗口,针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
79
+ displayName: 'Baichuan 3 Turbo 128k',
80
+ id: 'Baichuan3-Turbo-128k',
81
+ maxOutput: 4096,
82
+ pricing: {
83
+ currency: 'CNY',
84
+ input: 24,
85
+ output: 24,
86
+ },
87
+ type: 'chat',
88
+ },
89
+ {
90
+ contextWindowTokens: 32_768,
91
+ description:
92
+ '采用搜索增强技术实现大模型与领域知识、全网知识的全面链接。支持PDF、Word等多种文档上传及网址输入,信息获取及时、全面,输出结果准确、专业。',
93
+ displayName: 'Baichuan 2 Turbo',
94
+ id: 'Baichuan2-Turbo',
95
+ maxOutput: 8192,
96
+ pricing: {
97
+ currency: 'CNY',
98
+ input: 8,
99
+ output: 8,
100
+ },
101
+ type: 'chat',
102
+ },
103
+ ];
104
+
105
+ export const allModels = [...baichuanChatModels];
106
+
107
+ export default allModels;