Skip to content

armgit / dify

Public Imported from GitHub
0

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.

422 B
Raw Blame
import { useMutation } from '@tanstack/react-query'
import { consoleQuery } from '@/service/console'

export function useDatasetApiKeyMutations() {
  const createKey = useMutation(consoleQuery.datasets.apiKeys.post.mutationOptions())
  const deleteKey = useMutation(consoleQuery.datasets.apiKeys.byApiKeyId.delete.mutationOptions())
  return { createKey, deleteKey, pending: createKey.isPending || deleteKey.isPending }
}