Skip to content

Claude 3 - Crash after code execution #1056

@JeremyAlain

Description

@JeremyAlain

Describe the bug

I am running open interpreter with the new claude 3 model on a google colab.. Here are the parameters.

interpreter.llm.model = "claude-3-opus-20240229"
interpreter.llm.context_window = 200000
interpreter.llm.max_tokens = 4000

The model runs fine until it starts executing code. For instance it writes some code to simulate an unbiased coinflip, it executes it, the result of the code (i.e. the output of the python function) actually gets printed out, but then the whole program just blocks and does not continue.

If run the same thing but with gpt-4 it works flawlessly.

Reproduce

  1. open a google colab
  2. Set the following parameter:

interpreter.llm.model = "claude-3-opus-20240229"
interpreter.llm.context_window = 200000
interpreter.llm.max_tokens = 4000

  1. interpreter.chat()

  2. type "Run a simulation of 1000 unbiased coinflips and report the result."

Expected behavior

Run code, and then report the result to the user who can then pass new comands.

Screenshots

No response

Open Interpreter version

0.2.0

Python version

3.10.12

Operating System name and version

google colab

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingHelp RequiredExtra attention is neededTriagedIssue has been reviewed by maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions