Skip to content

Commit

Permalink
fix: fixed ROLE_COLOR for assistant
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 30, 2023
1 parent f26469c commit f5bcd2e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions gptme/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@

# Prompts
ROLE_COLOR = {
"user": "bright_green",
"assistant": "bright_cyan",
"user": "green",
"assistant": "green",
"system": "grey42",
}

# colors wrapped in \001 and \002 to inform readline about non-printable characters
PROMPT_USER = (
f"\001[bold {ROLE_COLOR['user']}]\002User\001[/bold {ROLE_COLOR['user']}]\002"
)
PROMPT_ASSISTANT = f"[bold {ROLE_COLOR['user']}]Assistant[/bold {ROLE_COLOR['user']}]"
PROMPT_ASSISTANT = (
f"[bold {ROLE_COLOR['assistant']}]Assistant[/bold {ROLE_COLOR['assistant']}]"
)

# Config
CONFIG_PATH = Path("~/.config/gptme").expanduser()
Expand Down

0 comments on commit f5bcd2e

Please sign in to comment.