[PR #292] [CLOSED] Added a Websocket interface #15353

Closed
opened 2026-04-16 04:56:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/292
Author: @FultonBrowne
Created: 8/5/2023
Status: Closed

Base: mainHead: main


📄 Description

This adds an api endpoint "/api/generatestream" that serves a Websocket that receives JSON in the same format as the "/api/generate" endpoint.

Why?
Well for something I'm working on and I image other things people will do later on a more "stream" style interface may be useful and may provide a better user experience.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/292 **Author:** [@FultonBrowne](https://github.com/FultonBrowne) **Created:** 8/5/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📄 Description This adds an api endpoint "/api/generatestream" that serves a Websocket that receives JSON in the same format as the "/api/generate" endpoint. Why? Well for something I'm working on and I image other things people will do later on a more "stream" style interface may be useful and may provide a better user experience. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 04:56:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#15353