open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

Real-time Web browsing

Open xywen97 opened this issue 2 years ago • 3 comments

Describe the bug

I encountered a problem when I used the code open-interpreter. It would not allow me to browse online and it would display an error message like this:

What are the last 10 BBC news headlines?
                                                                                                                   
  I'm sorry for any confusion, but as an AI, I do not have real-time internet browsing capabilities. .....

Reproduce

  1. go to the colab: https://colab.research.google.com/drive/1WKmRXZgsErej2xUriKzxrEAXdxMSgWbb?usp=sharing
  2. just install the environment, fill in your openai keys, and then chat with it
  3. Once you want it to do web browsing, It tends to refuse and output the above infos.

Expected behavior

make it more doable when I need to browse something online

Screenshots

No response

Open Interpreter version

0.2.0

Python version

3.10

Operating System name and version

colab

Additional context

No response

xywen97 avatar Mar 09 '24 18:03 xywen97

Sometimes it needs a little coaxing... some prompting will help. You can ask it again and tell it that it can, and it should do it :)

Also Open Interpreter 0.2.1 was just released today, and includes a new tool called computer.browser.search(). You can run pip install --upgrade open-interpreter to try it out!

tyfiero avatar Mar 12 '24 00:03 tyfiero

Also Open Interpreter 0.2.1 was just released today, and includes a new tool called computer.browser.search(). You can run pip install --upgrade open-interpreter to try it out!

Hello, in regards to the 'computer.browser.search' function, I have an instance of open-interpreter attempting this but it doesn't seem to have worked as expected. It seems like some php workflow got mixed in with what is actually on the webpage.

Me First go to the website https://threejs.org/docs/#manual/en/introduction/Installation and verify that is where you are at by pasting the full line that starts with "Option 1: Install with NPM and..."

Open-Interpreter Plan

1 Visit the website https://threejs.org/docs/#manual/en/introduction/Installation to verify the location. 2 Locate the full line that starts with "Option 1: Install with NPM and..."

Let's start by visiting the website to verify the location and find the specific line starting with "Option 1: Install with NPM and...".

computer.browser.search('https://threejs.org/docs/#manual/en/introduction/Installation')

'To install and integrate Three.js into your local development environment while using a PHP workflow, follow these steps based on the
 search results:\n\n1. **Download Three.js**: Get the latest version of Three.js from its official repository. You can either download
 the compressed build (`three.min.js`) from the `build` directory within the released ZIP archive or use a package manager like NPM. If
 you choose NPM, run `npm install three --save-dev` to add Three.js as a development dependency in your project.\n\n2. **Include
 Three.js in Your HTML File**: Add the following script tag inside the `<head>` section of your HTML document. Replace the path
 accordingly if you store the `three.min.js` file elsewhere:\n\n   ```html\n   <script src="js/three.min.js"></script>\n   ```\n\n3.
 **Integrating with PHP**: Since Three.js is a JavaScript library, you can continue to use PHP normally for populating your navigation
 column or any other backend logic. Simply ensure that your PHP scripts output valid HTML, including the script tag for Three.js
 integration.\n\n4. **Configure Local Server**: Set up a local server to serve your PHP pages along with the included Three.js script.
 This can be done using various methods, such as Apache, Nginx, or even a lightweight solution like Python\'s SimpleHTTPServer.
 Alternatively, you may consider using a development environment like Visual Studio Code\'s Live Server extension, which simplifies
 setting up a local server.\n\nRemember that Three.js is designed primarily for client-side rendering, so you won\'t need to modify your
 PHP setup significantly to accommodate it. The key is ensuring that your PHP templates correctly load the required JavaScript libraries
 and handle any necessary data exchange between the client-side JavaScript (Three.js) and your PHP backend.\n\nFor more detailed
 information, refer to the Three.js installation documentation at https://threejs.org/docs/#manual/en/introduction/Installation.'

What I was expecting (found here https://threejs.org/docs/#manual/en/introduction/Installation)

Option 1: Install with NPM and a build tool
Development
Installing from the [npm package registry](https://www.npmjs.com/) and using a [build tool](https://eloquentjavascript.net/10_modules.html#h_zWTXAU93DC) is the recommended approach for most users — the more dependencies your project needs, the more likely you are to run into problems that the static hosting cannot easily resolve. With a build tool, importing local JavaScript files and npm packages should work out of the box, without import maps.

Let me know if I should submit a separate issue, or if my prompt just wasn't thorough enough. Thanks!

dcs-ink avatar Mar 31 '24 05:03 dcs-ink

@dcs-ink, computer.browser.search actually uses Perplexity under the hood. I think this is an instance of perplexity hallucinating what it thinks is in the link.

tyfiero avatar Apr 01 '24 02:04 tyfiero