@lobehub/chat 1.43.6 → 1.44.1

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 (301) 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/next.config.ts +1 -1
  59. package/package.json +4 -4
  60. package/src/app/(main)/(mobile)/me/settings/features/Category.tsx +1 -1
  61. package/src/app/(main)/(mobile)/me/settings/features/useCategory.tsx +12 -5
  62. package/src/app/(main)/changelog/features/VersionTag.tsx +1 -2
  63. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/Thread.tsx +1 -1
  64. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/ThreadItem.tsx +1 -2
  65. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/index.tsx +0 -1
  66. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/AgentsSuggest.tsx +1 -1
  67. package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/QuestionSuggest.tsx +1 -1
  68. package/src/app/(main)/chat/(workspace)/@conversation/features/ZenModeToast/Toast.tsx +1 -1
  69. package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/index.tsx +0 -2
  70. package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem/index.tsx +0 -1
  71. package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +2 -3
  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 +20 -10
  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 +117 -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 +251 -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/ModelSelect/index.tsx +8 -1
  256. package/src/features/ModelSwitchPanel/index.tsx +10 -3
  257. package/src/features/PluginsUI/Render/Loading.tsx +0 -1
  258. package/src/features/Portal/Home/Body/Files/FileList/Item.tsx +1 -1
  259. package/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts +1 -2
  260. package/src/features/Setting/SettingContainer.tsx +8 -1
  261. package/src/features/ShareModal/ShareImage/style.ts +2 -2
  262. package/src/features/ShareModal/style.ts +2 -2
  263. package/src/features/User/DataStatistics.tsx +1 -1
  264. package/src/hooks/useEnabledChatModels.ts +10 -1
  265. package/src/hooks/useModelSupportToolUse.ts +15 -0
  266. package/src/hooks/useModelSupportVision.ts +15 -0
  267. package/src/layout/AuthProvider/Clerk/useAppearance.ts +3 -3
  268. package/src/layout/GlobalProvider/AppTheme.tsx +1 -1
  269. package/src/layout/GlobalProvider/StoreInitialization.tsx +5 -0
  270. package/src/locales/default/common.ts +1 -0
  271. package/src/locales/default/modelProvider.ts +178 -0
  272. package/src/locales/default/setting.ts +1 -0
  273. package/src/server/modules/KeyVaultsEncrypt/index.ts +1 -1
  274. package/src/server/routers/lambda/aiModel.ts +128 -0
  275. package/src/server/routers/lambda/aiProvider.ts +127 -0
  276. package/src/server/routers/lambda/index.ts +4 -0
  277. package/src/services/__tests__/_auth.test.ts +16 -49
  278. package/src/services/__tests__/chat.test.ts +2 -0
  279. package/src/services/_auth.ts +42 -25
  280. package/src/services/aiModel.ts +52 -0
  281. package/src/services/aiProvider.ts +47 -0
  282. package/src/services/chat.ts +62 -18
  283. package/src/store/aiInfra/index.ts +2 -0
  284. package/src/store/aiInfra/initialState.ts +11 -0
  285. package/src/store/aiInfra/selectors.ts +2 -0
  286. package/src/store/aiInfra/slices/aiModel/action.ts +146 -0
  287. package/src/store/aiInfra/slices/aiModel/index.ts +3 -0
  288. package/src/store/aiInfra/slices/aiModel/initialState.ts +14 -0
  289. package/src/store/aiInfra/slices/aiModel/selectors.ts +63 -0
  290. package/src/store/aiInfra/slices/aiProvider/action.ts +208 -0
  291. package/src/store/aiInfra/slices/aiProvider/index.ts +3 -0
  292. package/src/store/aiInfra/slices/aiProvider/initialState.ts +32 -0
  293. package/src/store/aiInfra/slices/aiProvider/selectors.ts +99 -0
  294. package/src/store/aiInfra/store.ts +25 -0
  295. package/src/store/global/initialState.ts +1 -0
  296. package/src/store/serverConfig/selectors.test.ts +1 -0
  297. package/src/store/user/slices/modelList/selectors/modelProvider.ts +1 -0
  298. package/src/styles/global.ts +1 -1
  299. package/src/types/aiModel.ts +36 -6
  300. package/src/types/aiProvider.ts +14 -5
  301. package/src/utils/fetch/fetchSSE.ts +3 -1
@@ -0,0 +1,171 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const wenxinChatModels: AIChatModelCard[] = [
4
+ {
5
+ contextWindowTokens: 8192,
6
+ description:
7
+ '百度自研的旗舰级大规模⼤语⾔模型,覆盖海量中英文语料,具有强大的通用能力,可满足绝大部分对话问答、创作生成、插件应用场景要求;支持自动对接百度搜索插件,保障问答信息时效。',
8
+ displayName: 'ERNIE 3.5 8K',
9
+ enabled: true,
10
+ id: 'ERNIE-3.5-8K',
11
+ pricing: {
12
+ currency: 'CNY',
13
+ input: 0.8,
14
+ output: 2,
15
+ },
16
+ type: 'chat',
17
+ },
18
+ {
19
+ contextWindowTokens: 8192,
20
+ description:
21
+ '百度自研的旗舰级大规模⼤语⾔模型,覆盖海量中英文语料,具有强大的通用能力,可满足绝大部分对话问答、创作生成、插件应用场景要求;支持自动对接百度搜索插件,保障问答信息时效。',
22
+ displayName: 'ERNIE 3.5 8K Preview',
23
+ id: 'ERNIE-3.5-8K-Preview',
24
+ pricing: {
25
+ currency: 'CNY',
26
+ input: 0.8,
27
+ output: 2,
28
+ },
29
+ type: 'chat',
30
+ },
31
+ {
32
+ contextWindowTokens: 128_000,
33
+ description:
34
+ '百度自研的旗舰级大规模⼤语⾔模型,覆盖海量中英文语料,具有强大的通用能力,可满足绝大部分对话问答、创作生成、插件应用场景要求;支持自动对接百度搜索插件,保障问答信息时效。',
35
+ displayName: 'ERNIE 3.5 128K',
36
+ enabled: true,
37
+ id: 'ERNIE-3.5-128K',
38
+ pricing: {
39
+ currency: 'CNY',
40
+ input: 0.8,
41
+ output: 2,
42
+ },
43
+ type: 'chat',
44
+ },
45
+ {
46
+ contextWindowTokens: 8192,
47
+ description:
48
+ '百度自研的旗舰级超大规模⼤语⾔模型,相较ERNIE 3.5实现了模型能力全面升级,广泛适用于各领域复杂任务场景;支持自动对接百度搜索插件,保障问答信息时效。',
49
+ displayName: 'ERNIE 4.0 8K',
50
+ enabled: true,
51
+ id: 'ERNIE-4.0-8K-Latest',
52
+ pricing: {
53
+ currency: 'CNY',
54
+ input: 30,
55
+ output: 90,
56
+ },
57
+ type: 'chat',
58
+ },
59
+ {
60
+ contextWindowTokens: 8192,
61
+ description:
62
+ '百度自研的旗舰级超大规模⼤语⾔模型,相较ERNIE 3.5实现了模型能力全面升级,广泛适用于各领域复杂任务场景;支持自动对接百度搜索插件,保障问答信息时效。',
63
+ displayName: 'ERNIE 4.0 8K Preview',
64
+ id: 'ERNIE-4.0-8K-Preview',
65
+ pricing: {
66
+ currency: 'CNY',
67
+ input: 30,
68
+ output: 90,
69
+ },
70
+ type: 'chat',
71
+ },
72
+ {
73
+ contextWindowTokens: 8192,
74
+ description:
75
+ '百度自研的旗舰级超大规模⼤语⾔模型,综合效果表现出色,广泛适用于各领域复杂任务场景;支持自动对接百度搜索插件,保障问答信息时效。相较于ERNIE 4.0在性能表现上更优秀',
76
+ displayName: 'ERNIE 4.0 Turbo 8K',
77
+ enabled: true,
78
+ id: 'ERNIE-4.0-Turbo-8K-Latest',
79
+ pricing: {
80
+ currency: 'CNY',
81
+ input: 20,
82
+ output: 60,
83
+ },
84
+ type: 'chat',
85
+ },
86
+ {
87
+ contextWindowTokens: 128_000,
88
+ description:
89
+ '百度自研的旗舰级超大规模⼤语⾔模型,综合效果表现出色,广泛适用于各领域复杂任务场景;支持自动对接百度搜索插件,保障问答信息时效。相较于ERNIE 4.0在性能表现上更优秀',
90
+ displayName: 'ERNIE 4.0 Turbo 128K',
91
+ enabled: true,
92
+ id: 'ERNIE-4.0-Turbo-128K',
93
+ pricing: {
94
+ currency: 'CNY',
95
+ input: 20,
96
+ output: 60,
97
+ },
98
+ type: 'chat',
99
+ },
100
+ {
101
+ contextWindowTokens: 8192,
102
+ description:
103
+ '百度自研的旗舰级超大规模⼤语⾔模型,综合效果表现出色,广泛适用于各领域复杂任务场景;支持自动对接百度搜索插件,保障问答信息时效。相较于ERNIE 4.0在性能表现上更优秀',
104
+ displayName: 'ERNIE 4.0 Turbo 8K Preview',
105
+ id: 'ERNIE-4.0-Turbo-8K-Preview',
106
+ pricing: {
107
+ currency: 'CNY',
108
+ input: 20,
109
+ output: 60,
110
+ },
111
+ type: 'chat',
112
+ },
113
+ {
114
+ contextWindowTokens: 128_000,
115
+ description:
116
+ '百度自研的轻量级大语言模型,兼顾优异的模型效果与推理性能,效果比ERNIE Lite更优,适合低算力AI加速卡推理使用。',
117
+ displayName: 'ERNIE Lite Pro 128K',
118
+ enabled: true,
119
+ id: 'ERNIE-Lite-Pro-128K',
120
+ pricing: {
121
+ currency: 'CNY',
122
+ input: 0.2,
123
+ output: 0.4,
124
+ },
125
+ type: 'chat',
126
+ },
127
+ {
128
+ contextWindowTokens: 128_000,
129
+ description:
130
+ '百度2024年最新发布的自研高性能大语言模型,通用能力优异,效果比ERNIE Speed更优,适合作为基座模型进行精调,更好地处理特定场景问题,同时具备极佳的推理性能。',
131
+ displayName: 'ERNIE Speed Pro 128K',
132
+ enabled: true,
133
+ id: 'ERNIE-Speed-Pro-128K',
134
+ pricing: {
135
+ currency: 'CNY',
136
+ input: 0.3,
137
+ output: 0.6,
138
+ },
139
+ type: 'chat',
140
+ },
141
+ {
142
+ contextWindowTokens: 128_000,
143
+ description:
144
+ '百度2024年最新发布的自研高性能大语言模型,通用能力优异,适合作为基座模型进行精调,更好地处理特定场景问题,同时具备极佳的推理性能。',
145
+ displayName: 'ERNIE Speed 128K',
146
+ id: 'ERNIE-Speed-128K',
147
+ pricing: {
148
+ currency: 'CNY',
149
+ input: 0,
150
+ output: 0,
151
+ },
152
+ type: 'chat',
153
+ },
154
+ {
155
+ contextWindowTokens: 8192,
156
+ description:
157
+ '百度自研的垂直场景大语言模型,适合游戏NPC、客服对话、对话角色扮演等应用场景,人设风格更为鲜明、一致,指令遵循能力更强,推理性能更优。',
158
+ displayName: 'ERNIE Character 8K',
159
+ id: 'ERNIE-Character-8K',
160
+ pricing: {
161
+ currency: 'CNY',
162
+ input: 4,
163
+ output: 8,
164
+ },
165
+ type: 'chat',
166
+ },
167
+ ];
168
+
169
+ export const allModels = [...wenxinChatModels];
170
+
171
+ export default allModels;
@@ -0,0 +1,72 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const xaiChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ contextWindowTokens: 131_072,
9
+ description: '拥有与 Grok 2 相当的性能,但具有更高的效率、速度和功能。',
10
+ displayName: 'Grok Beta',
11
+ enabled: true,
12
+ id: 'grok-beta',
13
+ pricing: {
14
+ input: 5,
15
+ output: 15,
16
+ },
17
+ type: 'chat',
18
+ },
19
+ {
20
+ abilities: {
21
+ functionCall: true,
22
+ vision: true,
23
+ },
24
+ contextWindowTokens: 8192,
25
+ description: '最新的图像理解模型,可以处理各种各样的视觉信息,包括文档、图表、截图和照片等。',
26
+ displayName: 'Grok Vision Beta',
27
+ enabled: true,
28
+ id: 'grok-vision-beta',
29
+ pricing: {
30
+ input: 5,
31
+ output: 15,
32
+ },
33
+ type: 'chat',
34
+ },
35
+ {
36
+ abilities: {
37
+ functionCall: true,
38
+ },
39
+ contextWindowTokens: 131_072,
40
+ description: '该模型在准确性、指令遵循和多语言能力方面有所改进。',
41
+ displayName: 'Grok 2 1212',
42
+ enabled: true,
43
+ id: 'grok-2-1212',
44
+ pricing: {
45
+ input: 2,
46
+ output: 10,
47
+ },
48
+ releasedAt: '2024-12-12',
49
+ type: 'chat',
50
+ },
51
+ {
52
+ abilities: {
53
+ functionCall: true,
54
+ vision: true,
55
+ },
56
+ contextWindowTokens: 32_768,
57
+ description: '该模型在准确性、指令遵循和多语言能力方面有所改进。',
58
+ displayName: 'Grok 2 Vision 1212',
59
+ enabled: true,
60
+ id: 'grok-2-vision-1212',
61
+ pricing: {
62
+ input: 2,
63
+ output: 10,
64
+ },
65
+ releasedAt: '2024-12-12',
66
+ type: 'chat',
67
+ },
68
+ ];
69
+
70
+ export const allModels = [...xaiChatModels];
71
+
72
+ export default allModels;
@@ -0,0 +1,156 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const zerooneChatModels: AIChatModelCard[] = [
4
+ {
5
+ contextWindowTokens: 16_384,
6
+ description: '最新高性能模型,保证高质量输出同时,推理速度大幅提升。',
7
+ displayName: 'Yi Lightning',
8
+ enabled: true,
9
+ id: 'yi-lightning',
10
+ pricing: {
11
+ currency: 'CNY',
12
+ input: 0.99,
13
+ output: 0.99,
14
+ },
15
+ type: 'chat',
16
+ },
17
+ {
18
+ contextWindowTokens: 16_384,
19
+ description: '小而精悍,轻量极速模型。提供强化数学运算和代码编写能力。',
20
+ displayName: 'Yi Spark',
21
+ enabled: true,
22
+ id: 'yi-spark',
23
+ pricing: {
24
+ currency: 'CNY',
25
+ input: 1,
26
+ output: 1,
27
+ },
28
+ type: 'chat',
29
+ },
30
+ {
31
+ contextWindowTokens: 16_384,
32
+ description: '中型尺寸模型升级微调,能力均衡,性价比高。深度优化指令遵循能力。',
33
+ displayName: 'Yi Medium',
34
+ enabled: true,
35
+ id: 'yi-medium',
36
+ pricing: {
37
+ currency: 'CNY',
38
+ input: 2.5,
39
+ output: 2.5,
40
+ },
41
+ type: 'chat',
42
+ },
43
+ {
44
+ contextWindowTokens: 200_000,
45
+ description: '200K 超长上下文窗口,提供长文本深度理解和生成能力。',
46
+ displayName: 'Yi Medium 200K',
47
+ enabled: true,
48
+ id: 'yi-medium-200k',
49
+ pricing: {
50
+ currency: 'CNY',
51
+ input: 12,
52
+ output: 12,
53
+ },
54
+ type: 'chat',
55
+ },
56
+ {
57
+ contextWindowTokens: 16_384,
58
+ description: '超高性价比、卓越性能。根据性能和推理速度、成本,进行平衡性高精度调优。',
59
+ displayName: 'Yi Large Turbo',
60
+ enabled: true,
61
+ id: 'yi-large-turbo',
62
+ pricing: {
63
+ currency: 'CNY',
64
+ input: 12,
65
+ output: 12,
66
+ },
67
+ type: 'chat',
68
+ },
69
+ {
70
+ contextWindowTokens: 16_384,
71
+ description:
72
+ '基于 yi-large 超强模型的高阶服务,结合检索与生成技术提供精准答案,实时全网检索信息服务。',
73
+ displayName: 'Yi Large RAG',
74
+ enabled: true,
75
+ id: 'yi-large-rag',
76
+ pricing: {
77
+ currency: 'CNY',
78
+ input: 25,
79
+ output: 25,
80
+ },
81
+ type: 'chat',
82
+ },
83
+ {
84
+ abilities: {
85
+ functionCall: true,
86
+ },
87
+ contextWindowTokens: 32_768,
88
+ description:
89
+ '在 yi-large 模型的基础上支持并强化了工具调用的能力,适用于各种需要搭建 agent 或 workflow 的业务场景。',
90
+ displayName: 'Yi Large FC',
91
+ enabled: true,
92
+ id: 'yi-large-fc',
93
+ pricing: {
94
+ currency: 'CNY',
95
+ input: 20,
96
+ output: 20,
97
+ },
98
+ type: 'chat',
99
+ },
100
+ {
101
+ contextWindowTokens: 32_768,
102
+ description: '全新千亿参数模型,提供超强问答及文本生成能力。',
103
+ displayName: 'Yi Large',
104
+ id: 'yi-large',
105
+ pricing: {
106
+ currency: 'CNY',
107
+ input: 20,
108
+ output: 20,
109
+ },
110
+ type: 'chat',
111
+ },
112
+ {
113
+ abilities: {
114
+ vision: true,
115
+ },
116
+ contextWindowTokens: 16_384,
117
+ description: '复杂视觉任务模型,提供高性能图片理解、分析能力。',
118
+ displayName: 'Yi Vision',
119
+ enabled: true,
120
+ id: 'yi-vision',
121
+ pricing: {
122
+ currency: 'CNY',
123
+ input: 6,
124
+ output: 6,
125
+ },
126
+ type: 'chat',
127
+ },
128
+ {
129
+ contextWindowTokens: 16_384,
130
+ description: '初期版本,推荐使用 yi-large(新版本)。',
131
+ displayName: 'Yi Large Preview',
132
+ id: 'yi-large-preview',
133
+ pricing: {
134
+ currency: 'CNY',
135
+ input: 20,
136
+ output: 20,
137
+ },
138
+ type: 'chat',
139
+ },
140
+ {
141
+ contextWindowTokens: 16_384,
142
+ description: '轻量化版本,推荐使用 yi-lightning。',
143
+ displayName: 'Yi Lightning Lite',
144
+ id: 'yi-lightning-lite',
145
+ pricing: {
146
+ currency: 'CNY',
147
+ input: 0.99,
148
+ output: 0.99,
149
+ },
150
+ type: 'chat',
151
+ },
152
+ ];
153
+
154
+ export const allModels = [...zerooneChatModels];
155
+
156
+ export default allModels;
@@ -0,0 +1,235 @@
1
+ import { AIChatModelCard } from '@/types/aiModel';
2
+
3
+ const zhipuChatModels: AIChatModelCard[] = [
4
+ {
5
+ abilities: {
6
+ functionCall: true,
7
+ },
8
+ contextWindowTokens: 128_000,
9
+ description: 'GLM-4-Flash 是处理简单任务的理想选择,速度最快且免费。',
10
+ displayName: 'GLM-4-Flash',
11
+ enabled: true,
12
+ id: 'glm-4-flash',
13
+ pricing: {
14
+ currency: 'CNY',
15
+ input: 0,
16
+ output: 0,
17
+ },
18
+ type: 'chat',
19
+ },
20
+ {
21
+ abilities: {
22
+ functionCall: true,
23
+ },
24
+ contextWindowTokens: 128_000,
25
+ description: 'GLM-4-FlashX 是Flash的增强版本,超快推理速度。',
26
+ displayName: 'GLM-4-FlashX',
27
+ enabled: true,
28
+ id: 'glm-4-flashx',
29
+ pricing: {
30
+ currency: 'CNY',
31
+ input: 0.1,
32
+ output: 0.1,
33
+ },
34
+ type: 'chat',
35
+ },
36
+ {
37
+ abilities: {
38
+ functionCall: true,
39
+ },
40
+ contextWindowTokens: 1_024_000,
41
+ description: 'GLM-4-Long 支持超长文本输入,适合记忆型任务与大规模文档处理。',
42
+ displayName: 'GLM-4-Long',
43
+ id: 'glm-4-long',
44
+ pricing: {
45
+ currency: 'CNY',
46
+ input: 1,
47
+ output: 1,
48
+ },
49
+ type: 'chat',
50
+ },
51
+ {
52
+ abilities: {
53
+ functionCall: true,
54
+ },
55
+ contextWindowTokens: 128_000,
56
+ description: 'GLM-4-Air 是性价比高的版本,性能接近GLM-4,提供快速度和实惠的价格。',
57
+ displayName: 'GLM-4-Air',
58
+ enabled: true,
59
+ id: 'glm-4-air',
60
+ pricing: {
61
+ currency: 'CNY',
62
+ input: 1,
63
+ output: 1,
64
+ },
65
+ type: 'chat',
66
+ },
67
+ {
68
+ abilities: {
69
+ functionCall: true,
70
+ },
71
+ contextWindowTokens: 8192,
72
+ description: 'GLM-4-AirX 提供 GLM-4-Air 的高效版本,推理速度可达其2.6倍。',
73
+ displayName: 'GLM-4-AirX',
74
+ enabled: true,
75
+ id: 'glm-4-airx',
76
+ pricing: {
77
+ currency: 'CNY',
78
+ input: 10,
79
+ output: 10,
80
+ },
81
+ type: 'chat',
82
+ },
83
+ {
84
+ abilities: {
85
+ functionCall: true,
86
+ },
87
+ contextWindowTokens: 128_000,
88
+ description:
89
+ 'GLM-4-AllTools 是一个多功能智能体模型,优化以支持复杂指令规划与工具调用,如网络浏览、代码解释和文本生成,适用于多任务执行。',
90
+ displayName: 'GLM-4-AllTools',
91
+ id: 'glm-4-alltools',
92
+ pricing: {
93
+ currency: 'CNY',
94
+ input: 100,
95
+ output: 100,
96
+ },
97
+ type: 'chat',
98
+ },
99
+ {
100
+ abilities: {
101
+ functionCall: true,
102
+ },
103
+ contextWindowTokens: 128_000,
104
+ description: 'GLM-4-Plus 作为高智能旗舰,具备强大的处理长文本和复杂任务的能力,性能全面提升。',
105
+ displayName: 'GLM-4-Plus',
106
+ enabled: true,
107
+ id: 'glm-4-plus',
108
+ pricing: {
109
+ currency: 'CNY',
110
+ input: 50,
111
+ output: 50,
112
+ },
113
+ type: 'chat',
114
+ },
115
+ {
116
+ abilities: {
117
+ functionCall: true,
118
+ },
119
+ contextWindowTokens: 128_000,
120
+ description: 'GLM-4-0520 是最新模型版本,专为高度复杂和多样化任务设计,表现卓越。',
121
+ displayName: 'GLM-4-0520',
122
+ id: 'glm-4-0520',
123
+ pricing: {
124
+ currency: 'CNY',
125
+ input: 100,
126
+ output: 100,
127
+ },
128
+ type: 'chat',
129
+ },
130
+ {
131
+ abilities: {
132
+ functionCall: true,
133
+ },
134
+ contextWindowTokens: 128_000,
135
+ description: 'GLM-4 是发布于2024年1月的旧旗舰版本,目前已被更强的 GLM-4-0520 取代。',
136
+ displayName: 'GLM-4',
137
+ id: 'glm-4',
138
+ pricing: {
139
+ currency: 'CNY',
140
+ input: 100,
141
+ output: 100,
142
+ },
143
+ type: 'chat',
144
+ },
145
+ {
146
+ abilities: {
147
+ vision: true,
148
+ },
149
+ contextWindowTokens: 8192,
150
+ description:
151
+ 'GLM-4V-Flash 专注于高效的单一图像理解,适用于快速图像解析的场景,例如实时图像分析或批量图像处理。',
152
+ displayName: 'GLM-4V-Flash',
153
+ enabled: true,
154
+ id: 'glm-4v-flash',
155
+ pricing: {
156
+ currency: 'CNY',
157
+ input: 0,
158
+ output: 0,
159
+ },
160
+ releasedAt: '2024-12-09',
161
+ type: 'chat',
162
+ },
163
+ {
164
+ abilities: {
165
+ vision: true,
166
+ },
167
+ contextWindowTokens: 8192,
168
+ description: 'GLM-4V-Plus 具备对视频内容及多图片的理解能力,适合多模态任务。',
169
+ displayName: 'GLM-4V-Plus',
170
+ enabled: true,
171
+ id: 'glm-4v-plus',
172
+ pricing: {
173
+ currency: 'CNY',
174
+ input: 10,
175
+ output: 10,
176
+ },
177
+ type: 'chat',
178
+ },
179
+ {
180
+ abilities: {
181
+ vision: true,
182
+ },
183
+ contextWindowTokens: 2048,
184
+ description: 'GLM-4V 提供强大的图像理解与推理能力,支持多种视觉任务。',
185
+ displayName: 'GLM-4V',
186
+ id: 'glm-4v',
187
+ pricing: {
188
+ currency: 'CNY',
189
+ input: 50,
190
+ output: 50,
191
+ },
192
+ type: 'chat',
193
+ },
194
+ {
195
+ contextWindowTokens: 128_000,
196
+ description:
197
+ 'CodeGeeX-4 是强大的AI编程助手,支持多种编程语言的智能问答与代码补全,提升开发效率。',
198
+ displayName: 'CodeGeeX-4',
199
+ id: 'codegeex-4',
200
+ pricing: {
201
+ currency: 'CNY',
202
+ input: 0.1,
203
+ output: 0.1,
204
+ },
205
+ type: 'chat',
206
+ },
207
+ {
208
+ contextWindowTokens: 4096,
209
+ description: 'CharGLM-3 专为角色扮演与情感陪伴设计,支持超长多轮记忆与个性化对话,应用广泛。',
210
+ displayName: 'CharGLM-3',
211
+ id: 'charglm-3',
212
+ pricing: {
213
+ currency: 'CNY',
214
+ input: 15,
215
+ output: 15,
216
+ },
217
+ type: 'chat',
218
+ },
219
+ {
220
+ contextWindowTokens: 8192,
221
+ description: 'Emohaa 是心理模型,具备专业咨询能力,帮助用户理解情感问题。',
222
+ displayName: 'Emohaa',
223
+ id: 'emohaa',
224
+ pricing: {
225
+ currency: 'CNY',
226
+ input: 15,
227
+ output: 15,
228
+ },
229
+ type: 'chat',
230
+ },
231
+ ];
232
+
233
+ export const allModels = [...zhipuChatModels];
234
+
235
+ export default allModels;
@@ -11,6 +11,7 @@ export const FeatureFlagsSchema = z.object({
11
11
 
12
12
  // settings
13
13
  language_model_settings: z.boolean().optional(),
14
+ provider_settings: z.boolean().optional(),
14
15
 
15
16
  openai_api_key: z.boolean().optional(),
16
17
  openai_proxy_url: z.boolean().optional(),
@@ -50,6 +51,7 @@ export const DEFAULT_FEATURE_FLAGS: IFeatureFlags = {
50
51
  pin_list: false,
51
52
 
52
53
  language_model_settings: true,
54
+ provider_settings: true,
53
55
 
54
56
  openai_api_key: true,
55
57
  openai_proxy_url: true,
@@ -89,6 +91,7 @@ export const mapFeatureFlagsEnvToState = (config: IFeatureFlags) => {
89
91
 
90
92
  showCreateSession: config.create_session,
91
93
  showLLM: config.language_model_settings,
94
+ showProvider: config.provider_settings,
92
95
  showPinList: config.pin_list,
93
96
 
94
97
  showOpenAIApiKey: config.openai_api_key,
@@ -131,6 +131,7 @@ const Anthropic: ModelProviderCard = {
131
131
  checkModel: 'claude-3-haiku-20240307',
132
132
  description:
133
133
  'Anthropic 是一家专注于人工智能研究和开发的公司,提供了一系列先进的语言模型,如 Claude 3.5 Sonnet、Claude 3 Sonnet、Claude 3 Opus 和 Claude 3 Haiku。这些模型在智能、速度和成本之间取得了理想的平衡,适用于从企业级工作负载到快速响应的各种应用场景。Claude 3.5 Sonnet 作为其最新模型,在多项评估中表现优异,同时保持了较高的性价比。',
134
+ enabled: true,
134
135
  id: 'anthropic',
135
136
  modelsUrl: 'https://docs.anthropic.com/en/docs/about-claude/models#model-names',
136
137
  name: 'Anthropic',
@@ -227,7 +227,6 @@ const Github: ModelProviderCard = {
227
227
  checkModel: 'Phi-3-mini-4k-instruct',
228
228
  // Ref: https://github.blog/news-insights/product-news/introducing-github-models/
229
229
  description: '通过GitHub模型,开发人员可以成为AI工程师,并使用行业领先的AI模型进行构建。',
230
- enabled: true,
231
230
  id: 'github',
232
231
  modelList: { showModelFetcher: true },
233
232
  // I'm not sure if it is good to show the model fetcher, as remote list is not complete.
@@ -271,6 +271,7 @@ const Google: ModelProviderCard = {
271
271
  checkModel: 'gemini-1.5-flash-latest',
272
272
  description:
273
273
  'Google 的 Gemini 系列是其最先进、通用的 AI模型,由 Google DeepMind 打造,专为多模态设计,支持文本、代码、图像、音频和视频的无缝理解与处理。适用于从数据中心到移动设备的多种环境,极大提升了AI模型的效率与应用广泛性。',
274
+ enabled: true,
274
275
  id: 'google',
275
276
  modelsUrl: 'https://ai.google.dev/gemini-api/docs/models/gemini',
276
277
  name: 'Google',
@@ -129,7 +129,9 @@ const Stepfun: ModelProviderCard = {
129
129
  // after test, currently https://api.stepfun.com/v1/chat/completions has the CORS issue
130
130
  // So we should close the browser request mode
131
131
  disableBrowserRequest: true,
132
+
132
133
  id: 'stepfun',
134
+
133
135
  modelList: { showModelFetcher: true },
134
136
  modelsUrl: 'https://platform.stepfun.com/docs/llm/text',
135
137
  name: 'Stepfun',