Skip to content

Commit

Permalink
address comments left by @brayo-pip on #171 (feat: add platform info …
Browse files Browse the repository at this point in the history
…to the system prompt);
  • Loading branch information
ellipsis-dev[bot] authored Oct 26, 2024
1 parent 428f4a6 commit c3107c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptme/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ def prompt_systeminfo() -> Generator[Message, None, None]:

def get_system_distro() -> str:
"""Get the system distribution name."""
regex = r"^NAME=\"?([^\"]+)\"?"
regex = re.compile(r"^NAME=\"?([^\"]+)\"?")

if os.path.exists("/etc/os-release"):
with open("/etc/os-release") as f:
Expand Down

1 comment on commit c3107c8

@0xbrayo
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ellipsis-dev[bot] move the regex definition out of the function

Please sign in to comment.