Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: provider token validate (#195)
zxhlyh99f7e4f277ef
diff --git a/web/app/components/header/account-setting/provider-page/openai-provider/index.tsx b/web/app/components/header/account-setting/provider-page/openai-provider/index.tsxindex 873ab77a448..d33042fcfd2 100644--- a/web/app/components/header/account-setting/provider-page/openai-provider/index.tsx+++ b/web/app/components/header/account-setting/provider-page/openai-provider/index.tsx@@ -65,9 +65,6 @@ const OpenaiProvider = ({if (validating) {return <ValidatingTip />}- if (validatedStatus?.status === ValidatedStatus.Success) {- return <ValidatedExceedOnOpenaiTip />- }if (validatedStatus?.status === ValidatedStatus.Error) {return <ValidatedErrorOnOpenaiTip errorMessage={validatedStatus.message ?? ''} />}diff --git a/web/app/components/header/account-setting/provider-page/provider-item/index.tsx b/web/app/components/header/account-setting/provider-page/provider-item/index.tsxindex 14f8c3f5c3b..cd1ad038dab 100644--- a/web/app/components/header/account-setting/provider-page/provider-item/index.tsx+++ b/web/app/components/header/account-setting/provider-page/provider-item/index.tsx@@ -8,7 +8,7 @@ import type { Provider, ProviderAzureToken } from '@/models/common'import { ProviderName } from '@/models/common'import OpenaiProvider from '../openai-provider'import AzureProvider from '../azure-provider'-import { ValidatedStatus } from '../provider-input/useValidateToken'+import { ValidatedStatus, ValidatedStatusState } from '../provider-input/useValidateToken'import { updateProviderAIKey } from '@/service/common'import { ToastContext } from '@/app/components/base/toast'@@ -29,7 +29,7 @@ const ProviderItem = ({onSave}: IProviderItemProps) => {const { t } = useTranslation()- const [validatedStatus, setValidatedStatus] = useState<ValidatedStatus>()+ const [validatedStatus, setValidatedStatus] = useState<ValidatedStatusState>()const [loading, setLoading] = useState(false)const { notify } = useContext(ToastContext)const [token, setToken] = useState<ProviderAzureToken | string>(@@ -55,7 +55,7 @@ const ProviderItem = ({}const handleUpdateToken = async () => {if (loading) return- if (validatedStatus === ValidatedStatus.Success) {+ if (validatedStatus?.status === ValidatedStatus.Success) {try {setLoading(true)await updateProviderAIKey({ url: `/workspaces/current/providers/${provider.provider_name}/token`, body: { token } })