Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

502 B
Raw Blame
import { RAGFlowFormItem } from '@/components/ragflow-form';
import { Input } from '@/components/ui/input';
import { t } from 'i18next';

interface IApiKeyFieldProps {
  placeholder?: string;
  required?: boolean;
}
export function ApiKeyField({ placeholder, required }: IApiKeyFieldProps) {
  return (
    <RAGFlowFormItem
      name="api_key"
      label={t('flow.apiKey')}
      required={required}
    >
      <Input type="password" placeholder={placeholder}></Input>
    </RAGFlowFormItem>
  );
}