assafelovic / gpt-researcher

GPT based autonomous agent that does online comprehensive research on any given topic
https://gptr.dev
MIT License
12.98k stars 1.61k forks source link

use repair_json() on output of sub_queries to stop exceptions on local models #596

Closed pfrench42 closed 2 weeks ago

pfrench42 commented 2 weeks ago

Many of my ollama models are outputting slightly malformed json which was causing exceptions during searches.

This was happening on over 50% of queries, but this small patch resolved