Skip to content

Commit

Permalink
Updating documentation about aborting a streamed response (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Trismegiste authored Aug 30, 2024
1 parent c03ea59 commit 218bede
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,15 @@ ollama.ps()

- Returns: `<ListResponse>`

### abort

```javascript
ollama.abort()
```

This method will abort all streamed generations currently running.
All asynchronous threads listening to streams (typically the ```for await (const part of response)```) will throw an ```AbortError``` exception

## Custom client

A custom client can be created with the following fields:
Expand Down

0 comments on commit 218bede

Please sign in to comment.