Skip to content

Commit

Permalink
remove username and password from interface
Browse files Browse the repository at this point in the history
- these fields are not used
  • Loading branch information
BruceMacD committed Feb 6, 2024
1 parent 1417b60 commit 356999d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>`

Expand All @@ -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>`

Expand Down
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,6 @@ export class Ollama {
name: request.model,
stream: request.stream,
insecure: request.insecure,
username: request.username,
password: request.password,
})
}

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

Expand Down
4 changes: 0 additions & 4 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 356999d

Please sign in to comment.