diff --git a/web/app/components/datasets/create/embedding-process/index.tsx b/web/app/components/datasets/create/embedding-process/index.tsx index 406a2a803d..df64f26ab9 100644 --- a/web/app/components/datasets/create/embedding-process/index.tsx +++ b/web/app/components/datasets/create/embedding-process/index.tsx @@ -32,6 +32,8 @@ import { RETRIEVE_METHOD } from '@/types/app' import Tooltip from '@/app/components/base/tooltip' import { useInvalidDocumentList } from '@/service/knowledge/use-document' import Divider from '@/app/components/base/divider' +import { useDatasetApiAccessUrl } from '@/hooks/use-api-access-url' +import Link from 'next/link' type Props = { datasetId: string @@ -212,9 +214,7 @@ const EmbeddingProcess: FC = ({ datasetId, batchId, documents = [], index invalidDocumentList() router.push(`/datasets/${datasetId}/documents`) } - const navToApiDocs = () => { - router.push('/datasets?category=api') - } + const apiReferenceUrl = useDatasetApiAccessUrl() const isEmbedding = useMemo(() => { return indexingStatusBatchDetail.some(indexingStatusDetail => ['indexing', 'splitting', 'parsing', 'cleaning'].includes(indexingStatusDetail?.indexing_status || '')) @@ -344,13 +344,18 @@ const EmbeddingProcess: FC = ({ datasetId, batchId, documents = [], index />
- + +
- + + diff --git a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx index f246d5e849..c8ef6c3601 100644 --- a/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx +++ b/web/app/components/rag-pipeline/components/rag-pipeline-header/publisher/popup.tsx @@ -45,6 +45,7 @@ import PremiumBadge from '@/app/components/base/premium-badge' import { SparklesSoft } from '@/app/components/base/icons/src/public/common' import { useModalContextSelector } from '@/context/modal-context' import Link from 'next/link' +import { useDatasetApiAccessUrl } from '@/hooks/use-api-access-url' const PUBLISH_SHORTCUT = ['ctrl', '⇧', 'P'] @@ -64,6 +65,7 @@ const Popup = () => { const workflowStore = useWorkflowStore() const { isAllowPublishAsCustomKnowledgePipelineTemplate } = useProviderContext() const setShowPricingModal = useModalContextSelector(s => s.setShowPricingModal) + const apiReferenceUrl = useDatasetApiAccessUrl() const [confirmVisible, { setFalse: hideConfirm, @@ -273,7 +275,11 @@ const Popup = () => {
- + - +