assafelovic / gpt-researcher

LLM based autonomous agent that conducts local and web research on any topic and generates a comprehensive report with citations.
https://gptr.dev
Apache License 2.0
15k stars 2.01k forks source link

Fix/bing retriever consistency #944

Closed ibuder closed 4 weeks ago

ibuder commented 4 weeks ago

This fixes an inconsistency in the return type of the Bing retriever.

It could return a list or None. However, the calling code assumed the result was always a list. As a result, the entire researcher would fail if the Bing retriever reached any code path that returned None.

This PR makes the Bing retriever always return a list, consistent with other retrievers.