Custom GPT can't access the Internet

I’m building a custom GPT with actions. If I want to visualize the data it always fails with this error:

1 Like

Yep.

The code interpreter cannot access the Internet.

1 Like

To have a Custom GPT draw graphs based on data obtained from the internet, there are roughly two approaches:

  1. Use the browsing feature to get the data and then visualize it with the code interpreter.
  2. Write an OpenAPI specification with actions to get data from external sources and then visualize it with the code interpreter.

Since the browsing feature of ChatGPT is not likely to work well for retrieving the data you are looking for, I recommend using actions to fetch data from external sources.

1 Like

Maybe the description was not good enough. I use actions to retrieve the data. This works well until i try to visualize the data…

1 Like

Your error is,

URLError: <urlopen error [Errno -3] Temporary failure in name resolution

This is a error in the Python call to urlopen(), specifically related to being unable to resolve the domain to an IP address because it does not have access to a DNS server—because the code interpreter cannot access the Internet.

1 Like

Thanks got it. So as far as I see there seems to be no way to feed data fetched by the action into the code interpreter?

1 Like

No. The model would need to transcribe the data manually into a Python object.

If you need the GPT to be able to manipulate data there are two ways to do that.

  1. Do the data analysis via action calls to your own server
  2. Have your action return a download link to the data so the user can download it, then upload it into the code interpreter.
1 Like

I am using the method outlined here and I get the same exact error as the OP. How would you implement the URL method from the linked document if the code interpreter can’t access the internet?