feat: stop response call api (#340)
This commit is contained in:
parent
e083a7067b
commit
b16a7b0b3b
6 changed files with 28 additions and 8 deletions
|
|
@ -15,6 +15,10 @@ export const sendChatMessage = async (appId: string, body: Record<string, any>,
|
|||
}, { onData, onCompleted, onError, getAbortController })
|
||||
}
|
||||
|
||||
export const stopChatMessageResponding = async (appId: string, taskId: string) => {
|
||||
return post(`apps/${appId}/chat-messages/${taskId}/stop`)
|
||||
}
|
||||
|
||||
export const sendCompletionMessage = async (appId: string, body: Record<string, any>, { onData, onCompleted, onError }: {
|
||||
onData: IOnData
|
||||
onCompleted: IOnCompleted
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue