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 local ollama models returns a json structure instead of executing them #1577

Open
jwcloud365 opened this issue Jan 4, 2025 · 0 comments

Comments

@jwcloud365
Copy link

Describe the bug

Today I installed openinterpreter and want to use it locally.

But when I'm using a local ollama model, I get some json structure as an output:

Loading qwen2.5-coder:32b...

Model loaded.

Open Interpreter will require approval before running code.

Use interpreter -y to bypass this.

Press CTRL-C to exit.

list all files in my Images directory

{"name": "execute", "arguments":{"language": "shell", "code": "dir %USERPROFILE%\Pictures"}}

browse to cnn.com


  {"name": "execute", "arguments":{"language": "python", "code":
  "computer.browser.setup(headless=False)\ncomputer.browser.go_to_url('https://www.cnn.com')"}}

But when i use an openai model, I get this output, as expected:

list all files in my Images directory

ls ~/Images

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

If you need further actions or details on any specific file, please let me know!

browse to cnn.com

  computer.browser.go_to_url('https://www.cnn.com')


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

Reproduce

interpreter

list all files in my Images directory

{"name": "execute", "arguments":{"language": "shell", "code": "dir %USERPROFILE%\Pictures"}}

browse to cnn.com


  {"name": "execute", "arguments":{"language": "python", "code":
  "computer.browser.setup(headless=False)\ncomputer.browser.go_to_url('https://www.cnn.com')"}}

Expected behavior

  computer.browser.go_to_url('https://www.cnn.com')


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

Screenshots

I would expect

afbeelding

instead of

{"name": "execute", "arguments":{"language": "python", "code":
"computer.browser.setup(headless=False)\ncomputer.browser.go_to_url('https://www.cnn.com')"}}

Open Interpreter version

Version: 0.4.3

Python version

Python 3.11.11

Operating System name and version

W11

Additional context

No response

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

1 participant