Can we access the model using Ollama via WebSockets? #231

Closed
opened 2026-02-15 16:28:56 -05:00 by yindo · 2 comments
Owner

Originally created by @mahimairaja on GitHub (Mar 3, 2025).

Wondering if ollama supports websockets natively?

Originally created by @mahimairaja on GitHub (Mar 3, 2025). Wondering if ollama supports websockets natively?
yindo closed this issue 2026-02-15 16:28:56 -05:00
Author
Owner

@xuzexin-hz commented on GitHub (Mar 5, 2025):

I think it is impossible to support it. It is good enough to support stream. Websockets is a two-way communication. What does Ollama push to the client? I think there is no use case.

@xuzexin-hz commented on GitHub (Mar 5, 2025): I think it is impossible to support it. It is good enough to support stream. Websockets is a two-way communication. What does Ollama push to the client? I think there is no use case.
Author
Owner

@mahimairaja commented on GitHub (Mar 5, 2025):

Makes sense! Tnx

@mahimairaja commented on GitHub (Mar 5, 2025): Makes sense! Tnx
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ollama/ollama-python#231