Skip to content

Commit 64c34b3

Browse files
authored
Merge pull request #1433 from OpenInterpreter/development
Fix welcome message error
2 parents f8c06cc + d03ad53 commit 64c34b3

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

interpreter/core/async_core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ async def receive_input():
443443
return
444444
data = await websocket.receive()
445445

446-
if not authenticated:
446+
if (
447+
not authenticated
448+
and os.getenv("INTERPRETER_REQUIRE_AUTH") != "False"
449+
):
447450
if "text" in data:
448451
data = json.loads(data["text"])
449452
if "auth" in data:

interpreter/terminal_interface/validate_llm_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def validate_llm_settings(interpreter):
4545
and not interpreter.llm.api_key
4646
and not interpreter.llm.api_base
4747
):
48-
display_welcome_message_once()
48+
display_welcome_message_once(interpreter)
4949

5050
interpreter.display_message(
5151
"""---
@@ -110,7 +110,7 @@ def validate_llm_settings(interpreter):
110110
return
111111

112112

113-
def display_welcome_message_once():
113+
def display_welcome_message_once(interpreter):
114114
"""
115115
Displays a welcome message only on its first call.
116116

0 commit comments

Comments
 (0)