mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
feat: support try agent app
This commit is contained in:
@ -16,7 +16,7 @@ const TryApp: FC<Props> = ({
|
||||
}) => {
|
||||
const { isFetching: isFetchingAppInfo, data: appInfo } = useGetTryAppInfo(appId)
|
||||
const mode = appInfo?.mode
|
||||
const isChat = mode === 'chat' || mode === 'advanced-chat'
|
||||
const isChat = ['chat', 'advanced-chat', 'agent-chat'].includes(mode!)
|
||||
const isCompletion = !isChat
|
||||
if (isFetchingAppInfo) {
|
||||
return (
|
||||
|
||||
@ -45,7 +45,6 @@ const TextGeneration: FC<Props> = ({
|
||||
doSetInputs(newInputs)
|
||||
inputsRef.current = newInputs
|
||||
}, [])
|
||||
// console.log(isPC, setInputs)
|
||||
|
||||
const updateAppInfo = useWebAppStore(s => s.updateAppInfo)
|
||||
const { data: tryAppParams } = useGetTryAppParams(appId)
|
||||
|
||||
Reference in New Issue
Block a user