Switch to llama-cpp-python
This commit is contained in:
parent
ef7df1a8c3
commit
d937f2d5fa
25 changed files with 2957 additions and 1181 deletions
|
@ -47,8 +47,8 @@ class ColourFormatter(LoggingFormatter):
|
|||
|
||||
# Emoji prefixes for different levels
|
||||
EMOJIS: ClassVar[dict[int, str]] = {
|
||||
DEBUG: "🔍",
|
||||
INFO: "ℹ️ ", # noqa: RUF001
|
||||
DEBUG: "", # No emoji for debug logs
|
||||
INFO: "", # No emoji for regular info logs
|
||||
WARNING: "⚠️ ",
|
||||
ERROR: "❌",
|
||||
CRITICAL: "🔥",
|
||||
|
@ -69,8 +69,9 @@ class ColourFormatter(LoggingFormatter):
|
|||
colour = self.COLOURS.get(record.levelno, "")
|
||||
emoji = self.EMOJIS.get(record.levelno, "")
|
||||
|
||||
# Format the message
|
||||
record.msg = f"{emoji} {record.msg}"
|
||||
# Format the message with emoji (add space only if emoji exists)
|
||||
if emoji:
|
||||
record.msg = f"{emoji} {record.msg}"
|
||||
formatted = super().format(record)
|
||||
|
||||
# Add colour codes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue