v1.4.381

danielmiessler/Fabricv1.4.381Jan 17, 2026by github-actions[bot]

AI Summary

Refactors the Ollama chat handler to support real-time streaming responses.

Key Highlights

  • Rewrites Ollama handler to support SSE streaming
  • Improves error handling to prevent server crashes
  • Aligns duration fields to int64 nanosecond precision

Full Release Notes

## Changes

### PR [#1940](https://github.com/danielmiessler/Fabric/pull/1940) by [ksylvan](https://github.com/ksylvan): Rewrite Ollama chat handler to support proper streaming responses

- Refactor Ollama chat handler to support proper streaming responses with real-time SSE data parsing
- Replace single-read body parsing with streaming bufio.Scanner approach and implement writeOllamaResponse helper function
- Add comprehensive error handling improvements including proper HTTP error responses instead of log.Fatal to prevent server crashes
- Fix upstream error handling to return stringified error payloads and validate Fabric chat URL hosts
- Implement proper request context propagation and align duration fields to int64 nanosecond precision for consistency