Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
84519c6c
Commit
84519c6c
authored
Jun 21, 2023
by
John Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: uuid to str
parent
15b092c8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
multi_dataset_router_chain.py
api/core/chain/multi_dataset_router_chain.py
+1
-1
conversation_message_task.py
api/core/conversation_message_task.py
+2
-2
No files found.
api/core/chain/multi_dataset_router_chain.py
View file @
84519c6c
...
@@ -129,7 +129,7 @@ class MultiDatasetRouterChain(Chain):
...
@@ -129,7 +129,7 @@ class MultiDatasetRouterChain(Chain):
callbacks
=
[
DatasetToolCallbackHandler
(
conversation_message_task
),
DifyStdOutCallbackHandler
()]
callbacks
=
[
DatasetToolCallbackHandler
(
conversation_message_task
),
DifyStdOutCallbackHandler
()]
)
)
dataset_tools
[
dataset
.
id
]
=
dataset_tool
dataset_tools
[
str
(
dataset
.
id
)
]
=
dataset_tool
return
cls
(
return
cls
(
router_chain
=
router_chain
,
router_chain
=
router_chain
,
...
...
api/core/conversation_message_task.py
View file @
84519c6c
...
@@ -306,10 +306,10 @@ class PubHandler:
...
@@ -306,10 +306,10 @@ class PubHandler:
'event'
:
'message'
,
'event'
:
'message'
,
'data'
:
{
'data'
:
{
'task_id'
:
self
.
_task_id
,
'task_id'
:
self
.
_task_id
,
'message_id'
:
s
elf
.
_message
.
id
,
'message_id'
:
s
tr
(
self
.
_message
.
id
)
,
'text'
:
text
,
'text'
:
text
,
'mode'
:
self
.
_conversation
.
mode
,
'mode'
:
self
.
_conversation
.
mode
,
'conversation_id'
:
s
elf
.
_conversation
.
id
'conversation_id'
:
s
tr
(
self
.
_conversation
.
id
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment