feat: add form input node (#2773)

* add node

* dispatch

* extract InputTypeConfig component

* question tip

* fix build

* fix

* fix
This commit is contained in:
heheer
2024-09-26 13:48:03 +08:00
committed by shilin66
parent d4d7c3196a
commit 1144826ed5
34 changed files with 1326 additions and 419 deletions

View File

@@ -293,7 +293,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
})();
const isInteractiveRequest = !!getLastInteractiveValue(histories);
const { text: userSelectedVal } = chatValue2RuntimePrompt(userQuestion.value);
const { text: userInteractiveVal } = chatValue2RuntimePrompt(userQuestion.value);
const newTitle = isPlugin
? variables.cTime ?? getSystemTime(user.timezone)
@@ -312,7 +312,7 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
appId: app._id,
teamId,
tmbId: tmbId,
userSelectedVal,
userInteractiveVal,
aiResponse,
newVariables,
newTitle