I am trying to make an AI assistant to search top selling books on Amazon website for a specific topic.
When I run a simple query on ChatGPT (website) using 4o, it shows ‘searching the web’ with amazon thinking symbol then gives me accurate results with good links.
When I run the query via API using gpt-4o, it gives me a lot of hallucinated nonsense. I tried creating my own custom tool call (a very primitive one), that helped slightly, but it still hallucinated some links and the relevance of the books found were far less accurate than the web version.
Is there any moderate solution that will let me get comparable results from the API as I get from the web GPT interface?
Also unrelated to openAI, but for context:
I also used Perplexity API, which gave me great results, but is unable to find amazon links to those books (even though it was prompted to and they exist)