WeKnora/internal/models/chat
nullkey d68c94a11a fix(stream): use io.EOF instead of errors.New("EOF") in SSEReader
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
2026-04-02 18:35:53 +08:00
..
chat.go feat(chat): add ParallelToolCalls option to ChatOptions and update related functionality 2026-03-25 22:08:29 +08:00
chat_provider_spec.go feat: fix enable_thinking for Aliyun Qwen models in streaming mode 2026-03-30 10:42:31 +08:00
image_resolve.go feat: enhance multimodal support and image handling 2026-03-16 02:26:47 +08:00
json_field_extractor.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
json_field_extractor_test.go feat: implement final_answer tool and enhance agent duration tracking 2026-03-09 11:46:56 +08:00
ollama.go refactor(chat): simplify temperature option handling in chat request builders 2026-03-31 12:19:22 +08:00
remote_api.go fix(stream): use io.EOF instead of errors.New("EOF") in SSEReader 2026-04-02 18:35:53 +08:00
remote_api_test.go feat(chat): add ParallelToolCalls option to ChatOptions and update related functionality 2026-03-25 22:08:29 +08:00
sse_reader.go fix(stream): use io.EOF instead of errors.New("EOF") in SSEReader 2026-04-02 18:35:53 +08:00