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

Fix welcome message error #1433

Merged
merged 3 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion interpreter/core/async_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,10 @@ async def receive_input():
return
data = await websocket.receive()

if not authenticated:
if (
not authenticated
and os.getenv("INTERPRETER_REQUIRE_AUTH") != "False"
):
if "text" in data:
data = json.loads(data["text"])
if "auth" in data:
Expand Down
4 changes: 2 additions & 2 deletions interpreter/terminal_interface/validate_llm_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def validate_llm_settings(interpreter):
and not interpreter.llm.api_key
and not interpreter.llm.api_base
):
display_welcome_message_once()
display_welcome_message_once(interpreter)

interpreter.display_message(
"""---
Expand Down Expand Up @@ -110,7 +110,7 @@ def validate_llm_settings(interpreter):
return


def display_welcome_message_once():
def display_welcome_message_once(interpreter):
"""
Displays a welcome message only on its first call.

Expand Down
Loading