Skip to content

Commit 8fa2ef1

Browse files
committed
Format
1 parent 6bd1075 commit 8fa2ef1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llama_cpp/llama.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -696,9 +696,7 @@ def _create_completion(
696696
llama_cpp.llama_reset_timings(self.ctx)
697697

698698
if len(prompt_tokens) + max_tokens > self._n_ctx:
699-
raise ValueError(
700-
f"Requested tokens exceed context window of {self._n_ctx}"
701-
)
699+
raise ValueError(f"Requested tokens exceed context window of {self._n_ctx}")
702700

703701
if stop != []:
704702
stop_sequences = [s.encode("utf-8") for s in stop]

0 commit comments

Comments
 (0)