ChatGPT can now access the live Internet. Can the API?

Given the news announcement I am wondering if the API now has that same access to the Internet.

Thanks in advance!

5 Likes

Yes, you also can write a function that the AI can call with an internet search query, and then fulfill it by an external API to get search results. Then another function for getting web pages, even ignoring robot files meant for OpenAI and not “meant” for you.

Just as you can write a function to let the AI multiply two numbers reliably.

See the Bing API price per query: https://www.microsoft.com/en-us/bing/apis/pricing

3 Likes

Thank you. I know I can leverage external services. I am specifically asking if I can put the request directly into an API prompt given the press release. Meaning we would not have to use an external service.

1 Like

There is no such feature. You get the AI language back from the AI.

Plugins and browsing functions are implemented in “ChatGPT the APP” the same way as they would need to implemented in your “HotBot with AskJeeves”. (You can’t beat OpenAI at their own game, after all.)

1 Like

The announcement was made on X, yesterday at 1PM.

The answer has already been given, why are you ignoring it?

NO.

1 Like

Pretty sure they’ll add it to the API eventually.

1 Like

Might be waiting a while.

Why on earth would they do that?

Internet Access will never come to the API because there is zero reason for it to—developers can( (and should) simply implement their own browsing feature.

Developers shouldn’t want browsing via API anyway, primarily because of the loss of control.

  1. It can quickly and dramatically increase generated tokens as the model essentially self-prompts after every function return.
  2. The browsing feature is locked to OpenAI’s network so, among other things,
    • Browsing can be limited by sites using robots.txt to prohibit access by the OpenAI bot
    • Browsing will be limited to sites approved by OpenAI
    • Your users will be region-locked to OpenAI’s region

I suppose I could see the desire for it from a low-barrier-to-entry perspective, but I think everyone is ultimately better off rolling their own.

I don’t have the time to look right now, but I wouldn’t be at all surprised if there wasn’t already an active GitHub repo to solve this very issue.

3 Likes

@elmstedt not sure why you think there’s zero reason…the amount of topics/people asking for it shows the opposite is true.

I agree that in some specific cases someone might want to have more control, but if you see how efficient “search with Bing” is you’ll realise that actually reproducing it will be very hard.

I tried a lot of alternatives, from integrating bing and google to Tavily (thanks to another user’s help), and none of them is nearly as good as “search with Bing”.

At the start I thought as well someone must have done it…but in reality, an ‘intelligent’ integration of internet search into OpenAI (or other LLM), beside simply integrating an API that calls a search and returns a result), it’s nowhere to be found.

Tavily seems a good attempt, but “Search with Bing” it’s vastly superior.

I don’t understand why they don’t let everyone integrate it via API using their own Azure Bing key.

4 Likes

Found anything on this? I am having serious trouble getting it to work setting it up myself

1 Like

Also interested! Surprised Search with Bing is not available via API.

1 Like

Perhaps I’ll add a little color on getting live results from the web and the technical challenges around it:

  • there are URLs that are not publicly available (not to mention those that serve different content based on who is viewing)
  • there are URLs that has robot.txt that basically says “do not visit these page if you are not human”
  • aside from permission and accessibility issues, what human sees is quite different from quite the bots read and depending on use cases, some user’s use cases wants the DOM tag and some doesn’t

That said, it is definitely possible for someone to build the functions for some of the more popular use cases for sure.

Personally, I’d love the feature. Sometimes I’m just looking for a quick simple web search feature in an agent prompt. I’ve already built several AI agents that leverage Google custom search API. It’s a lot to wrangle and doesn’t always work as well as ChatGPT‘s search function. It could help me keep dev cost down for my client if I didn’t have to handle and maintain the integration. It’d be nice if as their features improve the API web search feature would automatically update. Not to mention one more account to manage for my client paying for Google search API usage and the corresponding security concerns.

1 Like

It should be done, because we have no visibility on how CHATGPT browses and processes data. Plus you can not feed chatgpt a full search or page, as it complains about length.

1 Like