Merge pull request #270 from SuanmoSuanyangTechnology/fix/develop_chat_zy
Fix/develop chat zy
This commit is contained in:
@@ -178,6 +178,7 @@ const Conversation: FC = () => {
|
|||||||
data.forEach((item) => {
|
data.forEach((item) => {
|
||||||
switch(item.event) {
|
switch(item.event) {
|
||||||
case 'start':
|
case 'start':
|
||||||
|
case 'node_start':
|
||||||
const { conversation_id: newId } = item.data as { conversation_id: string }
|
const { conversation_id: newId } = item.data as { conversation_id: string }
|
||||||
currentConversationId = newId
|
currentConversationId = newId
|
||||||
break
|
break
|
||||||
|
|||||||
@@ -431,32 +431,32 @@ export const nodeLibrary: NodeLibrary[] = [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// { type: "code", icon: codeExecutionIcon,
|
{ type: "code", icon: codeExecutionIcon,
|
||||||
// config: {
|
config: {
|
||||||
// input_variables: {
|
input_variables: {
|
||||||
// type: 'inputList',
|
type: 'inputList',
|
||||||
// defaultValue: [{ name: 'arg1' }, { name: 'arg2' }]
|
defaultValue: [{ name: 'arg1' }, { name: 'arg2' }]
|
||||||
// },
|
},
|
||||||
// language: {
|
language: {
|
||||||
// type: 'select',
|
type: 'select',
|
||||||
// defaultValue: 'python3'
|
defaultValue: 'python3'
|
||||||
// },
|
},
|
||||||
// code: {
|
code: {
|
||||||
// type: 'messageEditor',
|
type: 'messageEditor',
|
||||||
// isArray: false,
|
isArray: false,
|
||||||
// language: ['python3', 'javascript'],
|
language: ['python3', 'javascript'],
|
||||||
// titleVariant: 'borderless',
|
titleVariant: 'borderless',
|
||||||
// defaultValue: `def main(arg1: str, arg2: str):
|
defaultValue: `def main(arg1: str, arg2: str):
|
||||||
// return {
|
return {
|
||||||
// "result": arg1 + arg2,
|
"result": arg1 + arg2,
|
||||||
// }`
|
}`
|
||||||
// },
|
},
|
||||||
// output_variables: {
|
output_variables: {
|
||||||
// type: 'outputList',
|
type: 'outputList',
|
||||||
// defaultValue: [{name: 'result', type: 'string'}]
|
defaultValue: [{name: 'result', type: 'string'}]
|
||||||
// },
|
},
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
{ type: "jinja-render", icon: templateRenderingIcon,
|
{ type: "jinja-render", icon: templateRenderingIcon,
|
||||||
config: {
|
config: {
|
||||||
mapping: {
|
mapping: {
|
||||||
|
|||||||
Reference in New Issue
Block a user