@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.
- 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/next.config.ts +1 -1
- 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/@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 +20 -10
- 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 +117 -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 +251 -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/ModelSelect/index.tsx +8 -1
- package/src/features/ModelSwitchPanel/index.tsx +10 -3
- 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/store/user/slices/modelList/selectors/modelProvider.ts +1 -0
- package/src/styles/global.ts +1 -1
- package/src/types/aiModel.ts +36 -6
- package/src/types/aiProvider.ts +14 -5
- package/src/utils/fetch/fetchSSE.ts +3 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { IconAvatarProps, ModelIcon, ProviderIcon } from '@lobehub/icons';
|
2
|
-
import { Icon, Tooltip } from '@lobehub/ui';
|
2
|
+
import { Avatar, Icon, Tooltip } from '@lobehub/ui';
|
3
3
|
import { Typography } from 'antd';
|
4
4
|
import { createStyles } from 'antd-style';
|
5
5
|
import { Infinity, LucideEye, LucidePaperclip, ToyBrick } from 'lucide-react';
|
@@ -10,6 +10,7 @@ import { useTranslation } from 'react-i18next';
|
|
10
10
|
import { Center, Flexbox } from 'react-layout-kit';
|
11
11
|
|
12
12
|
import { ModelAbilities } from '@/types/aiModel';
|
13
|
+
import { AiProviderSourceType } from '@/types/aiProvider';
|
13
14
|
import { ChatModelCard } from '@/types/llm';
|
14
15
|
import { formatTokenNumber } from '@/utils/format';
|
15
16
|
|
@@ -17,13 +18,13 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
17
18
|
custom: css`
|
18
19
|
width: 36px;
|
19
20
|
height: 20px;
|
21
|
+
border-radius: 4px;
|
20
22
|
|
21
23
|
font-family: ${token.fontFamilyCode};
|
22
24
|
font-size: 12px;
|
23
25
|
color: ${rgba(token.colorWarning, 0.75)};
|
24
26
|
|
25
27
|
background: ${token.colorWarningBg};
|
26
|
-
border-radius: 4px;
|
27
28
|
`,
|
28
29
|
tag: css`
|
29
30
|
cursor: default;
|
@@ -34,7 +35,6 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
34
35
|
|
35
36
|
width: 20px;
|
36
37
|
height: 20px;
|
37
|
-
|
38
38
|
border-radius: 4px;
|
39
39
|
`,
|
40
40
|
tagBlue: css`
|
@@ -48,13 +48,13 @@ const useStyles = createStyles(({ css, token }) => ({
|
|
48
48
|
token: css`
|
49
49
|
width: 36px;
|
50
50
|
height: 20px;
|
51
|
+
border-radius: 4px;
|
51
52
|
|
52
53
|
font-family: ${token.fontFamilyCode};
|
53
54
|
font-size: 11px;
|
54
55
|
color: ${token.colorTextSecondary};
|
55
56
|
|
56
57
|
background: ${token.colorFillTertiary};
|
57
|
-
border-radius: 4px;
|
58
58
|
`,
|
59
59
|
}));
|
60
60
|
|
@@ -154,16 +154,26 @@ export const ModelItemRender = memo<ModelItemRenderProps>(({ showInfoTag = true,
|
|
154
154
|
});
|
155
155
|
|
156
156
|
interface ProviderItemRenderProps {
|
157
|
+
logo?: string;
|
157
158
|
name: string;
|
158
159
|
provider: string;
|
160
|
+
source?: AiProviderSourceType;
|
159
161
|
}
|
160
162
|
|
161
|
-
export const ProviderItemRender = memo<ProviderItemRenderProps>(
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
)
|
163
|
+
export const ProviderItemRender = memo<ProviderItemRenderProps>(
|
164
|
+
({ provider, name, source, logo }) => {
|
165
|
+
return (
|
166
|
+
<Flexbox align={'center'} gap={4} horizontal>
|
167
|
+
{source === 'custom' && !!logo ? (
|
168
|
+
<Avatar avatar={logo} size={20} style={{ filter: 'grayscale(1)' }} title={name} />
|
169
|
+
) : (
|
170
|
+
<ProviderIcon provider={provider} size={20} type={'mono'} />
|
171
|
+
)}
|
172
|
+
{name}
|
173
|
+
</Flexbox>
|
174
|
+
);
|
175
|
+
},
|
176
|
+
);
|
167
177
|
|
168
178
|
interface LabelRendererProps {
|
169
179
|
Icon: FC<IconAvatarProps>;
|
@@ -22,9 +22,10 @@ const useStyles = createStyles(({ css, token, isDarkMode }) => ({
|
|
22
22
|
|
23
23
|
overflow: hidden;
|
24
24
|
|
25
|
-
background: ${token.colorBgContainer};
|
26
25
|
border: 1px solid ${token.colorSplit};
|
27
26
|
border-radius: 8px;
|
27
|
+
|
28
|
+
background: ${token.colorBgContainer};
|
28
29
|
box-shadow: ${token.boxShadowSecondary};
|
29
30
|
`,
|
30
31
|
mobileContainer: css`
|
@@ -16,16 +16,16 @@ const useStyles = createStyles(
|
|
16
16
|
border-radius: ${token.borderRadiusLG}px;
|
17
17
|
|
18
18
|
${responsive.mobile} {
|
19
|
-
background: ${token.colorBgContainer};
|
20
19
|
border: none;
|
21
20
|
border-radius: 0;
|
21
|
+
background: ${token.colorBgContainer};
|
22
22
|
}
|
23
23
|
`,
|
24
24
|
container: css`
|
25
25
|
${responsive.mobile} {
|
26
|
-
background: ${token.colorBgContainer};
|
27
26
|
border: none;
|
28
27
|
border-radius: 0;
|
28
|
+
background: ${token.colorBgContainer};
|
29
29
|
}
|
30
30
|
|
31
31
|
.${prefixCls}-pro-card-title {
|
@@ -56,7 +56,6 @@ const useStyles = createStyles(
|
|
56
56
|
|
57
57
|
margin: 0;
|
58
58
|
padding: 0;
|
59
|
-
|
60
59
|
border-end-start-radius: ${token.borderRadiusLG}px;
|
61
60
|
border-end-end-radius: ${token.borderRadiusLG}px;
|
62
61
|
}
|
@@ -132,6 +131,7 @@ const useStyles = createStyles(
|
|
132
131
|
|
133
132
|
width: 66%;
|
134
133
|
height: 50%;
|
134
|
+
border-radius: 50%;
|
135
135
|
|
136
136
|
opacity: ${isDarkMode ? 1 : 0.33};
|
137
137
|
background-image: linear-gradient(
|
@@ -143,7 +143,6 @@ const useStyles = createStyles(
|
|
143
143
|
background-position: center left;
|
144
144
|
background-size: contain;
|
145
145
|
filter: blur(32px);
|
146
|
-
border-radius: 50%;
|
147
146
|
}
|
148
147
|
|
149
148
|
> div {
|
@@ -151,12 +150,12 @@ const useStyles = createStyles(
|
|
151
150
|
}
|
152
151
|
`,
|
153
152
|
icon: css`
|
154
|
-
background: ${token.colorFillSecondary};
|
155
153
|
border-radius: ${token.borderRadius}px;
|
154
|
+
background: ${token.colorFillSecondary};
|
156
155
|
`,
|
157
156
|
pure: css`
|
158
|
-
background: transparent !important;
|
159
157
|
border: none !important;
|
158
|
+
background: transparent !important;
|
160
159
|
`,
|
161
160
|
}),
|
162
161
|
);
|
@@ -0,0 +1,38 @@
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
2
|
+
|
3
|
+
const ai21ChatModels: AIChatModelCard[] = [
|
4
|
+
{
|
5
|
+
abilities: {
|
6
|
+
functionCall: true,
|
7
|
+
},
|
8
|
+
contextWindowTokens: 256_000,
|
9
|
+
displayName: 'Jamba 1.5 Mini',
|
10
|
+
enabled: true,
|
11
|
+
id: 'jamba-1.5-mini',
|
12
|
+
pricing: {
|
13
|
+
input: 0.2,
|
14
|
+
output: 0.4,
|
15
|
+
},
|
16
|
+
releasedAt: '2024-08-22',
|
17
|
+
type: 'chat',
|
18
|
+
},
|
19
|
+
{
|
20
|
+
abilities: {
|
21
|
+
functionCall: true,
|
22
|
+
},
|
23
|
+
contextWindowTokens: 256_000,
|
24
|
+
displayName: 'Jamba 1.5 Large',
|
25
|
+
enabled: true,
|
26
|
+
id: 'jamba-1.5-large',
|
27
|
+
pricing: {
|
28
|
+
input: 2,
|
29
|
+
output: 8,
|
30
|
+
},
|
31
|
+
releasedAt: '2024-08-22',
|
32
|
+
type: 'chat',
|
33
|
+
},
|
34
|
+
];
|
35
|
+
|
36
|
+
export const allModels = [...ai21ChatModels];
|
37
|
+
|
38
|
+
export default allModels;
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
2
|
+
|
3
|
+
const ai360ChatModels: AIChatModelCard[] = [
|
4
|
+
{
|
5
|
+
contextWindowTokens: 8192,
|
6
|
+
description:
|
7
|
+
'360GPT2 Pro 是 360 公司推出的高级自然语言处理模型,具备卓越的文本生成和理解能力,尤其在生成与创作领域表现出色,能够处理复杂的语言转换和角色演绎任务。',
|
8
|
+
displayName: '360GPT2 Pro',
|
9
|
+
enabled: true,
|
10
|
+
id: '360gpt2-pro',
|
11
|
+
maxOutput: 7000,
|
12
|
+
pricing: {
|
13
|
+
currency: 'CNY',
|
14
|
+
input: 5,
|
15
|
+
output: 5,
|
16
|
+
},
|
17
|
+
type: 'chat',
|
18
|
+
},
|
19
|
+
{
|
20
|
+
abilities: {
|
21
|
+
functionCall: true,
|
22
|
+
},
|
23
|
+
contextWindowTokens: 8192,
|
24
|
+
description:
|
25
|
+
'360GPT Pro 作为 360 AI 模型系列的重要成员,以高效的文本处理能力满足多样化的自然语言应用场景,支持长文本理解和多轮对话等功能。',
|
26
|
+
displayName: '360GPT Pro',
|
27
|
+
enabled: true,
|
28
|
+
id: '360gpt-pro',
|
29
|
+
maxOutput: 7000,
|
30
|
+
pricing: {
|
31
|
+
currency: 'CNY',
|
32
|
+
input: 5,
|
33
|
+
output: 5,
|
34
|
+
},
|
35
|
+
type: 'chat',
|
36
|
+
},
|
37
|
+
{
|
38
|
+
contextWindowTokens: 8192,
|
39
|
+
description:
|
40
|
+
'360GPT Turbo 提供强大的计算和对话能力,具备出色的语义理解和生成效率,是企业和开发者理想的智能助理解决方案。',
|
41
|
+
displayName: '360GPT Turbo',
|
42
|
+
enabled: true,
|
43
|
+
id: '360gpt-turbo',
|
44
|
+
maxOutput: 7000,
|
45
|
+
pricing: {
|
46
|
+
currency: 'CNY',
|
47
|
+
input: 2,
|
48
|
+
output: 2,
|
49
|
+
},
|
50
|
+
type: 'chat',
|
51
|
+
},
|
52
|
+
{
|
53
|
+
contextWindowTokens: 8192,
|
54
|
+
description:
|
55
|
+
'360GPT Turbo Responsibility 8K 强调语义安全和责任导向,专为对内容安全有高度要求的应用场景设计,确保用户体验的准确性与稳健性。',
|
56
|
+
displayName: '360GPT Turbo Responsibility 8K',
|
57
|
+
enabled: true,
|
58
|
+
id: '360gpt-turbo-responsibility-8k',
|
59
|
+
maxOutput: 2048,
|
60
|
+
pricing: {
|
61
|
+
currency: 'CNY',
|
62
|
+
input: 2,
|
63
|
+
output: 2,
|
64
|
+
},
|
65
|
+
type: 'chat',
|
66
|
+
},
|
67
|
+
];
|
68
|
+
|
69
|
+
export const allModels = [...ai360ChatModels];
|
70
|
+
|
71
|
+
export default allModels;
|
@@ -0,0 +1,152 @@
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
2
|
+
|
3
|
+
const anthropicChatModels: AIChatModelCard[] = [
|
4
|
+
{
|
5
|
+
abilities: {
|
6
|
+
functionCall: true,
|
7
|
+
},
|
8
|
+
contextWindowTokens: 200_000,
|
9
|
+
description:
|
10
|
+
'Claude 3.5 Haiku 是 Anthropic 最快的下一代模型。与 Claude 3 Haiku 相比,Claude 3.5 Haiku 在各项技能上都有所提升,并在许多智力基准测试中超越了上一代最大的模型 Claude 3 Opus。',
|
11
|
+
displayName: 'Claude 3.5 Haiku',
|
12
|
+
enabled: true,
|
13
|
+
id: 'claude-3-5-haiku-20241022',
|
14
|
+
maxOutput: 8192,
|
15
|
+
pricing: {
|
16
|
+
cachedInput: 0.1,
|
17
|
+
input: 1,
|
18
|
+
output: 5,
|
19
|
+
writeCacheInput: 1.25,
|
20
|
+
},
|
21
|
+
releasedAt: '2024-11-05',
|
22
|
+
type: 'chat',
|
23
|
+
},
|
24
|
+
{
|
25
|
+
abilities: {
|
26
|
+
functionCall: true,
|
27
|
+
vision: true,
|
28
|
+
},
|
29
|
+
contextWindowTokens: 200_000,
|
30
|
+
description:
|
31
|
+
'Claude 3.5 Sonnet 提供了超越 Opus 的能力和比 Sonnet 更快的速度,同时保持与 Sonnet 相同的价格。Sonnet 特别擅长编程、数据科学、视觉处理、代理任务。',
|
32
|
+
displayName: 'Claude 3.5 Sonnet',
|
33
|
+
enabled: true,
|
34
|
+
id: 'claude-3-5-sonnet-20241022',
|
35
|
+
maxOutput: 8192,
|
36
|
+
pricing: {
|
37
|
+
cachedInput: 0.3,
|
38
|
+
input: 3,
|
39
|
+
output: 15,
|
40
|
+
writeCacheInput: 3.75,
|
41
|
+
},
|
42
|
+
releasedAt: '2024-10-22',
|
43
|
+
type: 'chat',
|
44
|
+
},
|
45
|
+
{
|
46
|
+
abilities: {
|
47
|
+
functionCall: true,
|
48
|
+
vision: true,
|
49
|
+
},
|
50
|
+
contextWindowTokens: 200_000,
|
51
|
+
description:
|
52
|
+
'Claude 3.5 Sonnet 提供了超越 Opus 的能力和比 Sonnet 更快的速度,同时保持与 Sonnet 相同的价格。Sonnet 特别擅长编程、数据科学、视觉处理、代理任务。',
|
53
|
+
displayName: 'Claude 3.5 Sonnet 0620',
|
54
|
+
id: 'claude-3-5-sonnet-20240620',
|
55
|
+
maxOutput: 8192,
|
56
|
+
pricing: {
|
57
|
+
cachedInput: 0.3,
|
58
|
+
input: 3,
|
59
|
+
output: 15,
|
60
|
+
writeCacheInput: 3.75,
|
61
|
+
},
|
62
|
+
releasedAt: '2024-06-20',
|
63
|
+
type: 'chat',
|
64
|
+
},
|
65
|
+
{
|
66
|
+
abilities: {
|
67
|
+
functionCall: true,
|
68
|
+
vision: true,
|
69
|
+
},
|
70
|
+
contextWindowTokens: 200_000,
|
71
|
+
description:
|
72
|
+
'Claude 3 Haiku 是 Anthropic 的最快且最紧凑的模型,旨在实现近乎即时的响应。它具有快速且准确的定向性能。',
|
73
|
+
displayName: 'Claude 3 Haiku',
|
74
|
+
id: 'claude-3-haiku-20240307',
|
75
|
+
maxOutput: 4096,
|
76
|
+
pricing: {
|
77
|
+
input: 0.25,
|
78
|
+
output: 1.25,
|
79
|
+
},
|
80
|
+
releasedAt: '2024-03-07',
|
81
|
+
type: 'chat',
|
82
|
+
},
|
83
|
+
{
|
84
|
+
abilities: {
|
85
|
+
functionCall: true,
|
86
|
+
vision: true,
|
87
|
+
},
|
88
|
+
contextWindowTokens: 200_000,
|
89
|
+
description:
|
90
|
+
'Claude 3 Sonnet 在智能和速度方面为企业工作负载提供了理想的平衡。它以更低的价格提供最大效用,可靠且适合大规模部署。',
|
91
|
+
displayName: 'Claude 3 Sonnet',
|
92
|
+
id: 'claude-3-sonnet-20240229',
|
93
|
+
maxOutput: 4096,
|
94
|
+
pricing: {
|
95
|
+
input: 3,
|
96
|
+
output: 15,
|
97
|
+
},
|
98
|
+
releasedAt: '2024-02-29',
|
99
|
+
type: 'chat',
|
100
|
+
},
|
101
|
+
{
|
102
|
+
abilities: {
|
103
|
+
functionCall: true,
|
104
|
+
vision: true,
|
105
|
+
},
|
106
|
+
contextWindowTokens: 200_000,
|
107
|
+
description:
|
108
|
+
'Claude 3 Opus 是 Anthropic 用于处理高度复杂任务的最强大模型。它在性能、智能、流畅性和理解力方面表现卓越。',
|
109
|
+
displayName: 'Claude 3 Opus',
|
110
|
+
enabled: true,
|
111
|
+
id: 'claude-3-opus-20240229',
|
112
|
+
maxOutput: 4096,
|
113
|
+
pricing: {
|
114
|
+
input: 15,
|
115
|
+
output: 75,
|
116
|
+
},
|
117
|
+
releasedAt: '2024-02-29',
|
118
|
+
type: 'chat',
|
119
|
+
},
|
120
|
+
{
|
121
|
+
contextWindowTokens: 200_000,
|
122
|
+
description:
|
123
|
+
'Claude 2 为企业提供了关键能力的进步,包括业界领先的 200K token 上下文、大幅降低模型幻觉的发生率、系统提示以及一个新的测试功能:工具调用。',
|
124
|
+
displayName: 'Claude 2.1',
|
125
|
+
id: 'claude-2.1',
|
126
|
+
maxOutput: 4096,
|
127
|
+
pricing: {
|
128
|
+
input: 8,
|
129
|
+
output: 24,
|
130
|
+
},
|
131
|
+
releasedAt: '2023-11-21',
|
132
|
+
type: 'chat',
|
133
|
+
},
|
134
|
+
{
|
135
|
+
contextWindowTokens: 100_000,
|
136
|
+
description:
|
137
|
+
'Claude 2 为企业提供了关键能力的进步,包括业界领先的 200K token 上下文、大幅降低模型幻觉的发生率、系统提示以及一个新的测试功能:工具调用。',
|
138
|
+
displayName: 'Claude 2.0',
|
139
|
+
id: 'claude-2.0',
|
140
|
+
maxOutput: 4096,
|
141
|
+
pricing: {
|
142
|
+
input: 8,
|
143
|
+
output: 24,
|
144
|
+
},
|
145
|
+
releasedAt: '2023-07-11',
|
146
|
+
type: 'chat',
|
147
|
+
},
|
148
|
+
];
|
149
|
+
|
150
|
+
export const allModels = [...anthropicChatModels];
|
151
|
+
|
152
|
+
export default allModels;
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
2
|
+
|
3
|
+
const azureChatModels: AIChatModelCard[] = [
|
4
|
+
{
|
5
|
+
abilities: {
|
6
|
+
functionCall: true,
|
7
|
+
},
|
8
|
+
config: {
|
9
|
+
deploymentName: 'gpt-35-turbo',
|
10
|
+
},
|
11
|
+
contextWindowTokens: 16_385,
|
12
|
+
description:
|
13
|
+
'GPT 3.5 Turbo,OpenAI提供的高效模型,适用于聊天和文本生成任务,支持并行函数调用。',
|
14
|
+
displayName: 'GPT 3.5 Turbo',
|
15
|
+
enabled: true,
|
16
|
+
id: 'gpt-3.5-turbo',
|
17
|
+
maxOutput: 4096,
|
18
|
+
type: 'chat',
|
19
|
+
},
|
20
|
+
{
|
21
|
+
abilities: {
|
22
|
+
functionCall: true,
|
23
|
+
},
|
24
|
+
config: {
|
25
|
+
deploymentName: 'gpt-35-turbo-16k',
|
26
|
+
},
|
27
|
+
contextWindowTokens: 16_384,
|
28
|
+
description: 'GPT 3.5 Turbo 16k,高容量文本生成模型,适合复杂任务。',
|
29
|
+
displayName: 'GPT 3.5 Turbo',
|
30
|
+
id: 'gpt-3.5-turbo-16k',
|
31
|
+
maxOutput: 4096,
|
32
|
+
type: 'chat',
|
33
|
+
},
|
34
|
+
{
|
35
|
+
abilities: {
|
36
|
+
functionCall: true,
|
37
|
+
vision: true,
|
38
|
+
},
|
39
|
+
config: {
|
40
|
+
deploymentName: 'gpt-4-turbo',
|
41
|
+
},
|
42
|
+
contextWindowTokens: 128_000,
|
43
|
+
description: 'GPT 4 Turbo,多模态模型,提供杰出的语言理解和生成能力,同时支持图像输入。',
|
44
|
+
displayName: 'GPT 4 Turbo',
|
45
|
+
enabled: true,
|
46
|
+
id: 'gpt-4',
|
47
|
+
maxOutput: 4096,
|
48
|
+
type: 'chat',
|
49
|
+
},
|
50
|
+
{
|
51
|
+
abilities: {
|
52
|
+
functionCall: true,
|
53
|
+
vision: true,
|
54
|
+
},
|
55
|
+
config: {
|
56
|
+
deploymentName: 'gpt-4o-mini',
|
57
|
+
},
|
58
|
+
contextWindowTokens: 128_000,
|
59
|
+
description: 'GPT-4o Mini,小型高效模型,具备与GPT-4o相似的卓越性能。',
|
60
|
+
displayName: 'GPT 4o Mini',
|
61
|
+
enabled: true,
|
62
|
+
id: 'gpt-4o-mini',
|
63
|
+
maxOutput: 4096,
|
64
|
+
type: 'chat',
|
65
|
+
},
|
66
|
+
{
|
67
|
+
abilities: {
|
68
|
+
functionCall: true,
|
69
|
+
vision: true,
|
70
|
+
},
|
71
|
+
config: {
|
72
|
+
deploymentName: 'gpt-4o',
|
73
|
+
},
|
74
|
+
contextWindowTokens: 128_000,
|
75
|
+
description: 'GPT-4o 是最新的多模态模型,结合高级文本和图像处理能力。',
|
76
|
+
displayName: 'GPT 4o',
|
77
|
+
enabled: true,
|
78
|
+
id: 'gpt-4o',
|
79
|
+
maxOutput: 4096,
|
80
|
+
type: 'chat',
|
81
|
+
},
|
82
|
+
];
|
83
|
+
|
84
|
+
export const allModels = [...azureChatModels];
|
85
|
+
|
86
|
+
export default allModels;
|
@@ -0,0 +1,107 @@
|
|
1
|
+
import { AIChatModelCard } from '@/types/aiModel';
|
2
|
+
|
3
|
+
const baichuanChatModels: AIChatModelCard[] = [
|
4
|
+
{
|
5
|
+
abilities: {
|
6
|
+
functionCall: true,
|
7
|
+
},
|
8
|
+
contextWindowTokens: 32_768,
|
9
|
+
description:
|
10
|
+
'模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
|
11
|
+
displayName: 'Baichuan 4',
|
12
|
+
enabled: true,
|
13
|
+
id: 'Baichuan4',
|
14
|
+
maxOutput: 4096,
|
15
|
+
pricing: {
|
16
|
+
currency: 'CNY',
|
17
|
+
input: 100,
|
18
|
+
output: 100,
|
19
|
+
},
|
20
|
+
type: 'chat',
|
21
|
+
},
|
22
|
+
{
|
23
|
+
abilities: {
|
24
|
+
functionCall: true,
|
25
|
+
},
|
26
|
+
contextWindowTokens: 32_768,
|
27
|
+
description:
|
28
|
+
'模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
|
29
|
+
displayName: 'Baichuan 4 Turbo',
|
30
|
+
enabled: true,
|
31
|
+
id: 'Baichuan4-Turbo',
|
32
|
+
maxOutput: 4096,
|
33
|
+
pricing: {
|
34
|
+
currency: 'CNY',
|
35
|
+
input: 15,
|
36
|
+
output: 15,
|
37
|
+
},
|
38
|
+
type: 'chat',
|
39
|
+
},
|
40
|
+
{
|
41
|
+
abilities: {
|
42
|
+
functionCall: true,
|
43
|
+
},
|
44
|
+
contextWindowTokens: 32_768,
|
45
|
+
description:
|
46
|
+
'模型能力国内第一,在知识百科、长文本、生成创作等中文任务上超越国外主流模型。还具备行业领先的多模态能力,多项权威评测基准表现优异。',
|
47
|
+
displayName: 'Baichuan 4 Air',
|
48
|
+
enabled: true,
|
49
|
+
id: 'Baichuan4-Air',
|
50
|
+
maxOutput: 4096,
|
51
|
+
pricing: {
|
52
|
+
currency: 'CNY',
|
53
|
+
input: 0.98,
|
54
|
+
output: 0.98,
|
55
|
+
},
|
56
|
+
type: 'chat',
|
57
|
+
},
|
58
|
+
{
|
59
|
+
abilities: {
|
60
|
+
functionCall: true,
|
61
|
+
},
|
62
|
+
contextWindowTokens: 32_768,
|
63
|
+
description:
|
64
|
+
'针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
|
65
|
+
displayName: 'Baichuan 3 Turbo',
|
66
|
+
id: 'Baichuan3-Turbo',
|
67
|
+
maxOutput: 8192,
|
68
|
+
pricing: {
|
69
|
+
currency: 'CNY',
|
70
|
+
input: 12,
|
71
|
+
output: 12,
|
72
|
+
},
|
73
|
+
type: 'chat',
|
74
|
+
},
|
75
|
+
{
|
76
|
+
contextWindowTokens: 128_000,
|
77
|
+
description:
|
78
|
+
'具备 128K 超长上下文窗口,针对企业高频场景优化,效果大幅提升,高性价比。相对于Baichuan2模型,内容创作提升20%,知识问答提升17%, 角色扮演能力提升40%。整体效果比GPT3.5更优。',
|
79
|
+
displayName: 'Baichuan 3 Turbo 128k',
|
80
|
+
id: 'Baichuan3-Turbo-128k',
|
81
|
+
maxOutput: 4096,
|
82
|
+
pricing: {
|
83
|
+
currency: 'CNY',
|
84
|
+
input: 24,
|
85
|
+
output: 24,
|
86
|
+
},
|
87
|
+
type: 'chat',
|
88
|
+
},
|
89
|
+
{
|
90
|
+
contextWindowTokens: 32_768,
|
91
|
+
description:
|
92
|
+
'采用搜索增强技术实现大模型与领域知识、全网知识的全面链接。支持PDF、Word等多种文档上传及网址输入,信息获取及时、全面,输出结果准确、专业。',
|
93
|
+
displayName: 'Baichuan 2 Turbo',
|
94
|
+
id: 'Baichuan2-Turbo',
|
95
|
+
maxOutput: 8192,
|
96
|
+
pricing: {
|
97
|
+
currency: 'CNY',
|
98
|
+
input: 8,
|
99
|
+
output: 8,
|
100
|
+
},
|
101
|
+
type: 'chat',
|
102
|
+
},
|
103
|
+
];
|
104
|
+
|
105
|
+
export const allModels = [...baichuanChatModels];
|
106
|
+
|
107
|
+
export default allModels;
|