Fixing auth

pull/301/head
killian 4 months ago
parent 36f765c4d1
commit 51c8206c57

10838
software/poetry.lock generated

File diff suppressed because one or more lines are too long

@ -27,8 +27,8 @@ class Device:
try:
self.websocket = await websockets.connect(f"ws://{self.server_url}")
# Send auth, which the server requires (docs.openinterpreter.com/server/usage)
await self.websocket.send(json.dumps({"auth": True}))
# # Send auth, if you're using a server that requires it (docs.openinterpreter.com/server/usage)
# await self.websocket.send(json.dumps({"auth": True}))
return
except ConnectionRefusedError:

@ -10,6 +10,7 @@ import os
import sys
os.environ["INTERPRETER_REQUIRE_ACKNOWLEDGE"] = "False"
os.environ["INTERPRETER_REQUIRE_AUTH"] = "False"
def start_server(server_host, server_port, profile, voice, debug):
@ -26,11 +27,6 @@ def start_server(server_host, server_port, profile, voice, debug):
interpreter.server.host = server_host
interpreter.server.port = server_port
# Disable authentication, which the `light` server can't support right now
def authenticate(token):
return True
interpreter.server.authenticate = authenticate
if voice == False:
# If voice is False, just start the standard OI server
interpreter.server.run()

Loading…
Cancel
Save