Skip to content

Conversation

@pepperoni21
Copy link
Owner

Currently only implemented for generate_stream.

An optional AbortSignal is added onto the GenerationRequest struct, which is a wrapper for Arc<AtomicBool> that allows sending the abort signal by setting it to true.

Fixes #89

@fuzzy-coats
Copy link

@pepperoni21 is there any chance of this being landed?

@mineichen
Copy link
Contributor

I'd prefer if we could simply drop the stream without a external signal, simple drop the stream
We could have a separate option struct beside the Request-Object, which could have defaults on Ollama.
This can contain timeout, headers and maybe other things in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support for aborting requests

4 participants