Merge pull request #270 from SuanmoSuanyangTechnology/fix/develop_chat_zy

Fix/develop chat zy
This commit is contained in:
yingzhao
2026-02-02 10:41:02 +08:00
committed by GitHub
2 changed files with 27 additions and 26 deletions

View File

@@ -178,6 +178,7 @@ const Conversation: FC = () => {
data.forEach((item) => {
switch(item.event) {
case 'start':
case 'node_start':
const { conversation_id: newId } = item.data as { conversation_id: string }
currentConversationId = newId
break

View File

@@ -431,32 +431,32 @@ export const nodeLibrary: NodeLibrary[] = [
}
}
},
// { type: "code", icon: codeExecutionIcon,
// config: {
// input_variables: {
// type: 'inputList',
// defaultValue: [{ name: 'arg1' }, { name: 'arg2' }]
// },
// language: {
// type: 'select',
// defaultValue: 'python3'
// },
// code: {
// type: 'messageEditor',
// isArray: false,
// language: ['python3', 'javascript'],
// titleVariant: 'borderless',
// defaultValue: `def main(arg1: str, arg2: str):
// return {
// "result": arg1 + arg2,
// }`
// },
// output_variables: {
// type: 'outputList',
// defaultValue: [{name: 'result', type: 'string'}]
// },
// }
// },
{ type: "code", icon: codeExecutionIcon,
config: {
input_variables: {
type: 'inputList',
defaultValue: [{ name: 'arg1' }, { name: 'arg2' }]
},
language: {
type: 'select',
defaultValue: 'python3'
},
code: {
type: 'messageEditor',
isArray: false,
language: ['python3', 'javascript'],
titleVariant: 'borderless',
defaultValue: `def main(arg1: str, arg2: str):
return {
"result": arg1 + arg2,
}`
},
output_variables: {
type: 'outputList',
defaultValue: [{name: 'result', type: 'string'}]
},
}
},
{ type: "jinja-render", icon: templateRenderingIcon,
config: {
mapping: {