@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
@@ -0,0 +1,317 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const googleChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ vision: true,
8
+ },
9
+ contextWindowTokens: 40_959,
10
+ description:
11
+ 'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
12
+ displayName: 'Gemini 2.0 Flash Thinking Experimental 1219',
13
+ enabled: true,
14
+ id: 'gemini-2.0-flash-thinking-exp-1219',
15
+ maxOutput: 8192,
16
+ pricing: {
17
+ cachedInput: 0,
18
+ input: 0,
19
+ output: 0,
20
+ },
21
+ releasedAt: '2024-12-19',
22
+ type: 'chat',
23
+ },
24
+ {
25
+ abilities: {
26
+ functionCall: true,
27
+ vision: true,
28
+ },
29
+ contextWindowTokens: 1_056_768,
30
+ description:
31
+ 'Gemini 2.0 Flash Exp 是 Google 最新的实验性多模态AI模型,拥有下一代特性,卓越的速度,原生工具调用以及多模态生成。',
32
+ displayName: 'Gemini 2.0 Flash Experimental',
33
+ enabled: true,
34
+ id: 'gemini-2.0-flash-exp',
35
+ maxOutput: 8192,
36
+ pricing: {
37
+ cachedInput: 0,
38
+ input: 0,
39
+ output: 0,
40
+ },
41
+ releasedAt: '2024-12-11',
42
+ type: 'chat',
43
+ },
44
+ {
45
+ abilities: {
46
+ functionCall: true,
47
+ vision: true,
48
+ },
49
+ contextWindowTokens: 2_105_344,
50
+ description:
51
+ 'Gemini Exp 1206 是 Google 最新的实验性多模态AI模型,与历史版本相比有一定的质量提升。',
52
+ displayName: 'Gemini Experimental 1206',
53
+ enabled: true,
54
+ id: 'gemini-exp-1206',
55
+ maxOutput: 8192,
56
+ pricing: {
57
+ cachedInput: 0,
58
+ input: 0,
59
+ output: 0,
60
+ },
61
+ releasedAt: '2024-12-06',
62
+ type: 'chat',
63
+ },
64
+ {
65
+ abilities: {
66
+ functionCall: true,
67
+ vision: true,
68
+ },
69
+ contextWindowTokens: 40_959,
70
+ description: 'Gemini Exp 1121 是 Google 的实验性多模态AI模型,拥有改进的编码、推理和视觉能力。',
71
+ displayName: 'Gemini Experimental 1121',
72
+ id: 'gemini-exp-1121',
73
+ maxOutput: 8192,
74
+ pricing: {
75
+ cachedInput: 0,
76
+ input: 0,
77
+ output: 0,
78
+ },
79
+ releasedAt: '2024-11-21',
80
+ type: 'chat',
81
+ },
82
+ {
83
+ abilities: {
84
+ functionCall: true,
85
+ vision: true,
86
+ },
87
+ contextWindowTokens: 40_959,
88
+ description: 'Gemini Exp 1114 是 Google 的实验性多模态AI模型,对输出质量有一定改进。',
89
+ displayName: 'Gemini Experimental 1114',
90
+ id: 'gemini-exp-1114',
91
+ maxOutput: 8192,
92
+ pricing: {
93
+ cachedInput: 0,
94
+ input: 0,
95
+ output: 0,
96
+ },
97
+ releasedAt: '2024-11-14',
98
+ type: 'chat',
99
+ },
100
+ {
101
+ abilities: {
102
+ functionCall: true,
103
+ vision: true,
104
+ },
105
+ contextWindowTokens: 40_959,
106
+ description:
107
+ 'LearnLM 是一个实验性的、特定于任务的语言模型,经过训练以符合学习科学原则,可在教学和学习场景中遵循系统指令,充当专家导师等。',
108
+ displayName: 'LearnLM 1.5 Pro Experimental',
109
+ id: 'learnlm-1.5-pro-experimental',
110
+ maxOutput: 8192,
111
+ pricing: {
112
+ cachedInput: 0,
113
+ input: 0,
114
+ output: 0,
115
+ },
116
+ releasedAt: '2024-11-19',
117
+ type: 'chat',
118
+ },
119
+ {
120
+ abilities: {
121
+ functionCall: true,
122
+ vision: true,
123
+ },
124
+ contextWindowTokens: 1_008_192,
125
+ description:
126
+ 'Gemini 1.5 Flash 是 Google 最新的多模态AI模型,具备快速处理能力,支持文本、图像和视频输入,适用于多种任务的高效扩展。',
127
+ displayName: 'Gemini 1.5 Flash',
128
+ enabled: true,
129
+ id: 'gemini-1.5-flash-latest',
130
+ maxOutput: 8192,
131
+ pricing: {
132
+ cachedInput: 0.018_75,
133
+ input: 0.075,
134
+ output: 0.3,
135
+ },
136
+ type: 'chat',
137
+ },
138
+ {
139
+ abilities: {
140
+ functionCall: true,
141
+ vision: true,
142
+ },
143
+ contextWindowTokens: 1_008_192,
144
+ description: 'Gemini 1.5 Flash 002 是一款高效的多模态模型,支持广泛应用的扩展。',
145
+ displayName: 'Gemini 1.5 Flash 002',
146
+ enabled: true,
147
+ id: 'gemini-1.5-flash-002',
148
+ maxOutput: 8192,
149
+ pricing: {
150
+ cachedInput: 0.018_75,
151
+ input: 0.075,
152
+ output: 0.3,
153
+ },
154
+ releasedAt: '2024-09-25',
155
+ type: 'chat',
156
+ },
157
+ {
158
+ abilities: {
159
+ functionCall: true,
160
+ vision: true,
161
+ },
162
+ contextWindowTokens: 1_008_192,
163
+ description: 'Gemini 1.5 Flash 001 是一款高效的多模态模型,支持广泛应用的扩展。',
164
+ displayName: 'Gemini 1.5 Flash 001',
165
+ id: 'gemini-1.5-flash-001',
166
+ maxOutput: 8192,
167
+ pricing: {
168
+ cachedInput: 0.018_75,
169
+ input: 0.075,
170
+ output: 0.3,
171
+ },
172
+ type: 'chat',
173
+ },
174
+ {
175
+ abilities: {
176
+ functionCall: true,
177
+ vision: true,
178
+ },
179
+ contextWindowTokens: 2_008_192,
180
+ description:
181
+ 'Gemini 1.5 Pro 支持高达200万个tokens,是中型多模态模型的理想选择,适用于复杂任务的多方面支持。',
182
+ displayName: 'Gemini 1.5 Pro',
183
+ enabled: true,
184
+ id: 'gemini-1.5-pro-latest',
185
+ maxOutput: 8192,
186
+ pricing: {
187
+ cachedInput: 0.875,
188
+ input: 3.5,
189
+ output: 10.5,
190
+ },
191
+ releasedAt: '2024-02-15',
192
+ type: 'chat',
193
+ },
194
+ {
195
+ abilities: {
196
+ functionCall: true,
197
+ vision: true,
198
+ },
199
+ contextWindowTokens: 2_008_192,
200
+ description:
201
+ 'Gemini 1.5 Pro 002 是最新的生产就绪模型,提供更高质量的输出,特别在数学、长上下文和视觉任务方面有显著提升。',
202
+ displayName: 'Gemini 1.5 Pro 002',
203
+ enabled: true,
204
+ id: 'gemini-1.5-pro-002',
205
+ maxOutput: 8192,
206
+ pricing: {
207
+ cachedInput: 0.315,
208
+ input: 1.25,
209
+ output: 2.5,
210
+ },
211
+ releasedAt: '2024-09-24',
212
+ type: 'chat',
213
+ },
214
+ {
215
+ abilities: {
216
+ functionCall: true,
217
+ vision: true,
218
+ },
219
+ contextWindowTokens: 2_008_192,
220
+ description: 'Gemini 1.5 Pro 001 是可扩展的多模态AI解决方案,支持广泛的复杂任务。',
221
+ displayName: 'Gemini 1.5 Pro 001',
222
+ id: 'gemini-1.5-pro-001',
223
+ maxOutput: 8192,
224
+ pricing: {
225
+ cachedInput: 0.875,
226
+ input: 3.5,
227
+ output: 10.5,
228
+ },
229
+ releasedAt: '2024-02-15',
230
+ type: 'chat',
231
+ },
232
+ {
233
+ abilities: {
234
+ functionCall: true,
235
+ vision: true,
236
+ },
237
+ contextWindowTokens: 1_008_192,
238
+ description: 'Gemini 1.5 Flash 8B 是一款高效的多模态模型,支持广泛应用的扩展。',
239
+ displayName: 'Gemini 1.5 Flash 8B',
240
+ enabled: true,
241
+ id: 'gemini-1.5-flash-8b',
242
+ maxOutput: 8192,
243
+ pricing: {
244
+ cachedInput: 0.02,
245
+ input: 0.075,
246
+ output: 0.3,
247
+ },
248
+ releasedAt: '2024-10-03',
249
+ type: 'chat',
250
+ },
251
+ {
252
+ abilities: {
253
+ functionCall: true,
254
+ vision: true,
255
+ },
256
+ contextWindowTokens: 1_008_192,
257
+ description:
258
+ 'Gemini 1.5 Flash 8B 0924 是最新的实验性模型,在文本和多模态用例中都有显著的性能提升。',
259
+ displayName: 'Gemini 1.5 Flash 8B 0924',
260
+ id: 'gemini-1.5-flash-8b-exp-0924',
261
+ maxOutput: 8192,
262
+ pricing: {
263
+ cachedInput: 0.018_75,
264
+ input: 0.075,
265
+ output: 0.3,
266
+ },
267
+ releasedAt: '2024-09-24',
268
+ type: 'chat',
269
+ },
270
+ {
271
+ contextWindowTokens: 32_768,
272
+ description: 'Gemini 1.0 Pro 是Google的高性能AI模型,专为广泛任务扩展而设计。',
273
+ displayName: 'Gemini 1.0 Pro',
274
+ id: 'gemini-1.0-pro-latest',
275
+ maxOutput: 2048,
276
+ pricing: {
277
+ input: 0.5,
278
+ output: 1.5,
279
+ },
280
+ releasedAt: '2023-12-06',
281
+ type: 'chat',
282
+ },
283
+ {
284
+ abilities: {
285
+ functionCall: true,
286
+ },
287
+ contextWindowTokens: 32_768,
288
+ description:
289
+ 'Gemini 1.0 Pro 001 (Tuning) 提供稳定并可调优的性能,是复杂任务解决方案的理想选择。',
290
+ displayName: 'Gemini 1.0 Pro 001 (Tuning)',
291
+ id: 'gemini-1.0-pro-001',
292
+ maxOutput: 2048,
293
+ pricing: {
294
+ input: 0.5,
295
+ output: 1.5,
296
+ },
297
+ releasedAt: '2023-12-06',
298
+ type: 'chat',
299
+ },
300
+ {
301
+ contextWindowTokens: 32_768,
302
+ description: 'Gemini 1.0 Pro 002 (Tuning) 提供出色的多模态支持,专注于复杂任务的有效解决。',
303
+ displayName: 'Gemini 1.0 Pro 002 (Tuning)',
304
+ id: 'gemini-1.0-pro-002',
305
+ maxOutput: 2048,
306
+ pricing: {
307
+ input: 0.5,
308
+ output: 1.5,
309
+ },
310
+ releasedAt: '2023-12-06',
311
+ type: 'chat',
312
+ },
313
+ ];
314
+
315
+ export const allModels = [...googleChatModels];
316
+
317
+ export default allModels;
@@ -0,0 +1,202 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const groqChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ contextWindowTokens: 131_072,
9
+ description:
10
+ 'Meta Llama 3.3 多语言大语言模型 ( LLM ) 是 70B(文本输入/文本输出)中的预训练和指令调整生成模型。 Llama 3.3 指令调整的纯文本模型针对多语言对话用例进行了优化,并且在常见行业基准上优于许多可用的开源和封闭式聊天模型。',
11
+ displayName: 'Llama 3.3 70B',
12
+ enabled: true,
13
+ id: 'llama-3.3-70b-versatile',
14
+ maxOutput: 8192,
15
+ pricing: {
16
+ input: 0.05,
17
+ output: 0.08,
18
+ },
19
+ type: 'chat',
20
+ },
21
+ {
22
+ abilities: {
23
+ vision: true,
24
+ },
25
+ contextWindowTokens: 8192,
26
+ description:
27
+ 'Llama 3.2 旨在处理结合视觉和文本数据的任务。它在图像描述和视觉问答等任务中表现出色,跨越了语言生成和视觉推理之间的鸿沟。',
28
+ displayName: 'Llama 3.2 11B Vision (Preview)',
29
+ enabled: true,
30
+ id: 'llama-3.2-11b-vision-preview',
31
+ maxOutput: 8192,
32
+ pricing: {
33
+ input: 0.05,
34
+ output: 0.08,
35
+ },
36
+ type: 'chat',
37
+ },
38
+ {
39
+ abilities: {
40
+ vision: true,
41
+ },
42
+ contextWindowTokens: 8192,
43
+ description:
44
+ 'Llama 3.2 旨在处理结合视觉和文本数据的任务。它在图像描述和视觉问答等任务中表现出色,跨越了语言生成和视觉推理之间的鸿沟。',
45
+ displayName: 'Llama 3.2 90B Vision (Preview)',
46
+ enabled: true,
47
+ id: 'llama-3.2-90b-vision-preview',
48
+ maxOutput: 8192,
49
+ pricing: {
50
+ input: 0.59,
51
+ output: 0.79,
52
+ },
53
+ type: 'chat',
54
+ },
55
+ {
56
+ abilities: {
57
+ functionCall: true,
58
+ },
59
+ contextWindowTokens: 131_072,
60
+ description:
61
+ 'Llama 3.1 8B 是一款高效能模型,提供了快速的文本生成能力,非常适合需要大规模效率和成本效益的应用场景。',
62
+ displayName: 'Llama 3.1 8B',
63
+ enabled: true,
64
+ id: 'llama-3.1-8b-instant',
65
+ maxOutput: 8192,
66
+ pricing: {
67
+ input: 0.05,
68
+ output: 0.08,
69
+ },
70
+ type: 'chat',
71
+ },
72
+ {
73
+ abilities: {
74
+ functionCall: true,
75
+ },
76
+ contextWindowTokens: 131_072,
77
+ description:
78
+ 'Llama 3.1 70B 提供更强大的AI推理能力,适合复杂应用,支持超多的计算处理并保证高效和准确率。',
79
+ displayName: 'Llama 3.1 70B',
80
+ enabled: true,
81
+ id: 'llama-3.1-70b-versatile',
82
+ maxOutput: 8192,
83
+ pricing: {
84
+ input: 0.59,
85
+ output: 0.79,
86
+ },
87
+ type: 'chat',
88
+ },
89
+ {
90
+ abilities: {
91
+ functionCall: true,
92
+ },
93
+ contextWindowTokens: 8192,
94
+ description: 'Llama 3 Groq 8B Tool Use 是针对高效工具使用优化的模型,支持快速并行计算。',
95
+ displayName: 'Llama 3 Groq 8B Tool Use (Preview)',
96
+ id: 'llama3-groq-8b-8192-tool-use-preview',
97
+ pricing: {
98
+ input: 0.19,
99
+ output: 0.19,
100
+ },
101
+ type: 'chat',
102
+ },
103
+ {
104
+ abilities: {
105
+ functionCall: true,
106
+ },
107
+ contextWindowTokens: 8192,
108
+ description: 'Llama 3 Groq 70B Tool Use 提供强大的工具调用能力,支持复杂任务的高效处理。',
109
+ displayName: 'Llama 3 Groq 70B Tool Use (Preview)',
110
+ id: 'llama3-groq-70b-8192-tool-use-preview',
111
+ pricing: {
112
+ input: 0.89,
113
+ output: 0.89,
114
+ },
115
+ type: 'chat',
116
+ },
117
+ {
118
+ abilities: {
119
+ functionCall: true,
120
+ },
121
+ contextWindowTokens: 8192,
122
+ description: 'Meta Llama 3 8B 带来优质的推理效能,适合多场景应用需求。',
123
+ displayName: 'Meta Llama 3 8B',
124
+ id: 'llama3-8b-8192',
125
+ pricing: {
126
+ input: 0.05,
127
+ output: 0.08,
128
+ },
129
+ type: 'chat',
130
+ },
131
+ {
132
+ abilities: {
133
+ functionCall: true,
134
+ },
135
+ contextWindowTokens: 8192,
136
+ description: 'Meta Llama 3 70B 提供无与伦比的复杂性处理能力,为高要求项目量身定制。',
137
+ displayName: 'Meta Llama 3 70B',
138
+ id: 'llama3-70b-8192',
139
+ pricing: {
140
+ input: 0.59,
141
+ output: 0.79,
142
+ },
143
+ type: 'chat',
144
+ },
145
+ {
146
+ abilities: {
147
+ functionCall: true,
148
+ },
149
+ contextWindowTokens: 8192,
150
+ description: 'Gemma 2 9B 是一款优化用于特定任务和工具整合的模型。',
151
+ displayName: 'Gemma 2 9B',
152
+ enabled: true,
153
+ id: 'gemma2-9b-it',
154
+ pricing: {
155
+ input: 0.2,
156
+ output: 0.2,
157
+ },
158
+ type: 'chat',
159
+ },
160
+ {
161
+ abilities: {
162
+ functionCall: true,
163
+ },
164
+ contextWindowTokens: 8192,
165
+ description: 'Gemma 7B 适合中小规模任务处理,兼具成本效益。',
166
+ displayName: 'Gemma 7B',
167
+ id: 'gemma-7b-it',
168
+ pricing: {
169
+ input: 0.07,
170
+ output: 0.07,
171
+ },
172
+ type: 'chat',
173
+ },
174
+ {
175
+ abilities: {
176
+ functionCall: true,
177
+ },
178
+ contextWindowTokens: 32_768,
179
+ description: 'Mixtral 8x7B 提供高容错的并行计算能力,适合复杂任务。',
180
+ displayName: 'Mixtral 8x7B',
181
+ id: 'mixtral-8x7b-32768',
182
+ pricing: {
183
+ input: 0.24,
184
+ output: 0.24,
185
+ },
186
+ type: 'chat',
187
+ },
188
+ {
189
+ abilities: {
190
+ vision: true,
191
+ },
192
+ contextWindowTokens: 4096,
193
+ description: 'LLaVA 1.5 7B 提供视觉处理能力融合,通过视觉信息输入生成复杂输出。',
194
+ displayName: 'LLaVA 1.5 7B',
195
+ id: 'llava-v1.5-7b-4096-preview',
196
+ type: 'chat',
197
+ },
198
+ ];
199
+
200
+ export const allModels = [...groqChatModels];
201
+
202
+ export default allModels;