forked from open-webui/open-webui
refac: cancel download
This commit is contained in:
parent
642ca5a94a
commit
244f34c24e
5 changed files with 93 additions and 53 deletions
|
@ -271,7 +271,7 @@ export const generateChatCompletion = async (token: string = '', body: object) =
|
|||
return [res, controller];
|
||||
};
|
||||
|
||||
export const cancelChatCompletion = async (token: string = '', requestId: string) => {
|
||||
export const cancelOllamaRequest = async (token: string = '', requestId: string) => {
|
||||
let error = null;
|
||||
|
||||
const res = await fetch(`${OLLAMA_API_BASE_URL}/cancel/${requestId}`, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue