Ver Fonte

remove username and password from interface (#42)

- these fields are not used
Bruce MacDonald há 1 ano atrás
pai
commit
20af092b7c
3 ficheiros alterados com 0 adições e 12 exclusões
  1. 0 4
      README.md
  2. 0 4
      src/index.ts
  3. 0 4
      src/interfaces.ts

+ 0 - 4
README.md

@@ -98,8 +98,6 @@ ollama.pull(request)
 - `request` `<Object>`: The request object containing pull parameters.
   - `model` `<string>` The name of the model to pull.
   - `insecure` `<boolean>`: (Optional) Pull from servers whose identity cannot be verified.
-  - `username` `<string>`: (Optional) Username of the user pulling the model.
-  - `password` `<string>`: (Optional) Password of the user pulling the model.
   - `stream` `<boolean>`: (Optional) When true an `AsyncGenerator` is returned.
 - Returns: `<ProgressResponse>`
 
@@ -112,8 +110,6 @@ ollama.push(request)
 - `request` `<Object>`: The request object containing push parameters.
   - `model` `<string>` The name of the model to push.
   - `insecure` `<boolean>`: (Optional) Push to servers whose identity cannot be verified.
-  - `username` `<string>`: (Optional) Username of the user pushing the model.
-  - `password` `<string>`: (Optional) Password of the user pushing the model.
   - `stream` `<boolean>`: (Optional) When true an `AsyncGenerator` is returned.
 - Returns: `<ProgressResponse>`
 

+ 0 - 4
src/index.ts

@@ -249,8 +249,6 @@ export class Ollama {
       name: request.model,
       stream: request.stream,
       insecure: request.insecure,
-      username: request.username,
-      password: request.password,
     })
   }
 
@@ -264,8 +262,6 @@ export class Ollama {
       name: request.model,
       stream: request.stream,
       insecure: request.insecure,
-      username: request.username,
-      password: request.password,
     })
   }
 

+ 0 - 4
src/interfaces.ts

@@ -76,16 +76,12 @@ export interface ChatRequest {
 export interface PullRequest {
   model: string
   insecure?: boolean
-  username?: string
-  password?: string
   stream?: boolean
 }
 
 export interface PushRequest {
   model: string
   insecure?: boolean
-  username?: string
-  password?: string
   stream?: boolean
 }