浏览代码

support create quantize param (#86)

Bruce MacDonald 1 年之前
父节点
当前提交
07c2e1b038
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      src/browser.ts
  2. 1 0
      src/interfaces.ts

+ 1 - 0
src/browser.ts

@@ -148,6 +148,7 @@ export class Ollama {
       name: request.model,
       stream: request.stream,
       modelfile: request.modelfile,
+      quantize: request.quantize,
     })
   }
 

+ 1 - 0
src/interfaces.ts

@@ -90,6 +90,7 @@ export interface CreateRequest {
   model: string
   path?: string
   modelfile?: string
+  quantize?: string
   stream?: boolean
 }