Skip to content

Conversation

@edenreich
Copy link
Collaborator

@edenreich edenreich commented May 26, 2025

Summary

Enhance streaming chat completion with structured SSEvent handling and validation.

Simplify the code, Server Sent Events is the default for streaming by any provider that follows OpenAI API - it's compatible, that's why I removed the use_sse.

In previous versions of Ollama there was no OpenAI Compatible API and the response was a raw JSON instead of data: JSON.

use_sse was redundant.

…andling and validation

Simplify the code, Server Sent Events is the default for streaming by any provider that follows OpenAI API - it's compatible, i.e why I removed the use_sse.

In previous versions of Ollama there was no OpenAI Compatible API and the response was a raw JSON instead of data: <JSON>

Signed-off-by: Eden Reich <eden.reich@gmail.com>
@edenreich edenreich merged commit cfcf147 into main May 26, 2025
1 check passed
@edenreich edenreich deleted the refactor/deprecate-use-sse-flag branch May 26, 2025 23:58
github-actions bot pushed a commit that referenced this pull request Jul 26, 2025
## [0.5.0](v0.4.1...v0.5.0) (2025-07-26)

### ✨ Features

* Add google provider ([#4](#4)) ([09caa2e](09caa2e))

### ♻️ Improvements

* Enhance streaming chat completion with structured SSEvent handling and validation ([#3](#3)) ([cfcf147](cfcf147))

### 📚 Documentation

* Update README examples for Docker setup and LLM configuration ([e55776d](e55776d))

### 🔧 Miscellaneous

* Add dependabot configuration for pip and GitHub Actions updates ([3dcc773](3dcc773))
* Change GitHub Actions update schedule from weekly to daily ([99fd21f](99fd21f))
* Set open-pull-requests-limit to 0 for dependabot updates ([ec02f02](ec02f02))
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

Successfully merging this pull request may close these issues.

2 participants