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
49783327
Commit
49783327
authored
Jul 26, 2023
by
Joel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: stop api remove useless param
parent
7d324c18
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
index.tsx
web/app/components/explore/universal-chat/index.tsx
+1
-1
universal-chat.ts
web/service/universal-chat.ts
+1
-1
No files found.
web/app/components/explore/universal-chat/index.tsx
View file @
49783327
...
@@ -677,7 +677,7 @@ const Main: FC<IMainProps> = () => {
...
@@ -677,7 +677,7 @@ const Main: FC<IMainProps> = () => {
isResponsing=
{
isResponsing
}
isResponsing=
{
isResponsing
}
canStopResponsing=
{
!!
messageTaskId
}
canStopResponsing=
{
!!
messageTaskId
}
abortResponsing=
{
async
()
=>
{
abortResponsing=
{
async
()
=>
{
await
stopChatMessageResponding
(
APP_ID
,
messageTaskId
)
await
stopChatMessageResponding
(
messageTaskId
)
setHasStopResponded
(
true
)
setHasStopResponded
(
true
)
setResponsingFalse
()
setResponsingFalse
()
}
}
}
}
...
...
web/service/universal-chat.ts
View file @
49783327
...
@@ -25,7 +25,7 @@ export const sendChatMessage = async (body: Record<string, any>, { onData, onCom
...
@@ -25,7 +25,7 @@ export const sendChatMessage = async (body: Record<string, any>, { onData, onCom
},
{
onData
,
onCompleted
,
onThought
,
onError
,
getAbortController
})
},
{
onData
,
onCompleted
,
onThought
,
onError
,
getAbortController
})
}
}
export
const
stopChatMessageResponding
=
async
(
appId
:
string
,
taskId
:
string
)
=>
{
export
const
stopChatMessageResponding
=
async
(
taskId
:
string
)
=>
{
return
post
(
getUrl
(
`messages/
${
taskId
}
/stop`
))
return
post
(
getUrl
(
`messages/
${
taskId
}
/stop`
))
}
}
...
...
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