[GH-ISSUE #1847] API equivalent of Ctrl+C? (stopping response stream before completion) #1052

Closed
opened 2026-04-12 10:47:24 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @houstonhaynes on GitHub (Jan 7, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/1847

Is there an equivalent to the console 'Ctrl+C' in the API to stop a stream response? What's the recommended practice?

Thanks!

Originally created by @houstonhaynes on GitHub (Jan 7, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/1847 Is there an equivalent to the console 'Ctrl+C' in the API to stop a stream response? What's the recommended practice? Thanks!
Author
Owner

@houstonhaynes commented on GitHub (Jan 8, 2024):

Never mind - I found it. I learned some Go today! 👍

Screenshot 2024-01-08 at 7 55 45 AM

<!-- gh-comment-id:1881026855 --> @houstonhaynes commented on GitHub (Jan 8, 2024): Never mind - I found it. I learned some Go today! 👍 ![Screenshot 2024-01-08 at 7 55 45 AM](https://github.com/jmorganca/ollama/assets/8174976/be6a01c0-9425-45db-800a-d417ec3d78cd)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#1052