Different Results: Same Prompt on OpenAI API vs ChatGPT

Hello everyone,
I’m developing an application in Node.js using the official OpenAI package to interact with its AI models. My goal is to retrieve the updated values of certain financial assets, such as stocks, cryptocurrencies, etc.

The issue I’m facing is that when I send a prompt requesting the current prices, the model returns outdated data. However, when I try the same prompt directly in ChatGPT (via its web interface), it seems to fetch data from the internet and provides updated values.

This raises the following questions for me:

  1. How is it possible that ChatGPT can access updated information, but my implementation with OpenAI’s API cannot?
  2. Do I need to implement something additional, like an assistant that integrates external APIs, or is there a specific functionality in the model that I need to enable?
  3. Is it possible to integrate a method to combine OpenAI’s capabilities with real-time internet data to achieve this goal?

I’d greatly appreciate any guidance on how to solve this issue and take my implementation to the next level.

ChatGPT has an internet search tool. This is not an API feature.

You will likely want to build value by using the function calling feature of chat models.

Find an API provider of the enhancements you wish to provide, such as market data for stocks and commodities, and incorporate that as a utility the AI will automatically call when the function is useful for satisfying a user input.

Another possibility is to use an AI-powered backend such as semantic search or a specialist retrieval AI, which can preload the answering AI model context with topical knowledge.

1 Like