Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

abort isn't fully aborting? #89

Open
Madd0g opened this issue Jun 13, 2024 · 2 comments
Open

abort isn't fully aborting? #89

Madd0g opened this issue Jun 13, 2024 · 2 comments

Comments

@Madd0g
Copy link

Madd0g commented Jun 13, 2024

I'm using ollama from 2 clients but having this problem only with BMO.

If I abort the stream with /s the UI says "Stream Aborted" but the next message can sometimes take a very long time, I'm getting the feeling that the server is still generating even when the client has aborted.

This is a new problem which appeared in a recent version, it used to work.

Thanks!

@twalderman
Copy link

I have experienced this as well. Tyoically have to wait for ollama to finish streaming in the background or switch models to stop the background activity. Stop generating is not working. I have tried adding "/s" to the PARAMETER STOP commands but I cant say if that worked in cases because I havent thoroughly tested it. If you want to give that I shot, let me know.

@longy2k
Copy link
Owner

longy2k commented Jul 8, 2024

v2.2.0

I was using the Ollama-js API which does not support AbortController.

All the API connections are now using fetch besides the REST API Connection (non-stream) and all Anthropic models.

As long as no CORS restrictions are applied, Ollama and any other API connections will actually abort the server.

Let me know if I missed anything, thanks!

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

No branches or pull requests

3 participants