fix(provider/ollama): keep stream whitespace intact

Acceptance Criteria:\n- streaming chunks retain leading whitespace and indentation\n- end-of-stream metadata is still propagated\n- malformed frames emit defensive logging without crashing

Test Notes:\n- cargo test -p owlen-providers
This commit is contained in:
2025-10-23 19:40:53 +02:00
parent 3e8788dd44
commit e0b14a42f2
2 changed files with 130 additions and 19 deletions

1
samples.json Normal file
View File

@@ -0,0 +1 @@
[{"response": "first", "done": false}, {"response": "", "done": true, "final_data": {"prompt_eval_count": 2048, "eval_count": 512}}]