You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: resolve Ollama function calling failures with crewai 1.10.1
crewai 1.10.1's instructor integration requires LLMs to produce structured
tool calls for output_pydantic parsing. Ollama models (granite4, granite3.3,
llama3.2) don't reliably generate these, causing "Instructor does not support
multiple tool calls" errors and empty tool_calls responses.
Changes:
- Remove output_pydantic from prereq task, parse raw JSON output instead
- Add _parse_prereq_from_raw() fallback for extracting JSON from LLM text
- Switch default model prefix from ollama/ to ollama_chat/ for better
litellm chat completions routing
- Pass num_ctx=8192 to Ollama models (default 2048 is too small)
- Fix config parameter bug: GitIssueAgent now uses passed config instead
of module-level settings singleton
- Add field_validator for IssueSearchInfo.issue_numbers to handle
string-encoded arrays from small LLMs
- Add max_retry_limit=3 and respect_context_window=True to issue researcher
Tested locally with granite4, granite3.3:8b, and llama3.2:3b-instruct-fp16.
Fixes#173
Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Mariusz Sabath <mrsabath@gmail.com>
0 commit comments