()
| 55 | { label: 'Markdown content', value: 4 } |
| 56 | ] |
| 57 | function Playground() { |
| 58 | const navigation = useNavigate(); |
| 59 | const { assistantTableColumn, modelsTableColumn, collectionTableColumn } = CommonComponents() |
| 60 | const uploadUrl = `${origin}/api/v1/images` |
| 61 | const { assistantPlaygroundId } = useSelector((state: any) => state.assistantId) |
| 62 | const { playgroundType } = useSelector((state: any) => state.playgroundType) |
| 63 | const { t } = useTranslation(); |
| 64 | const dispatch = useDispatch(); |
| 65 | const [assistantLimit, setAssistantLimit] = useState(20) |
| 66 | const { search, pathname } = useLocation(); |
| 67 | const [assistantId, setAssistantId] = useState<any>() |
| 68 | const [optionList, setOptionList] = useState<any>([]) |
| 69 | const divRef: any = useRef(); |
| 70 | const settingModal = useRef<any>() |
| 71 | const [retrievalLimit, setRetrievalLimit] = useState(20) |
| 72 | const [updateModelPrevButton, setUpdateModelPrevButton] = useState(false) |
| 73 | const settingIcon = useRef<any>() |
| 74 | const contentRef = useRef<any>(); |
| 75 | const [shouldSmoothScroll, setShouldSmoothScroll] = useState(true) |
| 76 | const [Authentication, setAuthentication] = useState('') |
| 77 | const [selectedActionsRows, setSelectedActionsRows] = useState<any[]>([]) |
| 78 | const [retrievalList, setRetrievalList] = useState<any[]>([]) |
| 79 | const [listChats, setListChats] = useState<any[]>([]) |
| 80 | const [OpenDrawer, setOpenDrawer] = useState(false) |
| 81 | const [options, setOptions] = useState([]) |
| 82 | const [memoryValue, setMemoryValue] = useState('zero') |
| 83 | const [recordsSelected, setRecordsSelected] = useState<string[]>([]) |
| 84 | const childRef = useRef<ChildRefType | null>(null); |
| 85 | const [modelLimit, setModelLimit] = useState(20) |
| 86 | const [modalTableOpen, setModalTableOpen] = useState(false) |
| 87 | const [selectedModelRows, setSelectedRows] = useState<any[]>([]) |
| 88 | const [originalModelData, setOriginalModelData] = useState<any[]>() |
| 89 | const [modelOne, setModelOne] = useState(false); |
| 90 | const [OpenActionDrawer, setOpenActionDrawer] = useState(false) |
| 91 | const [sendButtonLoading, setSendButtonLoading] = useState(false) |
| 92 | const [generateButtonLoading, setGenerateButtonLoading] = useState(false) |
| 93 | const [openModalTable, setOpenModalTable] = useState(false) |
| 94 | const [systemPromptVariables, setSystemPromptVariable] = useState('') |
| 95 | const [chatId, setChatId] = useState<any>('') |
| 96 | const [actionList, setActionList] = useState([]) |
| 97 | const [tipSchema, setTipSchema] = useState(false) |
| 98 | const [checkBoxValue, setCheckBoxValue] = useState([1, 2, 4]) |
| 99 | const [contentValue, setContentValue] = useState('') |
| 100 | const [drawerName, setDrawerName] = useState('') |
| 101 | const [schema, setSchema] = useState('') |
| 102 | const [generateFlag, setGenerateFlag] = useState(false) |
| 103 | const [retrievalConfig, setRetrievalConfig] = useState('user_message') |
| 104 | const [custom, setCustom] = useState('') |
| 105 | const [selectedPluginGroup, setSelectedPluginGroup] = useState<any>([]) |
| 106 | const [selectedActionsSelected, setSelectedActionSelected] = useState<any[]>([]) |
| 107 | const [inputValueOne, setInputValueOne] = useState(20) |
| 108 | const [inputValueTwo, setInputValueTwo] = useState(200) |
| 109 | const [radioValue, setRadioValue] = useState('none') |
| 110 | const [openCollectionDrawer, setOpenCollectionDrawer] = useState(false) |
| 111 | const [updateRetrievalPrevButton, setUpdateRetrievalPrevButton] = useState(false) |
| 112 | const [selectedRetrievalRows, setSelectedRetrievalRows] = useState<any[]>([]) |
| 113 | const [hasMore, setHasMore] = useState(false) |
| 114 | const [hasActionMore, setHasActionMore] = useState(false) |
nothing calls this directly
no test coverage detected