feat: option to hide workflow steps (#5436)

This commit is contained in:
crazywoola 2024-06-21 12:51:10 +08:00 • committed by GitHub
commit 92ddb410cd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 165 additions and 9 deletions

View file

@ -29,6 +29,7 @@ const ChatWrapper = () => {
appMeta,
handleFeedback,
currentChatInstanceRef,
appData,
} = useChatWithHistoryContext()
const appConfig = useMemo(() => {
const config = appParams || {}
@ -128,6 +129,7 @@ const ChatWrapper = () => {
return (
<Chat
appData={appData}
config={appConfig}
chatList={chatList}
isResponding={isResponding}

View file

@ -47,7 +47,14 @@ export const useChatWithHistory = (installedAppInfo?: InstalledApp) => {
const { id, app } = installedAppInfo!
return {
app_id: id,
site: { title: app.name, icon: app.icon, icon_background: app.icon_background, prompt_public: false, copyright: '' },
site: {
title: app.name,
icon: app.icon,
icon_background: app.icon_background,
prompt_public: false,
copyright: '',
show_workflow_steps: true,
},
plan: 'basic',
} as AppData
}