fix: chat_format log where auto-detected format prints None
(#1434)
This commit is contained in:
parent
0318702cdc
commit
a50d24e3a7
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@ class Llama:
|
||||||
if self.chat_format is None and self.chat_handler is None:
|
if self.chat_format is None and self.chat_handler is None:
|
||||||
self.chat_format = "llama-2"
|
self.chat_format = "llama-2"
|
||||||
if self.verbose:
|
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
|
@property
|
||||||
def ctx(self) -> llama_cpp.llama_context_p:
|
def ctx(self) -> llama_cpp.llama_context_p:
|
||||||
|
|
Loading…
Reference in a new issue