Merge pull request #1272 from anuraagdjain/feat/cancel-model-download

feat: cancel model download
This commit is contained in:
Timothy Jaeryang Baek authored and GitHub committed 2024-03-24 18:00:57 -05:00
commit a1faa307b1
7 files changed
+120 -28

No files matched your search

+1 -1
View File
@@ -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}`, {