OpenInterpreter / 01

The open-source language model computer
http://openinterpreter.com/01
GNU Affero General Public License v3.0
4.75k stars 468 forks source link

Runs infinitely on local mode #264

Open mshehrozsajjad opened 2 months ago

mshehrozsajjad commented 2 months ago

Describe the bug In local mode with current latest version it just continues infinitely and also sometimes starts writing code for windows as well, while I am using mac.

To Reproduce Steps to reproduce the behavior:

  1. Use local mode.

Expected behavior After successful execution it should just stop and wait for next input.

Screenshots ![Uploading Screenshot 2024-05-05 at 6.06.54 PM.png…]()

Desktop (please complete the following information):

rowaidy commented 1 month ago

Same exact issue but the differences:OS:

Mikoube commented 1 month ago

Same here on another OS :

Ubuntu 22.04 Python 3.10.12

JansenSmith commented 1 month ago

This appears to be a pervasive problem; happens every time I use it. I think my issue is similar: (it repeated this about a dozen times before i got bored)

(openinterpreter) house@chonkers:~$ interpreter --api_base http://192.168.0.201:11434 --model ollama/codegemma

▌ Model set to ollama/codegemma

Open Interpreter will require approval before running code.

Use interpreter -y to bypass this.

Press CTRL-C to exit.

>
> what version of linux am i running?

We were unable to determine the context window of this model. Defaulting to 3000.

If your model can handle more, run interpreter --context_window {token limit} --max_tokens {max tokens per response}.

Continuing...

  import os

  print(os.uname())

  Would you like to run this code? (y/n)

  y

  import os

  print(os.uname())

  posix.uname_result(sysname='Linux', nodename='chonkers', release='5.15.0-102-generic', version='#112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024',
  machine='x86_64')

  Plan:

   1 Use theos.uname function to get the Linux version.

  Code:

  import os

  print(os.uname())

  Would you like to run this code? (y/n)

  y

  import os

  print(os.uname())

  posix.uname_result(sysname='Linux', nodename='chonkers', release='5.15.0-102-generic', version='#112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024',
  machine='x86_64')

                                                                            Plan:

   1 Use theos.uname function to get the Linux version.

                                                                            Code:

  import os

  print(os.uname())

  Would you like to run this code? (y/n)

  y

  import os

  print(os.uname())

  posix.uname_result(sysname='Linux', nodename='chonkers', release='5.15.0-102-generic', version='#112-Ubuntu SMP Tue Mar 5 16:50:32 UTC 2024',
  machine='x86_64')

                                                                            Plan:

   1 Use theos.uname function to get the Linux version.

                                                                            Code:

  import os

  print(os.uname())

  Would you like to run this code? (y/n)

  y
JansenSmith commented 1 month ago

tried the following, but it did not improve functionality:

interpreter --api_base http://192.168.0.201:11434 --model ollama/codegemma --no-llm_supports_function