MikeBirdTech / open-interpreter-websockets-wrapper

Open Interpreter Websocket wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Interpreter Websockets Wrapper

Note

  • (16/10/2023) I'm currently pinned to version 0.1.7 of Open Interpreter due to an error in the latest version (0.1.9) that prevents WebSocket from sending in chunks.
  • (16/10/2023) I changed repository name from "nike-open-intepreter" to "nike-open-interpreter" because of misspelling.

Features

  1. You can receive messages via WebSocket and obtain responses from the Open Interpreter (supports stream mode).
  2. You can send files to be saved on the server side. You can also issue commands to the Open Interpreter for these files.

Prerequisites

  1. This repository assumes operation via WebSocket, so please prepare a connection destination suitable for your environment.
  2. The default connection URL is ws://127.0.0.1:8000/ws.

Execution Steps

  1. Set the OPENAI_API_KEY environment variable to your API Key
  2. Execute docker-compose up -d --build.

Debugging

  1. When using VSCode as the execution environment, launch in debug mode with DEBUG_MODE=1.
  2. Set breakpoints and enjoy comfortable debugging.

Reference: VS Code Editor Introduction

Code Explanation

It's lengthy, so I've detailed it in the link below:

Miscellaneous

  1. The license conforms to KillianLucas/open-interpreter.
  2. Instructions on using the Open Interpreter are consolidated in the link below:

About

Open Interpreter Websocket wrapper


Languages

Language:Python 93.7%Language:Dockerfile 6.3%