Skip to content

fix: fall back to forced-JSON mode when Ollama skips the tool call - #93

Merged
AnupamKumar-1 merged 1 commit into
mainfrom
fix/ollama-tool-call-fallback
Sep 15, 2026
Merged

AnupamKumar-1 merged 1 commit into
mainfrom
fix/ollama-tool-call-fallback

Conversation

@AnupamKumar-1

Copy link
Copy Markdown
Member

Small local models sometimes reply with plain text instead of calling submit_investigation_finding, which crashed with JSON.parse errors. This adds a one-time retry with Ollama's format: "json" mode + a schema reminder before failing.

@AnupamKumar-1
AnupamKumar-1 merged commit aac5c49 into main Sep 15, 2026
5 checks passed
@AnupamKumar-1
AnupamKumar-1 deleted the fix/ollama-tool-call-fallback branch September 15, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant