refac: cancel download
This commit is contained in:
1 parent
642ca5a94a
commit
244f34c24e
5 files changed
+93
-53
No files matched your search
@@ -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}`, {
|
||||
|
||||
Reference in new issue
Block a user