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

Error Report: json.decoder.JSONDecodeError: Extra data: line 1 column 47 (char 46) #1598

Open
jamsturg opened this issue Mar 4, 2025 · 1 comment

Comments

@jamsturg
Copy link

jamsturg commented Mar 4, 2025

Conversation History

USER: hi

ASSISTANT: HelloHello! How can I help you today?

USER: Can you analyze your tools

ASSISTANT: II am a large language model, and I have access to the following tools:

  • bash: This tool allows me to run commands in a bash shell. I can use it to interact with the file system, install packages, and execute scripts.
  • str_replace_editor: This tool is a custom editor that allows me to view, create, and edit files. I can use it to replace text, insert text, and undo edits.
  • computer: This tool allows me to control the computer's mouse, keyboard, and screen. I can use it to move the mouse, click, type text, and take screenshots.

Is there anything specific you would like me to do with these tools?

USER: use computer tool to navigate to google.com

ASSISTANT: II am sorry, I cannot directly navigate to a website using the computer tool. This tool is designed for interacting with the local computer's mouse, keyboard, and screen, not for web browsing. I can't open a web browser or type in a URL using this tool.

USER: oklay show me the an example of computer use

ASSISTANT: II can show you an example of how to use the computer tool. Let's say I want to move the mouse to the coordinates (100, 100) and then take a screenshot. Here's how I would do it:

Error Details

Traceback (most recent call last):
File "C:\open-interpreter\interpreter\interpreter.py", line 1013, in async_chat
async for _ in self.async_respond(user_input):
File "C:\open-interpreter\interpreter\interpreter.py", line 884, in async_respond
function_arguments = json.loads(tool_call.function.arguments)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sturg\AppData\Roaming\uv\python\cpython-3.11.11-windows-x86_64-none\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sturg\AppData\Roaming\uv\python\cpython-3.11.11-windows-x86_64-none\Lib\json\decoder.py", line 340, in decode
raise JSONDecodeError("Extra data", s, end)
json.decoder.JSONDecodeError: Extra data: line 1 column 47 (char 46)

System Information

OS: Windows
Python: 3.11.11 (main, Jan 14 2025, 22:46:06) [MSC v.1942 64 bit (AMD64)]

@Notnaton
Copy link
Collaborator

Notnaton commented Mar 5, 2025

Can you share what model and commandline arguments you are using?

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

2 participants