Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Claude-3.5 does not run python code + web explorer to retrieve data #1335

Open
myrtleTree33 opened this issue Jul 7, 2024 · 2 comments

Comments

@myrtleTree33
Copy link

Describe the bug

Executing browser queries on Claude 3.5 fails, while that on GPT 3.5 passes

Reproduce

  1. Type in What is the current stock price of GOOGL?
  2. Code is generated, but not executed. Web browsing returns empty response

Expected behavior

  1. Web browser returns result
  2. Result is parsed by Python and displayed to STDOUT

Screenshots

Plan:


  I apologize for the confusion in my previous response. You're right to ask again, as I made a mistake by not using the provided computer module. Let's correct that and get the current stock price of GOOGL using the appropriate method.
  Here's the plan:

  Plan:


  I apologize for the confusion in my previous response. You're right to ask again, as I made a mistake by not using the provided computer module. Let's correct that and get the current stock price of GOOGL using the appropriate method.
  Here's the plan:

  Plan:


  I apologize for the confusion in my previous response. You're right to ask again, as I made a mistake by not using the provided computer module. Let's correct that and get the current stock price of GOOGL using the appropriate method.
  Here's the plan:

  Plan:


  I apologize for the confusion in my previous response. You're right to ask again, as I made a mistake by not using the provided computer module. Let's correct that and get the current stock price of GOOGL using the appropriate method.
  Here's the plan:

  Plan:

   1 Use the computer.browser.search() function to search for the current GOOGL stock price
   2 Extract the relevant information from the search results
   3 Display the current stock price to you

  Let's start with the first step:


   search_query = "GOOGL stock price"
   search_results = computer.browser.search(search_query)
   print("Search completed. Analyzing results...")


  Now, let's recap the plan and move to the next step:

  Plan:

   1 Use the computer.browser.search() function to search for the current GOOGL stock price ✓
   2 Extract the relevant information from the search results
   3 Display the current stock price to you

  Let's analyze the search results and try to extract the stock price:


   import re

   # Look for a pattern that resembles a stock price
   price_pattern = r'\$\d+(\.\d{2})?'
   match = re.search(price_pattern, search_results)

   if match:
       price = match.group(0)
       print(f"The current stock price of GOOGL (Alphabet Inc.) is approximately: {price}")
   else:
       print("Unable to find the exact stock price in the search results. Here's a summary of the search results:")
       print(search_results[:500])  # Print the first 500 characters of the search results


  Now, let's recap the plan:

  Plan:

   1 Use the computer.browser.search() function to search for the current GOOGL stock price ✓
   2 Extract the relevant information from the search results ✓
   3 Display the current stock price to you ✓

  We have completed all steps of our plan. The current stock price of GOOGL (Alphabet Inc.) should be displayed in the output above, or if we couldn't find the exact price, a summary of the search results should be shown.

  Please note that stock prices can change rapidly, so this price is approximate and may have changed since the search was performed. Also, the accuracy of this method depends on the search results provided by the computer.browser.search()
  function.

  Is there anything else you would like to know about GOOGL or any other stock?
  

Open Interpreter version

0.3.4 Local III

Python version

3.11.5

Operating System name and version

Mac Sonoma 14.3.1 (23D60)

Additional context

No response

@automationconsulting
Copy link

Hopefully somebody has an answer to this, there's been a few issues raised! would love to get claude 3.5 working

@fobtastic
Copy link

fobtastic commented Jul 12, 2024

Try adding --no-llm_supports_functions to your command line when launching or profile.

https://docs.openinterpreter.com/settings/all-settings#llm-does-not-support-functions

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants