8000 Merge branch 'main' of github.com:abetlen/llama_cpp_python into main · zinccat/llama-cpp-python@9f528f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9f528f4

Browse files
committed
Merge branch 'main' of github.com:abetlen/llama_cpp_python into main
2 parents 60426b2 + ff9faaa commit 9f528f4

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
@@ -814,7 +814,7 @@ def _create_completion(
814814
llama_cpp.llama_reset_timings(self.ctx)
815815

816816
if len(prompt_tokens) > self._n_ctx:
817-
raise ValueError(f"Requested tokens exceed context window of {self._n_ctx}")
817+
raise ValueError(f"Requested tokens ({len(prompt_tokens)}) exceed context window of {self._n_ctx}")
818818

819819
# Truncate max_tokens if requested tokens would exceed the context window
820820
max_tokens = (

0 commit comments

Comments
 (0)
0