magentic-ui icon indicating copy to clipboard operation
magentic-ui copied to clipboard

Fara integration crashes when using LM Studio instead of vLLM (empty response triggers IndexError in _parse_thoughts_and_action)

Open madeleinelmuller opened this issue 1 year ago • 3 comments

Title: Fara model fails in Magentic-UI when served via LM Studio (IndexError parsing tool calls)

Summary: Using microsoft_fara-7b@iq2_m served through LM Studio with Magentic-UI results in empty model responses and runtime crashes.

Steps to reproduce:

  1. Serve Fara model in LM Studio using OpenAI-compatible API.
  2. Configure Magentic-UI using OpenAIChatCompletionClient pointing to LM Studio.
  3. Start Magentic-UI with --fara or use Fara-based team templates.
  4. Attempt any prompt.

Observed behavior:

  • Model returns empty assistant messages ("content": "").

  • Magentic-UI crashes with:

    IndexError: list index out of range in _parse_thoughts_and_action
    
  • Tool-call parser expects <tool_call> formatting that Fara doesn't output when run via LM Studio.

Expected behavior:

  • Model should generate valid formatted tool calls or degrade gracefully.

Notes:

  • Authentication issue resolved, error comes after successful request.
  • Appears Fara integration assumes vLLM template behavior.

System:

  • macOS (Apple Silicon)
  • LM Studio
  • Magentic-UI latest build.

madeleinelmuller avatar Dec 02 '25 04:12 madeleinelmuller

Also happens with Ollama.

moontato avatar Jan 15 '26 20:01 moontato

I saw the same issue, when using the original fara-7b repo and someone created a workaround for LM Studio, because the payload/response was not the same as vLLM studio, its not a fix for magentic-ui.

https://github.com/pmbstyle/fara-agent

pkbullock avatar Jan 18 '26 11:01 pkbullock

We're looking in better supporting LM studio in future releases

mmurad2 avatar May 13 '26 19:05 mmurad2