@lobehub/chat 0.122.9 → 0.123.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/.env.example +22 -2
- package/.eslintrc.js +1 -0
- package/CHANGELOG.md +25 -0
- package/README.md +11 -9
- package/README.zh-CN.md +11 -9
- package/docs/Deployment/Environment-Variable.md +65 -23
- package/docs/Deployment/Environment-Variable.zh-CN.md +64 -22
- package/locales/ar/chat.json +12 -1
- package/locales/ar/common.json +16 -0
- package/locales/ar/error.json +35 -6
- package/locales/ar/setting.json +53 -6
- package/locales/de-DE/chat.json +12 -1
- package/locales/de-DE/common.json +16 -0
- package/locales/de-DE/error.json +35 -6
- package/locales/de-DE/setting.json +53 -6
- package/locales/en-US/chat.json +13 -2
- package/locales/en-US/common.json +16 -0
- package/locales/en-US/error.json +35 -6
- package/locales/en-US/setting.json +53 -6
- package/locales/es-ES/chat.json +12 -1
- package/locales/es-ES/common.json +16 -0
- package/locales/es-ES/error.json +35 -6
- package/locales/es-ES/setting.json +53 -6
- package/locales/fr-FR/chat.json +13 -2
- package/locales/fr-FR/common.json +16 -0
- package/locales/fr-FR/error.json +35 -6
- package/locales/fr-FR/setting.json +53 -6
- package/locales/it-IT/chat.json +12 -1
- package/locales/it-IT/common.json +16 -0
- package/locales/it-IT/error.json +35 -6
- package/locales/it-IT/setting.json +53 -6
- package/locales/ja-JP/chat.json +12 -1
- package/locales/ja-JP/common.json +16 -0
- package/locales/ja-JP/error.json +35 -6
- package/locales/ja-JP/setting.json +53 -6
- package/locales/ko-KR/chat.json +12 -1
- package/locales/ko-KR/common.json +16 -0
- package/locales/ko-KR/error.json +35 -6
- package/locales/ko-KR/setting.json +53 -6
- package/locales/nl-NL/chat.json +12 -1
- package/locales/nl-NL/common.json +16 -0
- package/locales/nl-NL/error.json +35 -6
- package/locales/nl-NL/setting.json +53 -6
- package/locales/pl-PL/chat.json +12 -1
- package/locales/pl-PL/common.json +16 -0
- package/locales/pl-PL/error.json +35 -6
- package/locales/pl-PL/setting.json +53 -6
- package/locales/pt-BR/chat.json +12 -1
- package/locales/pt-BR/common.json +16 -0
- package/locales/pt-BR/error.json +35 -6
- package/locales/pt-BR/setting.json +53 -6
- package/locales/ru-RU/chat.json +12 -1
- package/locales/ru-RU/common.json +16 -0
- package/locales/ru-RU/error.json +35 -6
- package/locales/ru-RU/setting.json +53 -6
- package/locales/tr-TR/chat.json +12 -1
- package/locales/tr-TR/common.json +16 -0
- package/locales/tr-TR/error.json +35 -6
- package/locales/tr-TR/setting.json +53 -6
- package/locales/vi-VN/chat.json +12 -1
- package/locales/vi-VN/common.json +16 -0
- package/locales/vi-VN/error.json +35 -6
- package/locales/vi-VN/setting.json +53 -6
- package/locales/zh-CN/chat.json +12 -1
- package/locales/zh-CN/common.json +16 -0
- package/locales/zh-CN/error.json +34 -5
- package/locales/zh-CN/setting.json +59 -12
- package/locales/zh-TW/chat.json +12 -1
- package/locales/zh-TW/common.json +16 -0
- package/locales/zh-TW/error.json +35 -6
- package/locales/zh-TW/setting.json +53 -6
- package/next.config.mjs +8 -2
- package/package.json +8 -1
- package/src/app/api/chat/[provider]/agentRuntime.ts +129 -0
- package/src/app/api/chat/[provider]/route.ts +64 -0
- package/src/app/api/chat/auth.ts +42 -0
- package/src/app/api/chat/google/route.ts +86 -0
- package/src/app/api/config/route.ts +6 -1
- package/src/app/api/config.ts +3 -3
- package/src/app/api/errorResponse.test.ts +8 -8
- package/src/app/api/errorResponse.ts +43 -6
- package/src/app/api/openai/createBizOpenAI/createAzureOpenai.ts +1 -1
- package/src/app/api/openai/createBizOpenAI/createOpenai.ts +1 -1
- package/src/app/api/openai/createBizOpenAI/index.ts +2 -2
- package/src/app/chat/(desktop)/features/ChatHeader.tsx +6 -4
- package/src/app/chat/(desktop)/features/ChatInput/Footer/index.tsx +13 -3
- package/src/app/chat/(desktop)/features/ChatInput/Header/index.tsx +16 -24
- package/src/app/chat/(desktop)/features/SideBar/index.tsx +1 -0
- package/src/app/chat/features/ChatHeader/ShareButton/Preview.tsx +3 -3
- package/src/app/chat/features/SessionListContent/List/Item/index.tsx +2 -3
- package/src/app/settings/llm/Azure/index.tsx +145 -0
- package/src/app/settings/llm/Bedrock/index.tsx +109 -0
- package/src/app/settings/llm/{LLM/Checker.tsx → Checker.tsx} +11 -14
- package/src/app/settings/llm/Google/index.tsx +74 -0
- package/src/app/settings/llm/{LLM → OpenAI}/index.tsx +26 -44
- package/src/app/settings/llm/Zhipu/index.tsx +78 -0
- package/src/app/settings/llm/const.ts +13 -0
- package/src/app/settings/llm/page.tsx +42 -2
- package/src/app/settings/llm/useSyncSettings.ts +23 -0
- package/src/chains/__tests__/langDetect.test.ts +2 -2
- package/src/chains/__tests__/pickEmoji.test.ts +2 -2
- package/src/chains/langDetect.ts +2 -2
- package/src/chains/pickEmoji.ts +2 -2
- package/src/chains/summaryAgentName.ts +2 -2
- package/src/chains/summaryDescription.ts +2 -2
- package/src/chains/summaryTags.ts +2 -2
- package/src/chains/summaryTitle.ts +2 -2
- package/src/chains/translate.ts +2 -2
- package/src/components/ModelIcon/index.tsx +37 -0
- package/src/components/ModelProviderIcon/index.tsx +44 -0
- package/src/components/ModelSelect/index.tsx +133 -0
- package/src/components/ModelTag/ModelIcon.tsx +35 -0
- package/src/components/ModelTag/index.tsx +13 -0
- package/src/config/modelProviders/bedrock.ts +43 -0
- package/src/config/modelProviders/google.ts +20 -0
- package/src/config/modelProviders/index.ts +18 -0
- package/src/config/modelProviders/openai.ts +102 -0
- package/src/config/modelProviders/zhipu.ts +34 -0
- package/src/config/{server.ts → server/app.ts} +1 -24
- package/src/config/server/index.ts +13 -0
- package/src/config/server/provider.ts +78 -0
- package/src/const/auth.ts +30 -0
- package/src/const/fetch.ts +3 -0
- package/src/const/settings.ts +24 -4
- package/src/database/core/migrations/migrateSettingsToUser/index.test.ts +2 -1
- package/src/database/core/migrations/migrateSettingsToUser/index.ts +1 -18
- package/src/database/core/migrations/migrateSettingsToUser/type.ts +100 -0
- package/src/database/models/message.ts +3 -1
- package/src/database/schemas/message.ts +1 -0
- package/src/database/schemas/session.ts +1 -0
- package/src/features/AgentSetting/AgentConfig/ModelSelect.tsx +71 -0
- package/src/features/AgentSetting/AgentConfig/index.tsx +171 -161
- package/src/features/AgentSetting/AgentConfig/useSyncConfig.ts +23 -0
- package/src/features/AgentSetting/AgentPrompt/TokenTag.tsx +39 -0
- package/src/features/AgentSetting/AgentPrompt/index.tsx +4 -26
- package/src/features/AgentSetting/store/index.ts +10 -2
- package/src/features/ChatInput/ActionBar/FileUpload.tsx +11 -4
- package/src/features/ChatInput/ActionBar/ModelSwitch.tsx +56 -14
- package/src/features/ChatInput/ActionBar/Token/TokenTag.tsx +42 -7
- package/src/features/ChatInput/ActionBar/Token/index.tsx +5 -2
- package/src/features/ChatInput/ActionBar/Tools/index.tsx +11 -1
- package/src/features/ChatInput/useChatInput.ts +5 -1
- package/src/features/Conversation/Error/APIKeyForm/Bedrock.tsx +80 -0
- package/src/features/Conversation/Error/APIKeyForm/Google.tsx +61 -0
- package/src/features/Conversation/Error/APIKeyForm/OpenAI.tsx +63 -0
- package/src/features/Conversation/Error/APIKeyForm/Zhipu.tsx +62 -0
- package/src/features/Conversation/Error/APIKeyForm/index.tsx +72 -0
- package/src/features/Conversation/Error/AccessCodeForm.tsx +63 -0
- package/src/features/Conversation/Error/ErrorJsonViewer.tsx +26 -0
- package/src/features/Conversation/Error/InvalidAPIKey.tsx +16 -0
- package/src/features/Conversation/Error/InvalidAccessCode.tsx +50 -0
- package/src/features/Conversation/Error/OpenAiBizError.tsx +9 -17
- package/src/features/Conversation/Error/{Plugin/PluginSettings.tsx → PluginSettings.tsx} +8 -3
- package/src/features/Conversation/Error/index.tsx +75 -70
- package/src/features/Conversation/Error/style.tsx +9 -3
- package/src/features/Conversation/Extras/Assistant.tsx +2 -3
- package/src/features/Conversation/Plugins/Inspector/index.tsx +8 -2
- package/src/features/Conversation/components/ChatItem/index.tsx +9 -24
- package/src/features/Conversation/types/index.tsx +2 -5
- package/src/hooks/_header.ts +35 -0
- package/src/libs/agent-runtime/BaseAI.ts +9 -0
- package/src/libs/agent-runtime/azureOpenai/index.ts +72 -0
- package/src/libs/agent-runtime/bedrock/index.ts +134 -0
- package/src/libs/agent-runtime/error.ts +26 -0
- package/src/libs/agent-runtime/google/index.ts +160 -0
- package/src/libs/agent-runtime/index.ts +9 -0
- package/src/libs/agent-runtime/openai/index.test.ts +176 -0
- package/src/libs/agent-runtime/openai/index.ts +107 -0
- package/src/libs/agent-runtime/types/chat.ts +119 -0
- package/src/libs/agent-runtime/types/index.ts +2 -0
- package/src/libs/agent-runtime/types/type.ts +34 -0
- package/src/libs/agent-runtime/utils/createError.ts +10 -0
- package/src/libs/agent-runtime/utils/debugStream.ts +18 -0
- package/src/libs/agent-runtime/utils/env.ts +1 -0
- package/src/libs/agent-runtime/utils/handleOpenAIError.ts +39 -0
- package/src/libs/agent-runtime/utils/uriParser.ts +16 -0
- package/src/libs/agent-runtime/zhipu/authToken.ts +22 -0
- package/src/libs/agent-runtime/zhipu/index.ts +125 -0
- package/src/locales/default/chat.ts +12 -2
- package/src/locales/default/common.ts +16 -0
- package/src/locales/default/error.ts +42 -5
- package/src/locales/default/setting.ts +61 -12
- package/src/services/__tests__/chat.test.ts +8 -2
- package/src/services/__tests__/message.test.ts +1 -1
- package/src/services/_auth.ts +106 -0
- package/src/services/_header.ts +1 -0
- package/src/services/_url.ts +0 -2
- package/src/services/chat.ts +32 -14
- package/src/store/chat/slices/message/action.ts +9 -6
- package/src/store/global/slices/common/action.ts +8 -2
- package/src/store/global/slices/settings/action.test.ts +2 -2
- package/src/store/global/slices/settings/action.ts +11 -4
- package/src/store/global/slices/settings/selectors/__snapshots__/modelProvider.test.ts.snap +242 -78
- package/src/store/global/slices/settings/selectors/__snapshots__/selectors.test.ts.snap +2 -0
- package/src/store/global/slices/settings/selectors/modelProvider.test.ts +171 -47
- package/src/store/global/slices/settings/selectors/modelProvider.ts +136 -43
- package/src/store/session/slices/agent/selectors.test.ts +0 -48
- package/src/store/session/slices/agent/selectors.ts +7 -12
- package/src/types/agent/index.ts +6 -2
- package/src/types/fetch.ts +4 -2
- package/src/types/files.ts +3 -3
- package/src/types/llm.ts +27 -0
- package/src/types/message/index.ts +7 -3
- package/src/types/openai/chat.ts +6 -11
- package/src/types/settings/index.ts +1 -0
- package/src/types/settings/modelProvider.ts +37 -1
- package/src/utils/__snapshots__/parseModels.test.ts.snap +63 -0
- package/src/utils/parseModels.test.ts +24 -0
- package/src/utils/parseModels.ts +37 -0
- package/src/app/api/openai/chat/createChatCompletion.test.ts +0 -166
- package/src/app/api/openai/chat/createChatCompletion.ts +0 -76
- package/src/app/api/openai/chat/route.ts +0 -19
- package/src/app/api/openai/models/route.ts +0 -17
- package/src/app/settings/llm/LLM/ModelList.tsx +0 -51
- package/src/app/settings/llm/LLM/getModelList.ts +0 -9
- package/src/app/settings/llm/index.tsx +0 -36
- package/src/const/llm.ts +0 -32
- package/src/features/Conversation/Error/ApiKeyForm.tsx +0 -87
- package/src/features/Conversation/Error/ErrorActionContainer.tsx +0 -23
- package/src/features/Conversation/Error/InvalidAccess.tsx +0 -90
- package/src/features/Conversation/Error/OpenAPIKey.tsx +0 -13
- package/src/features/Conversation/Error/Plugin/PluginError.tsx +0 -30
- package/src/services/modelList.ts +0 -15
- /package/src/app/chat/(desktop)/features/ChatInput/{Header → Footer}/DragUpload.tsx +0 -0
- /package/src/{app/api/openai/chat → libs/agent-runtime/utils}/desensitizeUrl.test.ts +0 -0
- /package/src/{app/api/openai/chat → libs/agent-runtime/utils}/desensitizeUrl.ts +0 -0
- /package/src/types/{translate.ts → message/translate.ts} +0 -0
|
@@ -1,17 +1,22 @@
|
|
|
1
1
|
import { TokenTag, Tooltip } from '@lobehub/ui';
|
|
2
|
+
import numeral from 'numeral';
|
|
2
3
|
import { memo } from 'react';
|
|
3
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { Flexbox } from 'react-layout-kit';
|
|
4
6
|
|
|
5
|
-
import { ModelTokens } from '@/const/llm';
|
|
6
7
|
import { useTokenCount } from '@/hooks/useTokenCount';
|
|
7
8
|
import { useChatStore } from '@/store/chat';
|
|
8
9
|
import { chatSelectors } from '@/store/chat/selectors';
|
|
10
|
+
import { useGlobalStore } from '@/store/global';
|
|
11
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
9
12
|
import { useSessionStore } from '@/store/session';
|
|
10
13
|
import { agentSelectors } from '@/store/session/selectors';
|
|
11
14
|
import { useToolStore } from '@/store/tool';
|
|
12
15
|
import { toolSelectors } from '@/store/tool/selectors';
|
|
13
16
|
import { LanguageModel } from '@/types/llm';
|
|
14
17
|
|
|
18
|
+
const format = (number: number) => numeral(number).format('0,0');
|
|
19
|
+
|
|
15
20
|
const Token = memo(() => {
|
|
16
21
|
const { t } = useTranslation('chat');
|
|
17
22
|
|
|
@@ -25,6 +30,8 @@ const Token = memo(() => {
|
|
|
25
30
|
agentSelectors.currentAgentModel(s) as LanguageModel,
|
|
26
31
|
]);
|
|
27
32
|
|
|
33
|
+
const tokens = useGlobalStore(modelProviderSelectors.modelMaxToken(model));
|
|
34
|
+
|
|
28
35
|
const plugins = useSessionStore(agentSelectors.currentAgentPlugins);
|
|
29
36
|
|
|
30
37
|
const toolsString = useToolStore((s) => {
|
|
@@ -38,26 +45,54 @@ const Token = memo(() => {
|
|
|
38
45
|
});
|
|
39
46
|
|
|
40
47
|
const inputTokenCount = useTokenCount(input);
|
|
48
|
+
const chatsToken = useTokenCount(messageString) + inputTokenCount;
|
|
41
49
|
|
|
42
|
-
const systemRoleToken = useTokenCount(systemRole);
|
|
43
|
-
const chatsToken = useTokenCount(messageString);
|
|
44
50
|
const toolsToken = useTokenCount(toolsString);
|
|
51
|
+
const systemRoleToken = useTokenCount(systemRole);
|
|
45
52
|
|
|
46
|
-
const totalToken = systemRoleToken +
|
|
53
|
+
const totalToken = systemRoleToken + toolsToken + chatsToken;
|
|
47
54
|
return (
|
|
48
55
|
<Tooltip
|
|
49
56
|
placement={'bottom'}
|
|
50
|
-
title={
|
|
57
|
+
title={
|
|
58
|
+
<Flexbox width={150}>
|
|
59
|
+
<Flexbox horizontal justify={'space-between'}>
|
|
60
|
+
<span>{t('tokenDetails.systemRole')}</span>
|
|
61
|
+
<span>{format(systemRoleToken)}</span>
|
|
62
|
+
</Flexbox>
|
|
63
|
+
<Flexbox horizontal justify={'space-between'}>
|
|
64
|
+
<span>{t('tokenDetails.tools')}</span>
|
|
65
|
+
<span>{format(toolsToken)}</span>
|
|
66
|
+
</Flexbox>
|
|
67
|
+
<Flexbox horizontal justify={'space-between'}>
|
|
68
|
+
<span>{t('tokenDetails.chats')}</span>
|
|
69
|
+
<span>{format(chatsToken)}</span>
|
|
70
|
+
</Flexbox>
|
|
71
|
+
<Flexbox horizontal justify={'space-between'}>
|
|
72
|
+
<span>{t('tokenDetails.used')}</span>
|
|
73
|
+
<span>{format(totalToken)}</span>
|
|
74
|
+
</Flexbox>
|
|
75
|
+
<Flexbox horizontal justify={'space-between'} style={{ marginTop: 8 }}>
|
|
76
|
+
<span>{t('tokenDetails.total')}</span>
|
|
77
|
+
<span>{format(tokens)}</span>
|
|
78
|
+
</Flexbox>
|
|
79
|
+
<Flexbox horizontal justify={'space-between'}>
|
|
80
|
+
<span>{t('tokenDetails.rest')}</span>
|
|
81
|
+
<span>{format(tokens - totalToken)}</span>
|
|
82
|
+
</Flexbox>
|
|
83
|
+
</Flexbox>
|
|
84
|
+
}
|
|
51
85
|
>
|
|
52
86
|
<TokenTag
|
|
53
|
-
|
|
87
|
+
displayMode={'used'}
|
|
88
|
+
maxValue={tokens}
|
|
54
89
|
style={{ marginLeft: 8 }}
|
|
55
90
|
text={{
|
|
56
91
|
overload: t('tokenTag.overload'),
|
|
57
92
|
remained: t('tokenTag.remained'),
|
|
58
93
|
used: t('tokenTag.used'),
|
|
59
94
|
}}
|
|
60
|
-
value={totalToken
|
|
95
|
+
value={totalToken}
|
|
61
96
|
/>
|
|
62
97
|
</Tooltip>
|
|
63
98
|
);
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import dynamic from 'next/dynamic';
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
|
|
4
|
+
import { useGlobalStore } from '@/store/global';
|
|
5
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
4
6
|
import { useSessionStore } from '@/store/session';
|
|
5
7
|
import { agentSelectors } from '@/store/session/selectors';
|
|
6
8
|
|
|
7
9
|
const LargeTokenContent = dynamic(() => import('./TokenTag'), { ssr: false });
|
|
8
10
|
|
|
9
11
|
const Token = memo(() => {
|
|
10
|
-
const
|
|
12
|
+
const model = useSessionStore(agentSelectors.currentAgentModel);
|
|
13
|
+
const showTag = useGlobalStore(modelProviderSelectors.modelHasMaxToken(model));
|
|
11
14
|
|
|
12
|
-
return
|
|
15
|
+
return showTag && <LargeTokenContent />;
|
|
13
16
|
});
|
|
14
17
|
|
|
15
18
|
export default Token;
|
|
@@ -8,6 +8,8 @@ import { useTranslation } from 'react-i18next';
|
|
|
8
8
|
import { Flexbox } from 'react-layout-kit';
|
|
9
9
|
|
|
10
10
|
import PluginStore from '@/features/PluginStore';
|
|
11
|
+
import { useGlobalStore } from '@/store/global';
|
|
12
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
11
13
|
import { useSessionStore } from '@/store/session';
|
|
12
14
|
import { agentSelectors } from '@/store/session/selectors';
|
|
13
15
|
import { pluginHelpers, useToolStore } from '@/store/tool';
|
|
@@ -43,6 +45,9 @@ const Tools = memo(() => {
|
|
|
43
45
|
const [open, setOpen] = useState(false);
|
|
44
46
|
const { styles } = useStyles();
|
|
45
47
|
|
|
48
|
+
const model = useSessionStore(agentSelectors.currentAgentModel);
|
|
49
|
+
const enableFC = useGlobalStore(modelProviderSelectors.modelEnabledFunctionCall(model));
|
|
50
|
+
|
|
46
51
|
return (
|
|
47
52
|
<>
|
|
48
53
|
<Dropdown
|
|
@@ -118,7 +123,12 @@ const Tools = memo(() => {
|
|
|
118
123
|
placement={'top'}
|
|
119
124
|
trigger={['click']}
|
|
120
125
|
>
|
|
121
|
-
<ActionIcon
|
|
126
|
+
<ActionIcon
|
|
127
|
+
disable={!enableFC}
|
|
128
|
+
icon={Blocks}
|
|
129
|
+
placement={'bottom'}
|
|
130
|
+
title={t(enableFC ? 'tools.title' : 'tools.disabled')}
|
|
131
|
+
/>
|
|
122
132
|
</Dropdown>
|
|
123
133
|
<PluginStore open={open} setOpen={setOpen} />
|
|
124
134
|
</>
|
|
@@ -2,6 +2,8 @@ import { TextAreaRef } from 'antd/es/input/TextArea';
|
|
|
2
2
|
import { useCallback, useRef, useState } from 'react';
|
|
3
3
|
|
|
4
4
|
import { useChatStore } from '@/store/chat';
|
|
5
|
+
import { useGlobalStore } from '@/store/global';
|
|
6
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
5
7
|
import { useSessionStore } from '@/store/session';
|
|
6
8
|
import { agentSelectors } from '@/store/session/selectors';
|
|
7
9
|
|
|
@@ -12,7 +14,9 @@ export const useChatInput = () => {
|
|
|
12
14
|
const [expand, setExpand] = useState<boolean>(false);
|
|
13
15
|
const onSend = useSendMessage();
|
|
14
16
|
|
|
15
|
-
const
|
|
17
|
+
const model = useSessionStore(agentSelectors.currentAgentModel);
|
|
18
|
+
const canUpload = useGlobalStore(modelProviderSelectors.modelEnabledVision(model));
|
|
19
|
+
|
|
16
20
|
const [loading, value, onInput, onStop] = useChatStore((s) => [
|
|
17
21
|
!!s.chatLoadingId,
|
|
18
22
|
s.inputMessage,
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { Aws } from '@lobehub/icons';
|
|
2
|
+
import { Icon } from '@lobehub/ui';
|
|
3
|
+
import { Button, Input, Select } from 'antd';
|
|
4
|
+
import { useTheme } from 'antd-style';
|
|
5
|
+
import { Network } from 'lucide-react';
|
|
6
|
+
import { memo, useState } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
|
|
9
|
+
import { ModelProvider } from '@/libs/agent-runtime';
|
|
10
|
+
import { useGlobalStore } from '@/store/global';
|
|
11
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
12
|
+
|
|
13
|
+
import { FormAction } from '../style';
|
|
14
|
+
|
|
15
|
+
const BedrockForm = memo(() => {
|
|
16
|
+
const { t } = useTranslation('error');
|
|
17
|
+
const [showRegion, setShow] = useState(false);
|
|
18
|
+
|
|
19
|
+
const [accessKeyId, secretAccessKey, region, setConfig] = useGlobalStore((s) => [
|
|
20
|
+
modelProviderSelectors.bedrockConfig(s).accessKeyId,
|
|
21
|
+
modelProviderSelectors.bedrockConfig(s).secretAccessKey,
|
|
22
|
+
modelProviderSelectors.bedrockConfig(s).region,
|
|
23
|
+
s.setModelProviderConfig,
|
|
24
|
+
]);
|
|
25
|
+
|
|
26
|
+
const theme = useTheme();
|
|
27
|
+
return (
|
|
28
|
+
<FormAction
|
|
29
|
+
avatar={<Aws.Color color={theme.colorText} size={56} />}
|
|
30
|
+
description={t('unlock.apikey.Bedrock.description')}
|
|
31
|
+
title={t('unlock.apikey.Bedrock.title')}
|
|
32
|
+
>
|
|
33
|
+
<Input.Password
|
|
34
|
+
autoComplete={'new-password'}
|
|
35
|
+
onChange={(e) => {
|
|
36
|
+
setConfig(ModelProvider.Bedrock, { accessKeyId: e.target.value });
|
|
37
|
+
}}
|
|
38
|
+
placeholder={'Aws Access Key Id'}
|
|
39
|
+
type={'block'}
|
|
40
|
+
value={accessKeyId}
|
|
41
|
+
/>
|
|
42
|
+
<Input.Password
|
|
43
|
+
autoComplete={'new-password'}
|
|
44
|
+
onChange={(e) => {
|
|
45
|
+
setConfig(ModelProvider.Bedrock, { secretAccessKey: e.target.value });
|
|
46
|
+
}}
|
|
47
|
+
placeholder={'Aws Secret Access Key'}
|
|
48
|
+
type={'block'}
|
|
49
|
+
value={secretAccessKey}
|
|
50
|
+
/>
|
|
51
|
+
{showRegion ? (
|
|
52
|
+
<Select
|
|
53
|
+
onChange={(region) => {
|
|
54
|
+
setConfig('bedrock', { region });
|
|
55
|
+
}}
|
|
56
|
+
options={['us-east-1', 'us-west-2', 'ap-southeast-1'].map((i) => ({
|
|
57
|
+
label: i,
|
|
58
|
+
value: i,
|
|
59
|
+
}))}
|
|
60
|
+
placeholder={'https://api.openai.com/v1'}
|
|
61
|
+
style={{ width: '100%' }}
|
|
62
|
+
value={region}
|
|
63
|
+
/>
|
|
64
|
+
) : (
|
|
65
|
+
<Button
|
|
66
|
+
block
|
|
67
|
+
icon={<Icon icon={Network} />}
|
|
68
|
+
onClick={() => {
|
|
69
|
+
setShow(true);
|
|
70
|
+
}}
|
|
71
|
+
type={'text'}
|
|
72
|
+
>
|
|
73
|
+
{t('unlock.apikey.Bedrock.customRegion')}
|
|
74
|
+
</Button>
|
|
75
|
+
)}
|
|
76
|
+
</FormAction>
|
|
77
|
+
);
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export default BedrockForm;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Google } from '@lobehub/icons';
|
|
2
|
+
import { Input } from 'antd';
|
|
3
|
+
import { memo } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
|
|
6
|
+
import { ModelProvider } from '@/libs/agent-runtime';
|
|
7
|
+
import { useGlobalStore } from '@/store/global';
|
|
8
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
9
|
+
|
|
10
|
+
import { FormAction } from '../style';
|
|
11
|
+
|
|
12
|
+
const GoogleForm = memo(() => {
|
|
13
|
+
const { t } = useTranslation('error');
|
|
14
|
+
// const [showProxy, setShow] = useState(false);
|
|
15
|
+
|
|
16
|
+
const [apiKey, setConfig] = useGlobalStore((s) => [
|
|
17
|
+
modelProviderSelectors.googleAPIKey(s),
|
|
18
|
+
// modelProviderSelectors.openAIProxyUrl(s),
|
|
19
|
+
s.setModelProviderConfig,
|
|
20
|
+
]);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<FormAction
|
|
24
|
+
avatar={<Google.Color size={56} />}
|
|
25
|
+
description={t('unlock.apikey.Google.description')}
|
|
26
|
+
title={t('unlock.apikey.Google.title')}
|
|
27
|
+
>
|
|
28
|
+
<Input.Password
|
|
29
|
+
autoComplete={'new-password'}
|
|
30
|
+
onChange={(e) => {
|
|
31
|
+
setConfig(ModelProvider.Google, { apiKey: e.target.value });
|
|
32
|
+
}}
|
|
33
|
+
placeholder={'*********************************'}
|
|
34
|
+
type={'block'}
|
|
35
|
+
value={apiKey}
|
|
36
|
+
/>
|
|
37
|
+
{/*{showProxy ? (*/}
|
|
38
|
+
{/* <Input*/}
|
|
39
|
+
{/* onChange={(e) => {*/}
|
|
40
|
+
{/* setConfig({ endpoint: e.target.value });*/}
|
|
41
|
+
{/* }}*/}
|
|
42
|
+
{/* placeholder={'https://api.openai.com/v1'}*/}
|
|
43
|
+
{/* type={'block'}*/}
|
|
44
|
+
{/* value={proxyUrl}*/}
|
|
45
|
+
{/* />*/}
|
|
46
|
+
{/*) : (*/}
|
|
47
|
+
{/* <Button*/}
|
|
48
|
+
{/* icon={<Icon icon={Network} />}*/}
|
|
49
|
+
{/* onClick={() => {*/}
|
|
50
|
+
{/* setShow(true);*/}
|
|
51
|
+
{/* }}*/}
|
|
52
|
+
{/* type={'text'}*/}
|
|
53
|
+
{/* >*/}
|
|
54
|
+
{/* {t('unlock.apikey.addProxyUrl')}*/}
|
|
55
|
+
{/* </Button>*/}
|
|
56
|
+
{/*)}*/}
|
|
57
|
+
</FormAction>
|
|
58
|
+
);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
export default GoogleForm;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { OpenAI } from '@lobehub/icons';
|
|
2
|
+
import { Icon } from '@lobehub/ui';
|
|
3
|
+
import { Button, Input } from 'antd';
|
|
4
|
+
import { useTheme } from 'antd-style';
|
|
5
|
+
import { Network } from 'lucide-react';
|
|
6
|
+
import { memo, useState } from 'react';
|
|
7
|
+
import { useTranslation } from 'react-i18next';
|
|
8
|
+
|
|
9
|
+
import { useGlobalStore } from '@/store/global';
|
|
10
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
11
|
+
|
|
12
|
+
import { FormAction } from '../style';
|
|
13
|
+
|
|
14
|
+
const OpenAIForm = memo(() => {
|
|
15
|
+
const { t } = useTranslation('error');
|
|
16
|
+
const [showProxy, setShow] = useState(false);
|
|
17
|
+
|
|
18
|
+
const [apiKey, proxyUrl, setConfig] = useGlobalStore((s) => [
|
|
19
|
+
modelProviderSelectors.openAIAPIKey(s),
|
|
20
|
+
modelProviderSelectors.openAIProxyUrl(s),
|
|
21
|
+
s.setModelProviderConfig,
|
|
22
|
+
]);
|
|
23
|
+
const theme = useTheme();
|
|
24
|
+
return (
|
|
25
|
+
<FormAction
|
|
26
|
+
avatar={<OpenAI color={theme.colorText} size={64} />}
|
|
27
|
+
description={t('unlock.apikey.OpenAI.description')}
|
|
28
|
+
title={t('unlock.apikey.OpenAI.title')}
|
|
29
|
+
>
|
|
30
|
+
<Input.Password
|
|
31
|
+
autoComplete={'new-password'}
|
|
32
|
+
onChange={(e) => {
|
|
33
|
+
setConfig('openAI', { OPENAI_API_KEY: e.target.value });
|
|
34
|
+
}}
|
|
35
|
+
placeholder={'sk-*****************************************'}
|
|
36
|
+
type={'block'}
|
|
37
|
+
value={apiKey}
|
|
38
|
+
/>
|
|
39
|
+
{showProxy ? (
|
|
40
|
+
<Input
|
|
41
|
+
onChange={(e) => {
|
|
42
|
+
setConfig('openAI', { endpoint: e.target.value });
|
|
43
|
+
}}
|
|
44
|
+
placeholder={'https://api.openai.com/v1'}
|
|
45
|
+
type={'block'}
|
|
46
|
+
value={proxyUrl}
|
|
47
|
+
/>
|
|
48
|
+
) : (
|
|
49
|
+
<Button
|
|
50
|
+
icon={<Icon icon={Network} />}
|
|
51
|
+
onClick={() => {
|
|
52
|
+
setShow(true);
|
|
53
|
+
}}
|
|
54
|
+
type={'text'}
|
|
55
|
+
>
|
|
56
|
+
{t('unlock.apikey.OpenAI.addProxyUrl')}
|
|
57
|
+
</Button>
|
|
58
|
+
)}
|
|
59
|
+
</FormAction>
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export default OpenAIForm;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Zhipu } from '@lobehub/icons';
|
|
2
|
+
import { Input } from 'antd';
|
|
3
|
+
import { rgba } from 'polished';
|
|
4
|
+
import { memo } from 'react';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
6
|
+
|
|
7
|
+
import { ModelProvider } from '@/libs/agent-runtime';
|
|
8
|
+
import { useGlobalStore } from '@/store/global';
|
|
9
|
+
import { modelProviderSelectors } from '@/store/global/selectors';
|
|
10
|
+
|
|
11
|
+
import { FormAction } from '../style';
|
|
12
|
+
|
|
13
|
+
const ZhipuForm = memo(() => {
|
|
14
|
+
const { t } = useTranslation('error');
|
|
15
|
+
|
|
16
|
+
const [apiKey, setConfig] = useGlobalStore((s) => [
|
|
17
|
+
modelProviderSelectors.zhipuAPIKey(s),
|
|
18
|
+
s.setModelProviderConfig,
|
|
19
|
+
// modelProviderSelectors.zhipuAPIKey(s),
|
|
20
|
+
]);
|
|
21
|
+
|
|
22
|
+
return (
|
|
23
|
+
<FormAction
|
|
24
|
+
avatar={<Zhipu.Color size={64} />}
|
|
25
|
+
background={rgba(Zhipu.colorPrimary, 0.1)}
|
|
26
|
+
description={t('unlock.apikey.Zhipu.description')}
|
|
27
|
+
title={t('unlock.apikey.Zhipu.title')}
|
|
28
|
+
>
|
|
29
|
+
<Input.Password
|
|
30
|
+
autoComplete={'new-password'}
|
|
31
|
+
onChange={(e) => {
|
|
32
|
+
setConfig(ModelProvider.ZhiPu, { apiKey: e.target.value });
|
|
33
|
+
}}
|
|
34
|
+
placeholder={'*************************.****************'}
|
|
35
|
+
type={'block'}
|
|
36
|
+
value={apiKey}
|
|
37
|
+
/>
|
|
38
|
+
{/*{showProxy ? (*/}
|
|
39
|
+
{/* <Input*/}
|
|
40
|
+
{/* onChange={(e) => {*/}
|
|
41
|
+
{/* setConfig({ endpoint: e.target.value });*/}
|
|
42
|
+
{/* }}*/}
|
|
43
|
+
{/* placeholder={'https://api.openai.com/v1'}*/}
|
|
44
|
+
{/* type={'block'}*/}
|
|
45
|
+
{/* value={proxyUrl}*/}
|
|
46
|
+
{/* />*/}
|
|
47
|
+
{/*) : (*/}
|
|
48
|
+
{/* <Button*/}
|
|
49
|
+
{/* icon={<Icon icon={Network} />}*/}
|
|
50
|
+
{/* onClick={() => {*/}
|
|
51
|
+
{/* setShow(true);*/}
|
|
52
|
+
{/* }}*/}
|
|
53
|
+
{/* type={'text'}*/}
|
|
54
|
+
{/* >*/}
|
|
55
|
+
{/* {t('unlock.apikey.addProxyUrl')}*/}
|
|
56
|
+
{/* </Button>*/}
|
|
57
|
+
{/*)}*/}
|
|
58
|
+
</FormAction>
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
|
|
62
|
+
export default ZhipuForm;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Button } from 'antd';
|
|
2
|
+
import { memo, useMemo } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { Center, Flexbox } from 'react-layout-kit';
|
|
5
|
+
|
|
6
|
+
import { ModelProvider } from '@/libs/agent-runtime';
|
|
7
|
+
import { useChatStore } from '@/store/chat';
|
|
8
|
+
|
|
9
|
+
import BedrockForm from './Bedrock';
|
|
10
|
+
import GoogleForm from './Google';
|
|
11
|
+
import OpenAIForm from './OpenAI';
|
|
12
|
+
import ZhipuForm from './Zhipu';
|
|
13
|
+
|
|
14
|
+
interface APIKeyFormProps {
|
|
15
|
+
id: string;
|
|
16
|
+
provider?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const APIKeyForm = memo<APIKeyFormProps>(({ id, provider }) => {
|
|
20
|
+
const { t } = useTranslation('error');
|
|
21
|
+
|
|
22
|
+
const [resend, deleteMessage] = useChatStore((s) => [s.resendMessage, s.deleteMessage]);
|
|
23
|
+
|
|
24
|
+
const action = useMemo(() => {
|
|
25
|
+
switch (provider as ModelProvider) {
|
|
26
|
+
case ModelProvider.Bedrock: {
|
|
27
|
+
return <BedrockForm />;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
case ModelProvider.Google: {
|
|
31
|
+
return <GoogleForm />;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
case ModelProvider.ZhiPu: {
|
|
35
|
+
return <ZhipuForm />;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
default:
|
|
39
|
+
case ModelProvider.OpenAI: {
|
|
40
|
+
return <OpenAIForm />;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}, [provider]);
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<Center gap={16} style={{ maxWidth: 300 }}>
|
|
47
|
+
{action}
|
|
48
|
+
<Flexbox gap={12} width={'100%'}>
|
|
49
|
+
<Button
|
|
50
|
+
block
|
|
51
|
+
onClick={() => {
|
|
52
|
+
resend(id);
|
|
53
|
+
deleteMessage(id);
|
|
54
|
+
}}
|
|
55
|
+
style={{ marginTop: 8 }}
|
|
56
|
+
type={'primary'}
|
|
57
|
+
>
|
|
58
|
+
{t('unlock.confirm')}
|
|
59
|
+
</Button>
|
|
60
|
+
<Button
|
|
61
|
+
onClick={() => {
|
|
62
|
+
deleteMessage(id);
|
|
63
|
+
}}
|
|
64
|
+
>
|
|
65
|
+
{t('unlock.closeMessage')}
|
|
66
|
+
</Button>
|
|
67
|
+
</Flexbox>
|
|
68
|
+
</Center>
|
|
69
|
+
);
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
export default APIKeyForm;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Button, Input } from 'antd';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import { useTranslation } from 'react-i18next';
|
|
4
|
+
import { Flexbox } from 'react-layout-kit';
|
|
5
|
+
|
|
6
|
+
import { useChatStore } from '@/store/chat';
|
|
7
|
+
import { useGlobalStore } from '@/store/global';
|
|
8
|
+
import { settingsSelectors } from '@/store/global/selectors';
|
|
9
|
+
|
|
10
|
+
import { FormAction } from './style';
|
|
11
|
+
|
|
12
|
+
interface AccessCodeFormProps {
|
|
13
|
+
id: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const AccessCodeForm = memo<AccessCodeFormProps>(({ id }) => {
|
|
17
|
+
const { t } = useTranslation('error');
|
|
18
|
+
const [password, setSettings] = useGlobalStore((s) => [
|
|
19
|
+
settingsSelectors.currentSettings(s).password,
|
|
20
|
+
s.setSettings,
|
|
21
|
+
]);
|
|
22
|
+
const [resend, deleteMessage] = useChatStore((s) => [s.resendMessage, s.deleteMessage]);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<>
|
|
26
|
+
<FormAction
|
|
27
|
+
avatar={'🗳'}
|
|
28
|
+
description={t('unlock.password.description')}
|
|
29
|
+
title={t('unlock.password.title')}
|
|
30
|
+
>
|
|
31
|
+
<Input.Password
|
|
32
|
+
autoComplete={'new-password'}
|
|
33
|
+
onChange={(e) => {
|
|
34
|
+
setSettings({ password: e.target.value });
|
|
35
|
+
}}
|
|
36
|
+
placeholder={t('unlock.password.placeholder')}
|
|
37
|
+
type={'block'}
|
|
38
|
+
value={password}
|
|
39
|
+
/>
|
|
40
|
+
</FormAction>
|
|
41
|
+
<Flexbox gap={12}>
|
|
42
|
+
<Button
|
|
43
|
+
onClick={() => {
|
|
44
|
+
resend(id);
|
|
45
|
+
deleteMessage(id);
|
|
46
|
+
}}
|
|
47
|
+
type={'primary'}
|
|
48
|
+
>
|
|
49
|
+
{t('unlock.confirm')}
|
|
50
|
+
</Button>
|
|
51
|
+
<Button
|
|
52
|
+
onClick={() => {
|
|
53
|
+
deleteMessage(id);
|
|
54
|
+
}}
|
|
55
|
+
>
|
|
56
|
+
{t('unlock.closeMessage')}
|
|
57
|
+
</Button>
|
|
58
|
+
</Flexbox>
|
|
59
|
+
</>
|
|
60
|
+
);
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
export default AccessCodeForm;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Highlighter } from '@lobehub/ui';
|
|
2
|
+
import { memo } from 'react';
|
|
3
|
+
import { Flexbox } from 'react-layout-kit';
|
|
4
|
+
|
|
5
|
+
import { ChatMessageError } from '@/types/message';
|
|
6
|
+
|
|
7
|
+
interface ErrorJSONViewerProps {
|
|
8
|
+
error?: ChatMessageError;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const ErrorJsonViewer = memo<ErrorJSONViewerProps>(({ error, id }) => {
|
|
13
|
+
const errorBody = error?.body || error;
|
|
14
|
+
|
|
15
|
+
if (!errorBody) return;
|
|
16
|
+
|
|
17
|
+
return (
|
|
18
|
+
<Flexbox id={id} style={{ maxWidth: 600 }}>
|
|
19
|
+
<Highlighter copyButtonSize={'small'} language={'json'}>
|
|
20
|
+
{JSON.stringify(errorBody, null, 2)}
|
|
21
|
+
</Highlighter>
|
|
22
|
+
</Flexbox>
|
|
23
|
+
);
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export default ErrorJsonViewer;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { memo } from 'react';
|
|
2
|
+
|
|
3
|
+
import APIKeyForm from './APIKeyForm';
|
|
4
|
+
import { ErrorActionContainer } from './style';
|
|
5
|
+
|
|
6
|
+
interface InvalidAPIKeyProps {
|
|
7
|
+
id: string;
|
|
8
|
+
provider?: string;
|
|
9
|
+
}
|
|
10
|
+
const InvalidAPIKey = memo<InvalidAPIKeyProps>(({ id, provider }) => (
|
|
11
|
+
<ErrorActionContainer>
|
|
12
|
+
<APIKeyForm id={id} provider={provider} />
|
|
13
|
+
</ErrorActionContainer>
|
|
14
|
+
));
|
|
15
|
+
|
|
16
|
+
export default InvalidAPIKey;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Icon } from '@lobehub/ui';
|
|
2
|
+
import { Segmented } from 'antd';
|
|
3
|
+
import { AsteriskSquare, KeySquare } from 'lucide-react';
|
|
4
|
+
import { memo, useState } from 'react';
|
|
5
|
+
import { useTranslation } from 'react-i18next';
|
|
6
|
+
import { Flexbox } from 'react-layout-kit';
|
|
7
|
+
|
|
8
|
+
import APIKeyForm from './APIKeyForm';
|
|
9
|
+
import AccessCodeForm from './AccessCodeForm';
|
|
10
|
+
import { ErrorActionContainer } from './style';
|
|
11
|
+
|
|
12
|
+
enum Tab {
|
|
13
|
+
Api = 'api',
|
|
14
|
+
Password = 'password',
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
interface InvalidAccessCodeProps {
|
|
18
|
+
id: string;
|
|
19
|
+
provider?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
const InvalidAccessCode = memo<InvalidAccessCodeProps>(({ id, provider }) => {
|
|
23
|
+
const { t } = useTranslation('error');
|
|
24
|
+
const [mode, setMode] = useState<Tab>(Tab.Password);
|
|
25
|
+
|
|
26
|
+
return (
|
|
27
|
+
<ErrorActionContainer>
|
|
28
|
+
<Segmented
|
|
29
|
+
block
|
|
30
|
+
onChange={(value) => setMode(value as Tab)}
|
|
31
|
+
options={[
|
|
32
|
+
{
|
|
33
|
+
icon: <Icon icon={AsteriskSquare} />,
|
|
34
|
+
label: t('unlock.tabs.password'),
|
|
35
|
+
value: Tab.Password,
|
|
36
|
+
},
|
|
37
|
+
{ icon: <Icon icon={KeySquare} />, label: t('unlock.tabs.apiKey'), value: Tab.Api },
|
|
38
|
+
]}
|
|
39
|
+
style={{ width: '100%' }}
|
|
40
|
+
value={mode}
|
|
41
|
+
/>
|
|
42
|
+
<Flexbox gap={24}>
|
|
43
|
+
{mode === Tab.Password && <AccessCodeForm id={id} />}
|
|
44
|
+
{mode === Tab.Api && <APIKeyForm id={id} provider={provider} />}
|
|
45
|
+
</Flexbox>
|
|
46
|
+
</ErrorActionContainer>
|
|
47
|
+
);
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export default InvalidAccessCode;
|