fix: chat_format log where auto-detected format prints None (#1434)

This commit is contained in:
Bruno Alvisio 2024-05-07 23:19:35 -07:00 committed by GitHub
parent 0318702cdc
commit a50d24e3a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -451,7 +451,7 @@ class Llama:
if self.chat_format is None and self.chat_handler is None:
self.chat_format = "llama-2"
if self.verbose:
print(f"Using fallback chat format: {chat_format}", file=sys.stderr)
print(f"Using fallback chat format: {self.chat_format}", file=sys.stderr)
@property
def ctx(self) -> llama_cpp.llama_context_p: