Skip to content

Commit

Permalink
Improved welcome message
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Aug 11, 2023
1 parent e2ba136 commit 67d476b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions interpreter/interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,20 @@ def chat(self, message=None, return_messages=False):
if self.debug_mode:
welcome_message += "> Entered debug mode."

if "gpt-3.5" in self.model:
# If self.local, we actually don't use self.model
if not self.local and "gpt-3.5" in self.model:
welcome_message += f"\n> Model set to `{self.model}`."

if self.local:
welcome_message += f"\n> Model set to `llama-2`."

# If not auto_run, tell the user we'll ask permission to run code
# We also tell them here how to exit Open Interpreter
if not self.auto_run:
welcome_message += confirm_mode_message

# Print welcome message with newlines on either side (aesthetic choice)
print('', welcome_message.strip(), '')
print('', Markdown(welcome_message.strip()), '')

# Check if `message` was passed in by user
if message:
Expand Down

0 comments on commit 67d476b

Please sign in to comment.