8000 fix: chat_format log where auto-detected format prints `None` (#1434) · HSV-AI/llama-cpp-python@a50d24e · GitHub
[go: up one dir, main page]

Skip to content

Commit a50d24e

Browse files
authored
fix: chat_format log where auto-detected format prints None (abetlen#1434)
1 parent 0318702 commit a50d24e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def __init__(
451451
if self.chat_format is None and self.chat_handler is None:
452452
self.chat_format = "llama-2"
453453
if self.verbose:
454-
print(f"Using fallback chat format: {chat_format}", file=sys.stderr)
454+
print(f"Using fallback chat format: {self.chat_format}", file=sys.stderr)
455455

456456
@property
457457
def ctx(self) -> llama_cpp.llama_context_p:

0 commit comments

Comments
 (0)
0