@lobehub/chat 1.43.5 → 1.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/changelog/v1.json +18 -0
- package/docs/self-hosting/server-database/docker-compose.mdx +2 -2
- package/locales/ar/common.json +1 -0
- package/locales/ar/modelProvider.json +176 -0
- package/locales/ar/setting.json +1 -0
- package/locales/bg-BG/common.json +1 -0
- package/locales/bg-BG/modelProvider.json +176 -0
- package/locales/bg-BG/setting.json +1 -0
- package/locales/de-DE/common.json +1 -0
- package/locales/de-DE/modelProvider.json +176 -0
- package/locales/de-DE/setting.json +1 -0
- package/locales/en-US/common.json +1 -0
- package/locales/en-US/modelProvider.json +176 -0
- package/locales/en-US/setting.json +1 -0
- package/locales/es-ES/common.json +1 -0
- package/locales/es-ES/modelProvider.json +176 -0
- package/locales/es-ES/setting.json +1 -0
- package/locales/fa-IR/common.json +1 -0
- package/locales/fa-IR/modelProvider.json +176 -0
- package/locales/fa-IR/setting.json +1 -0
- package/locales/fr-FR/common.json +1 -0
- package/locales/fr-FR/modelProvider.json +176 -0
- package/locales/fr-FR/setting.json +1 -0
- package/locales/it-IT/common.json +1 -0
- package/locales/it-IT/modelProvider.json +176 -0
- package/locales/it-IT/setting.json +1 -0
- package/locales/ja-JP/common.json +1 -0
- package/locales/ja-JP/modelProvider.json +176 -0
- package/locales/ja-JP/setting.json +1 -0
- package/locales/ko-KR/common.json +1 -0
- package/locales/ko-KR/modelProvider.json +176 -0
- package/locales/ko-KR/setting.json +1 -0
- package/locales/nl-NL/common.json +1 -0
- package/locales/nl-NL/modelProvider.json +176 -0
- package/locales/nl-NL/setting.json +1 -0
- package/locales/pl-PL/common.json +1 -0
- package/locales/pl-PL/modelProvider.json +176 -0
- package/locales/pl-PL/setting.json +1 -0
- package/locales/pt-BR/common.json +1 -0
- package/locales/pt-BR/modelProvider.json +176 -0
- package/locales/pt-BR/setting.json +1 -0
- package/locales/ru-RU/common.json +1 -0
- package/locales/ru-RU/modelProvider.json +176 -0
- package/locales/ru-RU/setting.json +1 -0
- package/locales/tr-TR/common.json +1 -0
- package/locales/tr-TR/modelProvider.json +176 -0
- package/locales/tr-TR/setting.json +1 -0
- package/locales/vi-VN/common.json +1 -0
- package/locales/vi-VN/modelProvider.json +176 -0
- package/locales/vi-VN/setting.json +1 -0
- package/locales/zh-CN/common.json +1 -0
- package/locales/zh-CN/modelProvider.json +176 -0
- package/locales/zh-CN/setting.json +1 -0
- package/locales/zh-TW/common.json +1 -0
- package/locales/zh-TW/modelProvider.json +176 -0
- package/locales/zh-TW/setting.json +1 -0
- package/package.json +4 -4
- package/src/app/(main)/(mobile)/me/settings/features/Category.tsx +1 -1
- package/src/app/(main)/(mobile)/me/settings/features/useCategory.tsx +12 -5
- package/src/app/(main)/changelog/features/VersionTag.tsx +1 -2
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/Thread.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/ThreadItem.tsx +1 -2
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/ChatItem/index.tsx +0 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/AgentsSuggest.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ChatList/WelcomeChatItem/InboxWelcome/QuestionSuggest.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@conversation/features/ZenModeToast/Toast.tsx +1 -1
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/ThreadItem/index.tsx +0 -2
- package/src/app/(main)/chat/(workspace)/@topic/features/TopicListContent/TopicItem/index.tsx +0 -1
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/ChatHeader/Tags.tsx +2 -3
- package/src/app/(main)/chat/(workspace)/_layout/Desktop/index.tsx +6 -1
- package/src/app/(main)/chat/@session/features/SessionListContent/CollapseGroup/index.tsx +1 -1
- package/src/app/(main)/chat/features/Migration/Start.tsx +1 -1
- package/src/app/(main)/discover/(detail)/assistant/[slug]/features/ConversationExample/TopicList.tsx +4 -3
- package/src/app/(main)/discover/(detail)/assistant/[slug]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(detail)/features/ShareButton.tsx +2 -1
- package/src/app/(main)/discover/(detail)/model/[...slugs]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(detail)/plugin/[slug]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(detail)/provider/[slug]/features/Header.tsx +1 -1
- package/src/app/(main)/discover/(list)/_layout/Desktop/Nav.tsx +0 -1
- package/src/app/(main)/discover/(list)/assistants/features/Card.tsx +1 -1
- package/src/app/(main)/discover/(list)/models/features/Card.tsx +1 -1
- package/src/app/(main)/discover/(list)/plugins/features/Card.tsx +1 -1
- package/src/app/(main)/discover/(list)/providers/features/Card.tsx +1 -1
- package/src/app/(main)/discover/components/GridLoadingCard.tsx +2 -1
- package/src/app/(main)/discover/components/Title.tsx +1 -1
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/EmptyStatus.tsx +1 -1
- package/src/app/(main)/files/(content)/@menu/features/KnowledgeBase/Item/index.tsx +0 -1
- package/src/app/(main)/files/(content)/@modal/(.)[id]/FullscreenModal.tsx +2 -2
- package/src/app/(main)/files/(content)/NotSupportClient.tsx +2 -2
- package/src/app/(main)/profile/_layout/Desktop/SideBar.tsx +1 -1
- package/src/app/(main)/profile/stats/features/ShareButton/Preview.tsx +5 -5
- package/src/app/(main)/repos/[id]/evals/components/Container.tsx +1 -1
- package/src/app/(main)/repos/[id]/evals/dataset/DatasetList/Item.tsx +0 -1
- package/src/app/(main)/settings/_layout/Desktop/SideBar.tsx +1 -1
- package/src/app/(main)/settings/about/features/ItemCard.tsx +3 -3
- package/src/app/(main)/settings/about/features/Version.tsx +1 -1
- package/src/app/(main)/settings/hooks/useCategory.tsx +22 -9
- package/src/app/(main)/settings/llm/components/ProviderConfig/index.tsx +2 -1
- package/src/app/(main)/settings/llm/components/ProviderModelList/ModelFetcher.tsx +0 -1
- package/src/app/(main)/settings/provider/(detail)/[id]/index.tsx +19 -0
- package/src/app/(main)/settings/provider/(detail)/[id]/page.tsx +95 -0
- package/src/app/(main)/settings/provider/(detail)/azure/page.tsx +119 -0
- package/src/app/(main)/settings/provider/(detail)/bedrock/page.tsx +91 -0
- package/src/app/(main)/settings/provider/(detail)/cloudflare/page.tsx +58 -0
- package/src/app/(main)/settings/provider/(detail)/github/page.tsx +67 -0
- package/src/app/(main)/settings/provider/(detail)/huggingface/page.tsx +67 -0
- package/src/app/(main)/settings/provider/(detail)/ollama/Checker.tsx +73 -0
- package/src/app/(main)/settings/provider/(detail)/ollama/page.tsx +34 -0
- package/src/app/(main)/settings/provider/(detail)/openai/page.tsx +23 -0
- package/src/app/(main)/settings/provider/(detail)/wenxin/page.tsx +61 -0
- package/src/app/(main)/settings/provider/(list)/Footer.tsx +36 -0
- package/src/app/(main)/settings/provider/(list)/ProviderGrid/Card.tsx +134 -0
- package/src/app/(main)/settings/provider/(list)/ProviderGrid/index.tsx +91 -0
- package/src/app/(main)/settings/provider/(list)/index.tsx +19 -0
- package/src/app/(main)/settings/provider/ProviderMenu/AddNew.tsx +28 -0
- package/src/app/(main)/settings/provider/ProviderMenu/All.tsx +29 -0
- package/src/app/(main)/settings/provider/ProviderMenu/Item.tsx +69 -0
- package/src/app/(main)/settings/provider/ProviderMenu/List.tsx +76 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SearchResult.tsx +43 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SkeletonList.tsx +60 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/GroupItem.tsx +30 -0
- package/src/app/(main)/settings/provider/ProviderMenu/SortProviderModal/index.tsx +91 -0
- package/src/app/(main)/settings/provider/ProviderMenu/index.tsx +80 -0
- package/src/app/(main)/settings/provider/_layout/Desktop.tsx +37 -0
- package/src/app/(main)/settings/provider/_layout/Mobile.tsx +14 -0
- package/src/app/(main)/settings/provider/const.ts +20 -0
- package/src/app/(main)/settings/provider/features/CreateNewProvider/index.tsx +146 -0
- package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/Form.tsx +105 -0
- package/src/app/(main)/settings/provider/features/ModelList/CreateNewModelModal/index.tsx +69 -0
- package/src/app/(main)/settings/provider/features/ModelList/DisabledModels.tsx +29 -0
- package/src/app/(main)/settings/provider/features/ModelList/EmptyModels.tsx +101 -0
- package/src/app/(main)/settings/provider/features/ModelList/EnabledModelList/index.tsx +85 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/Form.tsx +109 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelConfigModal/index.tsx +76 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelItem.tsx +346 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/Search.tsx +37 -0
- package/src/app/(main)/settings/provider/features/ModelList/ModelTitle/index.tsx +145 -0
- package/src/app/(main)/settings/provider/features/ModelList/SearchResult.tsx +67 -0
- package/src/app/(main)/settings/provider/features/ModelList/SkeletonList.tsx +63 -0
- package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/ListItem.tsx +20 -0
- package/src/app/(main)/settings/provider/features/ModelList/SortModelModal/index.tsx +96 -0
- package/src/app/(main)/settings/provider/features/ModelList/index.tsx +59 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/Checker.tsx +120 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/SkeletonInput.tsx +5 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/SettingModal.tsx +137 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/UpdateProviderInfo/index.tsx +49 -0
- package/src/app/(main)/settings/provider/features/ProviderConfig/index.tsx +343 -0
- package/src/app/(main)/settings/provider/layout.tsx +21 -0
- package/src/app/(main)/settings/provider/page.tsx +17 -0
- package/src/app/(main)/settings/provider/type.ts +5 -0
- package/src/app/(main)/settings/sync/features/DeviceInfo/Card.tsx +1 -1
- package/src/app/(main)/settings/sync/features/DeviceInfo/index.tsx +1 -1
- package/src/app/@modal/(.)changelog/modal/features/ReadDetail.tsx +1 -1
- package/src/app/@modal/(.)changelog/modal/features/VersionTag.tsx +1 -2
- package/src/app/@modal/(.)changelog/modal/layout.tsx +1 -1
- package/src/components/Cell/index.tsx +1 -1
- package/src/components/DragUpload/index.tsx +2 -3
- package/src/components/FeatureList/index.tsx +1 -1
- package/src/components/FileParsingStatus/EmbeddingStatus.tsx +1 -1
- package/src/components/FileParsingStatus/index.tsx +1 -1
- package/src/components/FunctionModal/style.tsx +2 -2
- package/src/components/GoBack/index.tsx +1 -2
- package/src/components/HotKeys/index.tsx +1 -1
- package/src/components/InstantSwitch/index.tsx +28 -0
- package/src/components/Menu/index.tsx +1 -1
- package/src/components/ModelSelect/index.tsx +2 -3
- package/src/components/Notification/index.tsx +2 -1
- package/src/components/StatisticCard/index.tsx +5 -6
- package/src/config/aiModels/ai21.ts +38 -0
- package/src/config/aiModels/ai360.ts +71 -0
- package/src/config/aiModels/anthropic.ts +152 -0
- package/src/config/aiModels/azure.ts +86 -0
- package/src/config/aiModels/baichuan.ts +107 -0
- package/src/config/aiModels/bedrock.ts +315 -0
- package/src/config/aiModels/cloudflare.ts +88 -0
- package/src/config/aiModels/deepseek.ts +27 -0
- package/src/config/aiModels/fireworksai.ts +232 -0
- package/src/config/aiModels/giteeai.ts +137 -0
- package/src/config/aiModels/github.ts +273 -0
- package/src/config/aiModels/google.ts +317 -0
- package/src/config/aiModels/groq.ts +202 -0
- package/src/config/aiModels/higress.ts +2828 -0
- package/src/config/aiModels/huggingface.ts +56 -0
- package/src/config/aiModels/hunyuan.ts +151 -0
- package/src/config/aiModels/index.ts +98 -0
- package/src/config/aiModels/internlm.ts +40 -0
- package/src/config/aiModels/minimax.ts +55 -0
- package/src/config/aiModels/mistral.ts +172 -0
- package/src/config/aiModels/moonshot.ts +44 -0
- package/src/config/aiModels/novita.ts +124 -0
- package/src/config/aiModels/ollama.ts +412 -0
- package/src/config/aiModels/openai.ts +537 -0
- package/src/config/aiModels/openrouter.ts +252 -0
- package/src/config/aiModels/perplexity.ts +67 -0
- package/src/config/aiModels/qwen.ts +302 -0
- package/src/config/aiModels/sensenova.ts +114 -0
- package/src/config/aiModels/siliconcloud.ts +679 -0
- package/src/config/aiModels/spark.ts +68 -0
- package/src/config/aiModels/stepfun.ts +153 -0
- package/src/config/aiModels/taichu.ts +19 -0
- package/src/config/aiModels/togetherai.ts +334 -0
- package/src/config/aiModels/upstage.ts +37 -0
- package/src/config/aiModels/wenxin.ts +171 -0
- package/src/config/aiModels/xai.ts +72 -0
- package/src/config/aiModels/zeroone.ts +156 -0
- package/src/config/aiModels/zhipu.ts +235 -0
- package/src/config/featureFlags/schema.ts +3 -0
- package/src/config/modelProviders/anthropic.ts +1 -0
- package/src/config/modelProviders/github.ts +0 -1
- package/src/config/modelProviders/google.ts +1 -0
- package/src/config/modelProviders/stepfun.ts +2 -0
- package/src/database/migrations/0013_add_ai_infra.sql +44 -0
- package/src/database/migrations/meta/0013_snapshot.json +3598 -0
- package/src/database/migrations/meta/_journal.json +7 -0
- package/src/database/repositories/aiInfra/index.ts +115 -0
- package/src/database/schemas/aiInfra.ts +69 -0
- package/src/database/schemas/index.ts +1 -0
- package/src/database/server/models/__tests__/aiModel.test.ts +318 -0
- package/src/database/server/models/__tests__/aiProvider.test.ts +373 -0
- package/src/database/server/models/aiModel.ts +250 -0
- package/src/database/server/models/aiProvider.ts +234 -0
- package/src/features/AgentSetting/AgentPrompt/index.tsx +2 -2
- package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +2 -1
- package/src/features/ChatInput/ActionBar/Tools/index.tsx +2 -3
- package/src/features/ChatInput/ActionBar/Upload/ServerMode.tsx +2 -3
- package/src/features/ChatInput/Desktop/FilePreview/FileItem/index.tsx +3 -2
- package/src/features/ChatInput/Desktop/FilePreview/FileList.tsx +2 -2
- package/src/features/ChatInput/Mobile/Files/FileItem/File.tsx +2 -2
- package/src/features/ChatInput/Mobile/InputArea/index.tsx +1 -1
- package/src/features/ChatInput/STT/common.tsx +1 -1
- package/src/features/Conversation/Error/style.tsx +2 -2
- package/src/features/Conversation/Messages/Assistant/FileChunks/Item/style.ts +2 -2
- package/src/features/Conversation/Messages/Assistant/FileChunks/index.tsx +1 -1
- package/src/features/Conversation/Messages/Assistant/ToolCallItem/Inspector/style.ts +2 -3
- package/src/features/Conversation/Messages/Assistant/ToolCallItem/style.ts +2 -3
- package/src/features/Conversation/Messages/User/FileListViewer/Item.tsx +0 -1
- package/src/features/Conversation/components/BackBottom/style.ts +2 -2
- package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/Icon.tsx +2 -3
- package/src/features/Conversation/components/MarkdownElements/LobeArtifact/Render/index.tsx +3 -3
- package/src/features/Conversation/components/MarkdownElements/LobeThinking/Render.tsx +1 -1
- package/src/features/Conversation/components/OTPInput.tsx +2 -2
- package/src/features/DataImporter/Loading.tsx +1 -1
- package/src/features/FileManager/FileList/EmptyStatus.tsx +1 -1
- package/src/features/FileManager/FileList/index.tsx +1 -1
- package/src/features/FileManager/UploadDock/Item.tsx +1 -1
- package/src/features/FileManager/UploadDock/index.tsx +4 -4
- package/src/features/FileViewer/NotSupport/index.tsx +1 -1
- package/src/features/FileViewer/Renderer/MSDoc/index.tsx +0 -1
- package/src/features/FileViewer/Renderer/TXT/index.tsx +1 -1
- package/src/features/InitClientDB/EnableModal.tsx +1 -1
- package/src/features/InitClientDB/ErrorResult.tsx +1 -1
- package/src/features/InitClientDB/InitIndicator.tsx +1 -1
- package/src/features/KnowledgeBaseModal/AddFilesToKnowledgeBase/SelectForm.tsx +0 -1
- package/src/features/ModelSwitchPanel/index.tsx +2 -2
- package/src/features/PluginsUI/Render/Loading.tsx +0 -1
- package/src/features/Portal/Home/Body/Files/FileList/Item.tsx +1 -1
- package/src/features/Portal/Home/Body/Plugins/ArtifactList/Item/style.ts +1 -2
- package/src/features/Setting/SettingContainer.tsx +8 -1
- package/src/features/ShareModal/ShareImage/style.ts +2 -2
- package/src/features/ShareModal/style.ts +2 -2
- package/src/features/User/DataStatistics.tsx +1 -1
- package/src/hooks/useEnabledChatModels.ts +10 -1
- package/src/hooks/useModelSupportToolUse.ts +15 -0
- package/src/hooks/useModelSupportVision.ts +15 -0
- package/src/layout/AuthProvider/Clerk/useAppearance.ts +3 -3
- package/src/layout/GlobalProvider/AppTheme.tsx +1 -1
- package/src/layout/GlobalProvider/StoreInitialization.tsx +5 -0
- package/src/locales/default/common.ts +1 -0
- package/src/locales/default/modelProvider.ts +178 -0
- package/src/locales/default/setting.ts +1 -0
- package/src/server/modules/KeyVaultsEncrypt/index.ts +1 -1
- package/src/server/routers/lambda/aiModel.ts +128 -0
- package/src/server/routers/lambda/aiProvider.ts +127 -0
- package/src/server/routers/lambda/index.ts +4 -0
- package/src/services/__tests__/_auth.test.ts +16 -49
- package/src/services/__tests__/chat.test.ts +2 -0
- package/src/services/_auth.ts +42 -25
- package/src/services/aiModel.ts +52 -0
- package/src/services/aiProvider.ts +47 -0
- package/src/services/chat.ts +62 -18
- package/src/store/aiInfra/index.ts +2 -0
- package/src/store/aiInfra/initialState.ts +11 -0
- package/src/store/aiInfra/selectors.ts +2 -0
- package/src/store/aiInfra/slices/aiModel/action.ts +146 -0
- package/src/store/aiInfra/slices/aiModel/index.ts +3 -0
- package/src/store/aiInfra/slices/aiModel/initialState.ts +14 -0
- package/src/store/aiInfra/slices/aiModel/selectors.ts +63 -0
- package/src/store/aiInfra/slices/aiProvider/action.ts +208 -0
- package/src/store/aiInfra/slices/aiProvider/index.ts +3 -0
- package/src/store/aiInfra/slices/aiProvider/initialState.ts +32 -0
- package/src/store/aiInfra/slices/aiProvider/selectors.ts +99 -0
- package/src/store/aiInfra/store.ts +25 -0
- package/src/store/global/initialState.ts +1 -0
- package/src/store/serverConfig/selectors.test.ts +1 -0
- package/src/styles/global.ts +1 -1
- package/src/types/aiModel.ts +32 -6
- package/src/types/aiProvider.ts +11 -4
- package/src/utils/fetch/fetchSSE.ts +3 -1
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
|
2
|
+
|
|
3
|
+
const huggingfaceChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
contextWindowTokens: 32_768,
|
|
6
|
+
description: 'Mistral AI的指令调优模型',
|
|
7
|
+
displayName: 'Mistral 7B Instruct v0.3',
|
|
8
|
+
enabled: true,
|
|
9
|
+
id: 'mistralai/Mistral-7B-Instruct-v0.3',
|
|
10
|
+
type: 'chat',
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
contextWindowTokens: 8192,
|
|
14
|
+
description: 'Google的轻量级指令调优模型',
|
|
15
|
+
displayName: 'Gemma 2 2B Instruct',
|
|
16
|
+
id: 'google/gemma-2-2b-it',
|
|
17
|
+
type: 'chat',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
contextWindowTokens: 32_768,
|
|
21
|
+
description: '阿里云通义千问团队开发的大型语言模型',
|
|
22
|
+
displayName: 'Qwen 2.5 72B Instruct',
|
|
23
|
+
id: 'Qwen/Qwen2.5-72B-Instruct',
|
|
24
|
+
type: 'chat',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
contextWindowTokens: 32_768,
|
|
28
|
+
description: 'Qwen2.5-Coder 专注于代码编写',
|
|
29
|
+
displayName: 'Qwen 2.5 Coder 32B Instruct',
|
|
30
|
+
id: 'Qwen/Qwen2.5-Coder-32B-Instruct',
|
|
31
|
+
type: 'chat',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
contextWindowTokens: 32_768,
|
|
35
|
+
description: 'Qwen QwQ 是由 Qwen 团队开发的实验研究模型,专注于提升AI推理能力。',
|
|
36
|
+
displayName: 'QwQ 32B Preview',
|
|
37
|
+
id: 'Qwen/QwQ-32B-Preview',
|
|
38
|
+
type: 'chat',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
contextWindowTokens: 32_768,
|
|
42
|
+
displayName: 'Phi 3.5 mini instruct',
|
|
43
|
+
id: 'microsoft/Phi-3.5-mini-instruct',
|
|
44
|
+
type: 'chat',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
contextWindowTokens: 16_384,
|
|
48
|
+
displayName: 'Hermes 3 Llama 3.1 8B',
|
|
49
|
+
id: 'NousResearch/Hermes-3-Llama-3.1-8B',
|
|
50
|
+
type: 'chat',
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
|
|
54
|
+
export const allModels = [...huggingfaceChatModels];
|
|
55
|
+
|
|
56
|
+
export default allModels;
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
|
2
|
+
|
|
3
|
+
const hunyuanChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
contextWindowTokens: 256_000,
|
|
6
|
+
description:
|
|
7
|
+
'升级为 MOE 结构,上下文窗口为 256k ,在 NLP,代码,数学,行业等多项评测集上领先众多开源模型。',
|
|
8
|
+
displayName: 'Hunyuan Lite',
|
|
9
|
+
enabled: true,
|
|
10
|
+
id: 'hunyuan-lite',
|
|
11
|
+
maxOutput: 6000,
|
|
12
|
+
pricing: {
|
|
13
|
+
currency: 'CNY',
|
|
14
|
+
input: 0,
|
|
15
|
+
output: 0,
|
|
16
|
+
},
|
|
17
|
+
type: 'chat',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
contextWindowTokens: 32_000,
|
|
21
|
+
description:
|
|
22
|
+
'采用更优的路由策略,同时缓解了负载均衡和专家趋同的问题。长文方面,大海捞针指标达到99.9%。MOE-32K 性价比相对更高,在平衡效果、价格的同时,可对实现对长文本输入的处理。',
|
|
23
|
+
displayName: 'Hunyuan Standard',
|
|
24
|
+
enabled: true,
|
|
25
|
+
id: 'hunyuan-standard',
|
|
26
|
+
maxOutput: 2000,
|
|
27
|
+
pricing: {
|
|
28
|
+
currency: 'CNY',
|
|
29
|
+
input: 4.5,
|
|
30
|
+
output: 5,
|
|
31
|
+
},
|
|
32
|
+
type: 'chat',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
contextWindowTokens: 256_000,
|
|
36
|
+
description:
|
|
37
|
+
'采用更优的路由策略,同时缓解了负载均衡和专家趋同的问题。长文方面,大海捞针指标达到99.9%。MOE-256K 在长度和效果上进一步突破,极大的扩展了可输入长度。',
|
|
38
|
+
displayName: 'Hunyuan Standard 256K',
|
|
39
|
+
enabled: true,
|
|
40
|
+
id: 'hunyuan-standard-256K',
|
|
41
|
+
maxOutput: 6000,
|
|
42
|
+
pricing: {
|
|
43
|
+
currency: 'CNY',
|
|
44
|
+
input: 15,
|
|
45
|
+
output: 60,
|
|
46
|
+
},
|
|
47
|
+
type: 'chat',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
abilities: {
|
|
51
|
+
functionCall: true,
|
|
52
|
+
},
|
|
53
|
+
contextWindowTokens: 32_000,
|
|
54
|
+
description:
|
|
55
|
+
'混元全新一代大语言模型的预览版,采用全新的混合专家模型(MoE)结构,相比hunyuan-pro推理效率更快,效果表现更强。',
|
|
56
|
+
displayName: 'Hunyuan Turbo',
|
|
57
|
+
enabled: true,
|
|
58
|
+
id: 'hunyuan-turbo',
|
|
59
|
+
maxOutput: 4000,
|
|
60
|
+
pricing: {
|
|
61
|
+
currency: 'CNY',
|
|
62
|
+
input: 15,
|
|
63
|
+
output: 50,
|
|
64
|
+
},
|
|
65
|
+
type: 'chat',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
abilities: {
|
|
69
|
+
functionCall: true,
|
|
70
|
+
},
|
|
71
|
+
contextWindowTokens: 32_000,
|
|
72
|
+
description:
|
|
73
|
+
'万亿级参数规模 MOE-32K 长文模型。在各种 benchmark 上达到绝对领先的水平,复杂指令和推理,具备复杂数学能力,支持 functioncall,在多语言翻译、金融法律医疗等领域应用重点优化。',
|
|
74
|
+
displayName: 'Hunyuan Pro',
|
|
75
|
+
enabled: true,
|
|
76
|
+
id: 'hunyuan-pro',
|
|
77
|
+
maxOutput: 4000,
|
|
78
|
+
pricing: {
|
|
79
|
+
currency: 'CNY',
|
|
80
|
+
input: 30,
|
|
81
|
+
output: 100,
|
|
82
|
+
},
|
|
83
|
+
type: 'chat',
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
abilities: {
|
|
87
|
+
vision: true,
|
|
88
|
+
},
|
|
89
|
+
contextWindowTokens: 8000,
|
|
90
|
+
description: '混元最新多模态模型,支持图片+文本输入生成文本内容。',
|
|
91
|
+
displayName: 'Hunyuan Vision',
|
|
92
|
+
enabled: true,
|
|
93
|
+
id: 'hunyuan-vision',
|
|
94
|
+
maxOutput: 4000,
|
|
95
|
+
pricing: {
|
|
96
|
+
currency: 'CNY',
|
|
97
|
+
input: 18,
|
|
98
|
+
output: 18,
|
|
99
|
+
},
|
|
100
|
+
type: 'chat',
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
contextWindowTokens: 8000,
|
|
104
|
+
description:
|
|
105
|
+
'混元最新代码生成模型,经过 200B 高质量代码数据增训基座模型,迭代半年高质量 SFT 数据训练,上下文长窗口长度增大到 8K,五大语言代码生成自动评测指标上位居前列;五大语言10项考量各方面综合代码任务人工高质量评测上,性能处于第一梯队',
|
|
106
|
+
displayName: 'Hunyuan Code',
|
|
107
|
+
id: 'hunyuan-code',
|
|
108
|
+
maxOutput: 4000,
|
|
109
|
+
pricing: {
|
|
110
|
+
currency: 'CNY',
|
|
111
|
+
input: 4,
|
|
112
|
+
output: 8,
|
|
113
|
+
},
|
|
114
|
+
type: 'chat',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
abilities: {
|
|
118
|
+
functionCall: true,
|
|
119
|
+
},
|
|
120
|
+
contextWindowTokens: 32_000,
|
|
121
|
+
description:
|
|
122
|
+
'混元最新 MOE 架构 FunctionCall 模型,经过高质量的 FunctionCall 数据训练,上下文窗口达 32K,在多个维度的评测指标上处于领先。',
|
|
123
|
+
displayName: 'Hunyuan FunctionCall',
|
|
124
|
+
id: 'hunyuan-functioncall',
|
|
125
|
+
maxOutput: 4000,
|
|
126
|
+
pricing: {
|
|
127
|
+
currency: 'CNY',
|
|
128
|
+
input: 4,
|
|
129
|
+
output: 8,
|
|
130
|
+
},
|
|
131
|
+
type: 'chat',
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
contextWindowTokens: 8000,
|
|
135
|
+
description:
|
|
136
|
+
'混元最新版角色扮演模型,混元官方精调训练推出的角色扮演模型,基于混元模型结合角色扮演场景数据集进行增训,在角色扮演场景具有更好的基础效果。',
|
|
137
|
+
displayName: 'Hunyuan Role',
|
|
138
|
+
id: 'hunyuan-role',
|
|
139
|
+
maxOutput: 4000,
|
|
140
|
+
pricing: {
|
|
141
|
+
currency: 'CNY',
|
|
142
|
+
input: 4,
|
|
143
|
+
output: 8,
|
|
144
|
+
},
|
|
145
|
+
type: 'chat',
|
|
146
|
+
},
|
|
147
|
+
];
|
|
148
|
+
|
|
149
|
+
export const allModels = [...hunyuanChatModels];
|
|
150
|
+
|
|
151
|
+
export default allModels;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { AiFullModelCard, LobeDefaultAiModelListItem } from '@/types/aiModel';
|
|
2
|
+
|
|
3
|
+
import { default as ai21 } from './ai21';
|
|
4
|
+
import { default as ai360 } from './ai360';
|
|
5
|
+
import { default as anthropic } from './anthropic';
|
|
6
|
+
import { default as azure } from './azure';
|
|
7
|
+
import { default as baichuan } from './baichuan';
|
|
8
|
+
import { default as bedrock } from './bedrock';
|
|
9
|
+
import { default as cloudflare } from './cloudflare';
|
|
10
|
+
import { default as deepseek } from './deepseek';
|
|
11
|
+
import { default as fireworksai } from './fireworksai';
|
|
12
|
+
import { default as giteeai } from './giteeai';
|
|
13
|
+
import { default as github } from './github';
|
|
14
|
+
import { default as google } from './google';
|
|
15
|
+
import { default as groq } from './groq';
|
|
16
|
+
import { default as higress } from './higress';
|
|
17
|
+
import { default as huggingface } from './huggingface';
|
|
18
|
+
import { default as hunyuan } from './hunyuan';
|
|
19
|
+
import { default as internlm } from './internlm';
|
|
20
|
+
import { default as minimax } from './minimax';
|
|
21
|
+
import { default as mistral } from './mistral';
|
|
22
|
+
import { default as moonshot } from './moonshot';
|
|
23
|
+
import { default as novita } from './novita';
|
|
24
|
+
import { default as ollama } from './ollama';
|
|
25
|
+
import { default as openai } from './openai';
|
|
26
|
+
import { default as openrouter } from './openrouter';
|
|
27
|
+
import { default as perplexity } from './perplexity';
|
|
28
|
+
import { default as qwen } from './qwen';
|
|
29
|
+
import { default as sensenova } from './sensenova';
|
|
30
|
+
import { default as siliconcloud } from './siliconcloud';
|
|
31
|
+
import { default as spark } from './spark';
|
|
32
|
+
import { default as stepfun } from './stepfun';
|
|
33
|
+
import { default as taichu } from './taichu';
|
|
34
|
+
import { default as togetherai } from './togetherai';
|
|
35
|
+
import { default as upstage } from './upstage';
|
|
36
|
+
import { default as wenxin } from './wenxin';
|
|
37
|
+
import { default as xai } from './xai';
|
|
38
|
+
import { default as zeroone } from './zeroone';
|
|
39
|
+
import { default as zhipu } from './zhipu';
|
|
40
|
+
|
|
41
|
+
type ModelsMap = Record<string, AiFullModelCard[]>;
|
|
42
|
+
|
|
43
|
+
const buildDefaultModelList = (map: ModelsMap): LobeDefaultAiModelListItem[] => {
|
|
44
|
+
let models: LobeDefaultAiModelListItem[] = [];
|
|
45
|
+
|
|
46
|
+
Object.entries(map).forEach(([provider, providerModels]) => {
|
|
47
|
+
const newModels = providerModels.map((model) => ({
|
|
48
|
+
...model,
|
|
49
|
+
abilities: model.abilities ?? {},
|
|
50
|
+
enabled: model.enabled || false,
|
|
51
|
+
providerId: provider,
|
|
52
|
+
source: 'builtin',
|
|
53
|
+
}));
|
|
54
|
+
models = models.concat(newModels);
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
return models;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const LOBE_DEFAULT_MODEL_LIST = buildDefaultModelList({
|
|
61
|
+
ai21,
|
|
62
|
+
ai360,
|
|
63
|
+
anthropic,
|
|
64
|
+
azure,
|
|
65
|
+
baichuan,
|
|
66
|
+
bedrock,
|
|
67
|
+
cloudflare,
|
|
68
|
+
deepseek,
|
|
69
|
+
fireworksai,
|
|
70
|
+
giteeai,
|
|
71
|
+
github,
|
|
72
|
+
google,
|
|
73
|
+
groq,
|
|
74
|
+
higress,
|
|
75
|
+
huggingface,
|
|
76
|
+
hunyuan,
|
|
77
|
+
internlm,
|
|
78
|
+
minimax,
|
|
79
|
+
mistral,
|
|
80
|
+
moonshot,
|
|
81
|
+
novita,
|
|
82
|
+
ollama,
|
|
83
|
+
openai,
|
|
84
|
+
openrouter,
|
|
85
|
+
perplexity,
|
|
86
|
+
qwen,
|
|
87
|
+
sensenova,
|
|
88
|
+
siliconcloud,
|
|
89
|
+
spark,
|
|
90
|
+
stepfun,
|
|
91
|
+
taichu,
|
|
92
|
+
togetherai,
|
|
93
|
+
upstage,
|
|
94
|
+
wenxin,
|
|
95
|
+
xai,
|
|
96
|
+
zeroone,
|
|
97
|
+
zhipu,
|
|
98
|
+
});
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
|
2
|
+
|
|
3
|
+
const internlmChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
},
|
|
8
|
+
contextWindowTokens: 32_768,
|
|
9
|
+
description:
|
|
10
|
+
'我们最新的模型系列,有着卓越的推理性能,支持 1M 的上下文长度以及更强的指令跟随和工具调用能力。',
|
|
11
|
+
displayName: 'InternLM2.5',
|
|
12
|
+
enabled: true,
|
|
13
|
+
id: 'internlm2.5-latest',
|
|
14
|
+
maxOutput: 4096,
|
|
15
|
+
pricing: {
|
|
16
|
+
input: 0,
|
|
17
|
+
output: 0,
|
|
18
|
+
},
|
|
19
|
+
type: 'chat',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
abilities: {
|
|
23
|
+
functionCall: true,
|
|
24
|
+
},
|
|
25
|
+
contextWindowTokens: 32_768,
|
|
26
|
+
description: '我们仍在维护的老版本模型,有 7B、20B 多种模型参数量可选。',
|
|
27
|
+
displayName: 'InternLM2 Pro Chat',
|
|
28
|
+
id: 'internlm2-pro-chat',
|
|
29
|
+
maxOutput: 4096,
|
|
30
|
+
pricing: {
|
|
31
|
+
input: 0,
|
|
32
|
+
output: 0,
|
|
33
|
+
},
|
|
34
|
+
type: 'chat',
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
|
|
38
|
+
export const allModels = [...internlmChatModels];
|
|
39
|
+
|
|
40
|
+
export default allModels;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
|
2
|
+
|
|
3
|
+
const minimaxChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
},
|
|
8
|
+
contextWindowTokens: 245_760,
|
|
9
|
+
description: '适用于广泛的自然语言处理任务,包括文本生成、对话系统等。',
|
|
10
|
+
displayName: 'abab6.5s',
|
|
11
|
+
enabled: true,
|
|
12
|
+
id: 'abab6.5s-chat',
|
|
13
|
+
type: 'chat',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
abilities: {
|
|
17
|
+
functionCall: true,
|
|
18
|
+
},
|
|
19
|
+
contextWindowTokens: 8192,
|
|
20
|
+
description: '专为多语种人设对话设计,支持英文及其他多种语言的高质量对话生成。',
|
|
21
|
+
displayName: 'abab6.5g',
|
|
22
|
+
enabled: true,
|
|
23
|
+
id: 'abab6.5g-chat',
|
|
24
|
+
type: 'chat',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
abilities: {
|
|
28
|
+
functionCall: true,
|
|
29
|
+
},
|
|
30
|
+
contextWindowTokens: 8192,
|
|
31
|
+
description: '针对中文人设对话场景优化,提供流畅且符合中文表达习惯的对话生成能力。',
|
|
32
|
+
displayName: 'abab6.5t',
|
|
33
|
+
enabled: true,
|
|
34
|
+
id: 'abab6.5t-chat',
|
|
35
|
+
type: 'chat',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
contextWindowTokens: 16_384,
|
|
39
|
+
description: '面向生产力场景,支持复杂任务处理和高效文本生成,适用于专业领域应用。',
|
|
40
|
+
displayName: 'abab5.5',
|
|
41
|
+
id: 'abab5.5-chat',
|
|
42
|
+
type: 'chat',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
contextWindowTokens: 8192,
|
|
46
|
+
description: '专为中文人设对话场景设计,提供高质量的中文对话生成能力,适用于多种应用场景。',
|
|
47
|
+
displayName: 'abab5.5s',
|
|
48
|
+
id: 'abab5.5s-chat',
|
|
49
|
+
type: 'chat',
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
|
|
53
|
+
export const allModels = [...minimaxChatModels];
|
|
54
|
+
|
|
55
|
+
export default allModels;
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
|
2
|
+
|
|
3
|
+
const mistralChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
},
|
|
8
|
+
contextWindowTokens: 128_000,
|
|
9
|
+
description:
|
|
10
|
+
'Mistral Nemo是一个与Nvidia合作开发的12B模型,提供出色的推理和编码性能,易于集成和替换。',
|
|
11
|
+
displayName: 'Mistral Nemo',
|
|
12
|
+
enabled: true,
|
|
13
|
+
id: 'open-mistral-nemo',
|
|
14
|
+
pricing: {
|
|
15
|
+
input: 0.15,
|
|
16
|
+
output: 0.15,
|
|
17
|
+
},
|
|
18
|
+
type: 'chat',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
abilities: {
|
|
22
|
+
functionCall: true,
|
|
23
|
+
},
|
|
24
|
+
contextWindowTokens: 128_000,
|
|
25
|
+
description: 'Mistral Small是成本效益高、快速且可靠的选项,适用于翻译、摘要和情感分析等用例。',
|
|
26
|
+
displayName: 'Mistral Small',
|
|
27
|
+
enabled: true,
|
|
28
|
+
id: 'mistral-small-latest',
|
|
29
|
+
pricing: {
|
|
30
|
+
input: 0.2,
|
|
31
|
+
output: 0.6,
|
|
32
|
+
},
|
|
33
|
+
type: 'chat',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
abilities: {
|
|
37
|
+
functionCall: true,
|
|
38
|
+
},
|
|
39
|
+
contextWindowTokens: 128_000,
|
|
40
|
+
description:
|
|
41
|
+
'Mistral Large是旗舰大模型,擅长多语言任务、复杂推理和代码生成,是高端应用的理想选择。',
|
|
42
|
+
displayName: 'Mistral Large',
|
|
43
|
+
enabled: true,
|
|
44
|
+
id: 'mistral-large-latest',
|
|
45
|
+
pricing: {
|
|
46
|
+
input: 2,
|
|
47
|
+
output: 6,
|
|
48
|
+
},
|
|
49
|
+
type: 'chat',
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
contextWindowTokens: 32_768,
|
|
53
|
+
description: 'Codestral是专注于代码生成的尖端生成模型,优化了中间填充和代码补全任务。',
|
|
54
|
+
displayName: 'Codestral',
|
|
55
|
+
id: 'codestral-latest',
|
|
56
|
+
pricing: {
|
|
57
|
+
input: 0.2,
|
|
58
|
+
output: 0.6,
|
|
59
|
+
},
|
|
60
|
+
type: 'chat',
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
abilities: {
|
|
64
|
+
functionCall: true,
|
|
65
|
+
vision: true,
|
|
66
|
+
},
|
|
67
|
+
contextWindowTokens: 128_000,
|
|
68
|
+
description:
|
|
69
|
+
'Pixtral Large 是一款拥有 1240 亿参数的开源多模态模型,基于 Mistral Large 2 构建。这是我们多模态家族中的第二款模型,展现了前沿水平的图像理解能力。',
|
|
70
|
+
displayName: 'Pixtral Large',
|
|
71
|
+
enabled: true,
|
|
72
|
+
id: 'pixtral-large-latest',
|
|
73
|
+
pricing: {
|
|
74
|
+
input: 2,
|
|
75
|
+
output: 6,
|
|
76
|
+
},
|
|
77
|
+
type: 'chat',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
abilities: {
|
|
81
|
+
vision: true,
|
|
82
|
+
},
|
|
83
|
+
contextWindowTokens: 128_000,
|
|
84
|
+
description:
|
|
85
|
+
'Pixtral 模型在图表和图理解、文档问答、多模态推理和指令遵循等任务上表现出强大的能力,能够以自然分辨率和宽高比摄入图像,还能够在长达 128K 令牌的长上下文窗口中处理任意数量的图像。',
|
|
86
|
+
displayName: 'Pixtral 12B',
|
|
87
|
+
enabled: true,
|
|
88
|
+
id: 'pixtral-12b-2409',
|
|
89
|
+
pricing: {
|
|
90
|
+
input: 0.15,
|
|
91
|
+
output: 0.15,
|
|
92
|
+
},
|
|
93
|
+
type: 'chat',
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
contextWindowTokens: 128_000,
|
|
97
|
+
description: 'Ministral 3B 是Mistral的世界顶级边缘模型。',
|
|
98
|
+
displayName: 'Ministral 3B',
|
|
99
|
+
id: 'ministral-3b-latest',
|
|
100
|
+
pricing: {
|
|
101
|
+
input: 0.04,
|
|
102
|
+
output: 0.04,
|
|
103
|
+
},
|
|
104
|
+
type: 'chat',
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
contextWindowTokens: 128_000,
|
|
108
|
+
description: 'Ministral 8B 是Mistral的性价比极高的边缘模型。',
|
|
109
|
+
displayName: 'Ministral 8B',
|
|
110
|
+
id: 'ministral-8b-latest',
|
|
111
|
+
pricing: {
|
|
112
|
+
input: 0.1,
|
|
113
|
+
output: 0.1,
|
|
114
|
+
},
|
|
115
|
+
type: 'chat',
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
contextWindowTokens: 32_768,
|
|
119
|
+
description:
|
|
120
|
+
'Mistral 7B是一款紧凑但高性能的模型,擅长批量处理和简单任务,如分类和文本生成,具有良好的推理能力。',
|
|
121
|
+
displayName: 'Mistral 7B',
|
|
122
|
+
id: 'open-mistral-7b',
|
|
123
|
+
pricing: {
|
|
124
|
+
input: 0.25,
|
|
125
|
+
output: 0.25,
|
|
126
|
+
},
|
|
127
|
+
type: 'chat',
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
contextWindowTokens: 32_768,
|
|
131
|
+
description:
|
|
132
|
+
'Mixtral 8x7B是一个稀疏专家模型,利用多个参数提高推理速度,适合处理多语言和代码生成任务。',
|
|
133
|
+
displayName: 'Mixtral 8x7B',
|
|
134
|
+
id: 'open-mixtral-8x7b',
|
|
135
|
+
pricing: {
|
|
136
|
+
input: 0.7,
|
|
137
|
+
output: 0.7,
|
|
138
|
+
},
|
|
139
|
+
type: 'chat',
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
abilities: {
|
|
143
|
+
functionCall: true,
|
|
144
|
+
},
|
|
145
|
+
contextWindowTokens: 65_536,
|
|
146
|
+
description:
|
|
147
|
+
'Mixtral 8x22B是一个更大的专家模型,专注于复杂任务,提供出色的推理能力和更高的吞吐量。',
|
|
148
|
+
displayName: 'Mixtral 8x22B',
|
|
149
|
+
id: 'open-mixtral-8x22b',
|
|
150
|
+
pricing: {
|
|
151
|
+
input: 2,
|
|
152
|
+
output: 6,
|
|
153
|
+
},
|
|
154
|
+
type: 'chat',
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
contextWindowTokens: 256_000,
|
|
158
|
+
description:
|
|
159
|
+
'Codestral Mamba是专注于代码生成的Mamba 2语言模型,为先进的代码和推理任务提供强力支持。',
|
|
160
|
+
displayName: 'Codestral Mamba',
|
|
161
|
+
id: 'open-codestral-mamba',
|
|
162
|
+
pricing: {
|
|
163
|
+
input: 0.15,
|
|
164
|
+
output: 0.15,
|
|
165
|
+
},
|
|
166
|
+
type: 'chat',
|
|
167
|
+
},
|
|
168
|
+
];
|
|
169
|
+
|
|
170
|
+
export const allModels = [...mistralChatModels];
|
|
171
|
+
|
|
172
|
+
export default allModels;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
|
2
|
+
|
|
3
|
+
const moonshotChatModels: AIChatModelCard[] = [
|
|
4
|
+
{
|
|
5
|
+
abilities: {
|
|
6
|
+
functionCall: true,
|
|
7
|
+
},
|
|
8
|
+
contextWindowTokens: 8192,
|
|
9
|
+
description:
|
|
10
|
+
'Moonshot V1 8K 专为生成短文本任务设计,具有高效的处理性能,能够处理8,192个tokens,非常适合简短对话、速记和快速内容生成。',
|
|
11
|
+
displayName: 'Moonshot V1 8K',
|
|
12
|
+
enabled: true,
|
|
13
|
+
id: 'moonshot-v1-8k',
|
|
14
|
+
type: 'chat',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
abilities: {
|
|
18
|
+
functionCall: true,
|
|
19
|
+
},
|
|
20
|
+
contextWindowTokens: 32_768,
|
|
21
|
+
description:
|
|
22
|
+
'Moonshot V1 32K 提供中等长度的上下文处理能力,能够处理32,768个tokens,特别适合生成各种长文档和复杂对话,应用于内容创作、报告生成和对话系统等领域。',
|
|
23
|
+
displayName: 'Moonshot V1 32K',
|
|
24
|
+
enabled: true,
|
|
25
|
+
id: 'moonshot-v1-32k',
|
|
26
|
+
type: 'chat',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
abilities: {
|
|
30
|
+
functionCall: true,
|
|
31
|
+
},
|
|
32
|
+
contextWindowTokens: 128_000,
|
|
33
|
+
description:
|
|
34
|
+
'Moonshot V1 128K 是一款拥有超长上下文处理能力的模型,适用于生成超长文本,满足复杂的生成任务需求,能够处理多达128,000个tokens的内容,非常适合科研、学术和大型文档生成等应用场景。',
|
|
35
|
+
displayName: 'Moonshot V1 128K',
|
|
36
|
+
enabled: true,
|
|
37
|
+
id: 'moonshot-v1-128k',
|
|
38
|
+
type: 'chat',
|
|
39
|
+
},
|
|
40
|
+
];
|
|
41
|
+
|
|
42
|
+
export const allModels = [...moonshotChatModels];
|
|
43
|
+
|
|
44
|
+
export default allModels;
|