mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-01-23 05:08:06 -05:00
- Add `json:"-"` tag to exclude UpdateChan from JSON serialization - Extract URL building logic into dedicated `buildFabricChatURL` helper function - Replace single-read body parsing with streaming `bufio.Scanner` approach - Add proper SSE data prefix parsing for fabric response format - Implement real-time streaming with `writeOllamaResponse` helper function - Add `writeOllamaResponseStruct` for consistent JSON response writing - Handle both streaming and non-streaming response modes separately - Add proper error handling for fabric error response types - Ensure response body is properly closed with defer statement