Feat: Call the interface to stop the output of the large model #10997 (#11164)

### What problem does this PR solve?

Feat: Call the interface to stop the output of the large model #10997

### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-11-11 15:21:08 +08:00
committed by GitHub
parent 7dd9758056
commit 377c0fb4fa
8 changed files with 84 additions and 5 deletions

View File

@ -29,6 +29,7 @@ const {
fetchExternalAgentInputs,
prompt,
cancelDataflow,
cancelCanvas,
} = api;
const methods = {
@ -120,6 +121,10 @@ const methods = {
url: cancelDataflow,
method: 'put',
},
cancelCanvas: {
url: cancelCanvas,
method: 'put',
},
} as const;
const agentService = registerNextServer<keyof typeof methods>(methods);