From 57ec49477d9ef8711f236e0bdcd6987dc851c920 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Thu, 9 May 2024 17:06:20 -0700 Subject: [PATCH 1/2] support create quantization param --- src/browser.ts | 1 + src/interfaces.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/browser.ts b/src/browser.ts index 842b6f3..9d9b75d 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -148,6 +148,7 @@ export class Ollama { name: request.model, stream: request.stream, modelfile: request.modelfile, + quantization: request.quantization, }) } diff --git a/src/interfaces.ts b/src/interfaces.ts index 1acefd0..3aa164f 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -90,6 +90,7 @@ export interface CreateRequest { model: string path?: string modelfile?: string + quantization?: string stream?: boolean } From 78373b61ca190c2fc0221afe3c00323c7d21b8af Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Fri, 10 May 2024 14:31:56 -0700 Subject: [PATCH 2/2] quantization -> quantize --- src/browser.ts | 2 +- src/interfaces.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/browser.ts b/src/browser.ts index 9d9b75d..d3721f9 100644 --- a/src/browser.ts +++ b/src/browser.ts @@ -148,7 +148,7 @@ export class Ollama { name: request.model, stream: request.stream, modelfile: request.modelfile, - quantization: request.quantization, + quantize: request.quantize, }) } diff --git a/src/interfaces.ts b/src/interfaces.ts index 3aa164f..d0a56fa 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -90,7 +90,7 @@ export interface CreateRequest { model: string path?: string modelfile?: string - quantization?: string + quantize?: string stream?: boolean }