errors.New("EOF") creates a distinct error instance that doesn't match
io.EOF, causing processRawHTTPStream to silently ignore normal stream
termination without sending a done response.
- SSEReader: return io.EOF instead of errors.New("EOF")
- processRawHTTPStream: handle io.EOF as normal completion, send done
response with usage/toolCalls (aligned with processStream behavior)
Fixes #860
|
||
|---|---|---|
| .. | ||
| chat.go | ||
| chat_provider_spec.go | ||
| image_resolve.go | ||
| json_field_extractor.go | ||
| json_field_extractor_test.go | ||
| ollama.go | ||
| remote_api.go | ||
| remote_api_test.go | ||
| sse_reader.go | ||