Skip to content

Commit

Permalink
PS Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
royjhan committed Jun 4, 2024
1 parent c553b59 commit 8b52afb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ ollama.embeddings(request)
### process

```javascript
ollama.process()
ollama.ps()
```

- Returns: `<ListResponse>`
Expand Down
2 changes: 1 addition & 1 deletion examples/list/list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ await ollama.chat({
var response = await ollama.list()
console.log(response)

response = await ollama.process()
response = await ollama.ps()
console.log(response)
2 changes: 1 addition & 1 deletion src/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export class Ollama {
* @returns {Promise<ListResponse>} - The response object.
* @throws {Error} - If the response body is missing.
*/
async process(): Promise<ListResponse> {
async ps(): Promise<ListResponse> {
const response = await utils.get(this.fetch, `${this.config.host}/api/ps`)
return (await response.json()) as ListResponse
}
Expand Down

0 comments on commit 8b52afb

Please sign in to comment.