Summary of the fix #21
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
rust
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/gamecode-web!21
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "parse"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
server/src/providers/ollama.rs had two bugs that combined to drop tokens — sometimes entire responses — even though the
upstream Ollama call returned 200 OK:
chunk in isolation, so any object spanning a packet boundary failed to parse on both sides. Bigger/slower models trickle
tokens, making this far more likely — which matches your symptom of "smaller models work, big ones go silent."
and returned on the first successful parse, silently discarding any further lines in the same packet.
The rewrite (lines 149-228) keeps a Vec buffer across chunks, drains only up to the last \n (any trailing partial waits for
the next chunk), and uses scan + flat_map to emit one ChatChunk per parsed JSON line. Stop-pattern detection and the
parse-error logging behavior are preserved.
If you want to see the previously-hidden parse errors before the fix, the existing tracing::error! lines on parse failure are
still there — but with the fix, they should go quiet for normal traffic instead of firing on every TCP boundary.