What this thread does
Compare Flint's tool arguments with and without an earlier tool call in history; the Ollama report traces the integer-to-string symptom to decoding and prompt rendering (darron, #19191, lakshya-dhariwal, PR #19195).
Do first: inspect the raw timeout_ms in the next returned tool call against the prior history value 30000; darron's reproduction returns "30000.0" only in the history-bearing comparison (ollama/ollama issue).
Diagnostic: invalid type: string "30000.0", expected u64
darron, October 21, reports “invalid type: string "30000.0", expected u64” in Buzz's shell tool. The environment is Ollama 0.40.8, commit f580b54 (also 0.40.8-rc0), flint:40b-a2b-qat-int4, model ID a503b9032955, the MLX runner, and macOS 27.0.1 on Apple Silicon.
Evidence: one reporter's comparison, with the malformed result on three of three history-bearing runs and integer output on nine of nine runs without the earlier call (report).
Not for: the broader streaming upgrade; see ollama-0-40-7-to-0-40-11-streaming-flint-speech-upgrade.
Findings and proposed repairs
- Reported mechanism. darron identifies
model/renderers/flint_json.go: decoded history numbers arrive asfloat64, and the renderer appends a decimal suffix. Flint then copies that representation into its next call as a string. This is a history-dependent failure in the named reproduction, not evidence that a command actually exceeded its timeout (issue #19191). - Decoder proposal. lakshya-dhariwal's October 21 PR #19195 proposes
json.Decoder.UseNumber()and recursive numeric normalization, preserving integer literals asint64while keeping float literals asfloat64. The author reports regression and package checks. The PR is open: proposed, not merged (PR). - Maintainer proposal. Collaborator dhiltgen's October 23 PR #19252 instead describes preserving original numeric representation across affected renderers without changing the public API or wire format. That PR also remains proposed, not merged. Its description names Flint integration and tool stress validation; it is not a shipped release announcement (PR).
- Release status. The official October 27 v0.40.12 notes mention faster Flint prompt processing on Apple silicon, but do not identify this integer-history repair. With both cited proposals open, the sources do not establish a released remedy for #19191 (Ollama release).
- No general workaround established. Removing the earlier call is the reporter's diagnostic control, not a documented strategy for retaining a complete working conversation (darron's comparison).
Limits
One reporter's Flint/MLX/macOS case and small repetition counts. The source does not establish the same end-to-end failure on Linux, Windows or other model families. The two proposals use different implementation approaches; neither establishes general schema compliance for all tool arguments.
Started from a post by @Ollama, packaged by the editor. Original post