| | |
| | | useTranslate, |
| | | } from "react-admin"; |
| | | import { Alert, Button, Grid, Stack, Typography } from "@mui/material"; |
| | | import StatusSelectInput from "@/page/components/StatusSelectInput"; |
| | | import { validateAiParamDraft } from "@/api/ai/configCenter"; |
| | | |
| | | const providerChoices = [ |
| | |
| | | <BooleanInput source="streamingEnabled" label="ai.param.fields.streamingEnabled" disabled={readOnly} /> |
| | | </Grid> |
| | | <Grid item xs={12} md={6}> |
| | | <StatusSelectInput disabled={readOnly} /> |
| | | <SelectInput |
| | | source="status" |
| | | label="ai.param.fields.defaultStatus" |
| | | choices={[ |
| | | { id: 1, name: "ai.param.status.default" }, |
| | | { id: 0, name: "ai.param.status.nonDefault" }, |
| | | ]} |
| | | fullWidth |
| | | disabled={readOnly} |
| | | /> |
| | | </Grid> |
| | | <Grid item xs={12}> |
| | | <TextInput source="memo" label="common.field.memo" fullWidth multiline minRows={3} disabled={readOnly} /> |