You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to handle user cancellation during generation, so far I am trying AsyncGenerator.prototype.return() of the return value of await ollama.chat but it freezes the Ollama server and all following requests hang.
I see ollama-js is using fetch and normally we use AbortController to signal abort. Is there something similiar in ollama-js?
Thank you for your effort and time.
The text was updated successfully, but these errors were encountered:
Hi, Ollama is great, love it.
I am trying to handle user cancellation during generation, so far I am trying
AsyncGenerator.prototype.return()
of the return value ofawait ollama.chat
but it freezes the Ollama server and all following requests hang.I see ollama-js is using
fetch
and normally we useAbortController
to signal abort. Is there something similiar in ollama-js?Thank you for your effort and time.
The text was updated successfully, but these errors were encountered: